1. Go to this page and download the library: Download alexdives/kuna-api-for-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
alexdives / kuna-api-for-php example snippets
use Kuna\Client;
$kuna = new Client();
$timestamp = $kuna->publicMethod()->timestamp(); //1466486485
use Kuna\Client;
use Kuna\Constant;
$kuna = new Client();
$tickers = $kuna->publicMethod()->tickers(Constant::MARKET_BTCUAH);
print_r($tickers);
use Kuna\Client;
use Kuna\Constant;
$kuna = new Client();
$orderBook = $kuna->publicMethod()->orderBook(Constant::MARKET_BTCUAH);
print_r($orderBook);
use Kuna\Client;
use Kuna\Constant;
$kuna = new Client();
$trades = $kuna->publicMethod()->trades(Constant::MARKET_BTCUAH);
print_r($trades);
use Kuna\Client;
$kuna = new Client([
"publicKey" => "Your public key",
"secretKey" => "Your secret key",
]);
$privateMethod = $kuna->privateMethod();