PHP code example of stk2k / phinance
1. Go to this page and download the library: Download stk2k/phinance 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 / phinance example snippets
use Phinance\PhinanceClient;
$client = new PhinanceClient();
$exchange_info = $client->getExchangeInfo();
foreach($exchange_info->symbols as $idx => $symbol){
echo $idx . '.' . PHP_EOL;
echo 'symbol:' . $symbol->symbol . PHP_EOL;
}