Type/to search
5
Follow
14
Followers
Pertanyaan tentang Strategi Binance Futures
Help
Created 2021-02-02 13:09:37  
 2
 1501

Setiap hari berjalan selama beberapa waktu, sekitar 10 jam, setelah itu akan muncul masalah tidak dapat menanyakan pesanan, hari berikutnya kembali normal, mohon jawaban apa alasannya. Interface API yang digunakan, apakah antarmuka dibatasi, bagaimana cara mengkonfirmasi masalah ini?

Related Recommendations
Comment
All comments (2)

    具体什么错误,api出问题是非常常见的错误

    6 years ago

    function kaiduo(symbol, PRI, shoushu) {
    var duodan = exchange.IO("api", "POST", "/fapi/v1/order", "symbol=" + symbol + "&side=BUY&type=LIMIT&quantity=" + shoushu + "&price=" + PRI + "&timeInForce=GTC&timestamp=_D")
    while (duodan == null) {
    Log('30下单失败,出错!!');
    duodan = exchange.IO("api", "POST", "/fapi/v1/order", "symbol=" + symbol + "&side=BUY&type=LIMIT&quantity=" + shoushu + "&price=" + PRI + "&timeInForce=GTC&timestamp=_D");
    }
    B_orders.push(duodan.orderId)
    return B_orders
    }
    上面是下单的语句,但是到后面用订单ID查询订单的时候返回错误。下面是查询的函数。而且运行几个小时都没问题,只要出问题,今天剩下的时间就肯定一直不好用
    for (i = 0; i < B_orders.length; i++) {
    Sleep(100)
    var B_ordered = exchange.IO("api", "GET", "/fapi/v1/order", "symbol=" + duofang + "&orderId=" + B_orders[i] + "&timestamp=_D")
    while (B_ordered == null) {
    Log('71查单失败,出错!!');
    B_ordered = exchange.IO("api", "GET", "/fapi/v1/order", "symbol=" + duofang + "&orderId=" + B_orders[i] + "&timestamp=_D")
    }

    6 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)