0
Follow
0
Followers
使用这一串代码 进行了下单
exchanges[1].SetContractType("XBTUSD");
exchanges[1].SetMarginLevel(80);
exchanges[1].SetDirection("buy");
exchanges[1].Buy(close+20,amout);
结果系统返回超载错误:Futures_BitMEX 错误 Futures_OP 0: 503: {"error":{"message":"The system is currently overloaded. Please try again later.","name":"HTTPError"}}
我想使用如下无限循环结构进行重试,但是不知道以上错误的返回值是什么?
var id=null;
while(id==null||id==false){
exchanges[1].SetContractType("XBTUSD");
exchanges[1].SetMarginLevel(80);
exchanges[1].SetDirection("buy");
id=exchanges[1].Buy(close+20,amout);
Sleep(100);
}
while的条件中应该使用什么呢 是null,false,undefined?或者是其他的值?
Related Recommendations
in main TypeError: IO() takes at most 3 arguments (5 given)symbol not setGetTicker: 400: {"code": 2, "data": {}, "message": "invalid params"}gateio getdepth 502Decrypt: Secret key decrypt failedGetOrders: 400: {"code":-1121,"msg":"Invalid symbol."}HTTP 403 errorBitcoin trading by using botsPlease translate the buy plan pageRunning botvs docker on android
Comment
All comments (2)
- 1

