I run it for about 10 hours a day, then I get the problem of not being able to query the order, and the next day it's back to normal.
The grassWhat exactly is wrong, the API problem is a very common mistake.
VICfunction 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×tamp=_D") while (duodan == null) { Log (('30 order failed, error!!'); duodan = exchange.IO (("api", "POST", "/fapi/v1/order", "symbol=" + symbol + "& side=BUY&type=LIMIT&quantity=" + shoushu + "& price=" + PRI + "& timeInForce=GTC×tamp=_D"); I'm not sure. B_orders.push ((duodan.orderId)) is a command-line utility. return B_orders I'm not sure. At the top is the order statement, but it returns an error when the order is queried with the order ID. Below is the query function. And it runs for several hours without any problems, as long as there are problems, the rest of the day will definitely be bad. 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] + "×tamp=_D") while (B_ordered == null) { Log (('71 checkout failed, error!!'); B_ordered = exchange.IO (("api", "GET", "/fapi/v1/order", "symbol=" + duofang + "&orderId=" + B_orders[i] + "×tamp=_D") I'm not sure.