PHP code example of stk2k / pholoniex
1. Go to this page and download the library: Download stk2k/pholoniex 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/ */
stk2k / pholoniex example snippets
use Pholoniex\PholoniexClient;
$client = new PholoniexClient();
$ticker_list = $client->getTicker();
foreach($ticker_list as $symbol => $ticker){
echo "[$symbol]" . $ticker['last'] . PHP_EOL;
}