How To Access Year To Date Trades On Binance?

Use the following php code in your script to retrieve all trades done in the past 24 hours, sell orders and buy orders:

function getTradeData() { $trades = array(); $startTime = time(); $endTime = time() + 24 * 60 * 60; $statusLimit= number_format($SYSTEM_PAGE_URL . “Trades”, 3); foreach ($symbol as $_sym){ list($id,$qty,$price)=$symbol->getTrades(time()); if ($id == getID($trades) || id($trades[$id]) == getID($trades)) sleep(5); } while ($endTime < 0){ sleep(1); for ($i=0;$i<24*60*60;--$i) { if (time() > endTime – 1){ break; } elseif (time() > endTime){ usleep(4000); } } “$statusLimit”?”maximum”: “default” ; //reset status limit to default //Get Trade Data foreach ($shares as $_share): print(“\t”.date(‘s’).’\t\t’); print(“\t”.strFormat(“Sell|BUY|SELL|Buy|RESULTS”,”%s %d Bitcoin | %d Bitcoin “, strFormat(“Sell”,”%d Bitcoin “, 0), strFormat(“BUY”,”%d Bitcoin