An efficient kraken rest api client, built on top of guzzle
- PHP 7.x
- Composer Dependency Manager
- Kraken account (optional, but required for trading)
composer require andreas-glaser/kraken-php-client dev-master
<?php
use AndreasGlaser\KPC\KPC;
$apiKey = 'YOUR_PRIVATE_API_KEY';
$apiSecret = 'YOUR_PRIVATE_API_SECRET';
/** @var KPC $kpc */
$kpc = new KPC($apiKey, $apiSecret);
$result = $kpc->getTicker(['XBTUSD', 'ETHXBT']);
var_dump($result->decoded);