Skip to content

Instantly share code, notes, and snippets.

@SamuelGee
SamuelGee / binance.php
Created February 4, 2018 17:31
Binance get historical data
<?
header("Content-type: text/html; charset=utf-8");
//get list of symbols
$xinfo = json_decode(file_get_contents("https://api.binance.com/api/v1/exchangeInfo"), true);
$symbols = [];
foreach($xinfo["symbols"] as $sym) $symbols[] = $sym["symbol"];
asort($symbols);