function main(){
var ret = exchange.IO("api", "GET", "/api/v3/allOrders", "symbol=LINKBTC&limit=5");
Log(ret);
}
Menggunakan API tersuai untuk mendapatkan rekod sejarah transaksi terkini akaun Bitcoin, apabila dijalankan, anda akan mendapat data json seperti di bawah, bagaimana untuk menukarnya kepada matriks yang mudah dipanggil?
[{"clientOrderId":"R*******","isWorking":true,"status":"FILLED","timeInForce":"GTC","stopPrice":"0.00000000","icebergQty":"0.00000000","symbol":"LINKBTC","orderListId":-1,"price":"0.00000000","cummulativeQuoteQty":"0.02448498","updateTime":1570543474288,"orderId":168603697,"side":"BUY","time":1570543474288,"origQty":"78.00000000","executedQty":"78.00000000","type":"MARKET"},{"cummulativeQuoteQty":"0.00349811"
Rumput https://www.fmz.com/bbs-topic/4183