PHP code example of andrederoos / kraken-client

1. Go to this page and download the library: Download andrederoos/kraken-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/ */

    

andrederoos / kraken-client example snippets


$key = 'your-api-key';
$secret = 'your-api-secret';

$client = new \KrakenClient\KrakenClient($key, $secret);
$message = new \KrakenClient\message\MessageGetAccountBalances();
$response = $client->send($message->generateRequest(), $message->getNonceOrNull());

echo $response->getBody();