Exchange.IO truy vấn tất cả các lệnh được lấy.

Tác giả:gzf445, Tạo: 2019-10-29 23:04:06, Cập nhật: 2019-10-30 20:56:14

function main(){
    var ret = exchange.IO("api", "GET", "/api/v3/allOrders", "symbol=LINKBTC&limit=5");
    Log(ret);
}

Sử dụng API tùy chỉnh để lấy lịch sử giao dịch gần đây của tài khoản Bitcoin, sau khi chạy, bạn sẽ nhận được dữ liệu json như sau, làm thế nào để chuyển đổi thành một mảng dễ gọi?

[{"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"

Thêm nữa

Cỏ nhỏ https://www.fmz.com/bbs-topic/4183