1. Go to this page and download the library: Download bitbuy-at/kraken-api-client 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/ */
bitbuy-at / kraken-api-client example snippets
use bitbuyAT\Kraken\Facade\Kraken;
$balances = Kraken::getAccountBalance();
// Will return bitbuyAT\Kraken\Objects\BalanceCollection
foreach($balances as $balance) {
$currency = $balance->currency();
$amount = $balance->amount();
}
use bitbuyAT\Kraken\Contracts\Client;
class BalanceConstroller extends Controller {
public function getBalance(Client $client)
{
$client->getAccountBalance();
...
}
}