0
Follow
0
Followers
حکمت عملی کے آغاز میں exchange.SetTimeout(3000) سیٹ کرنے کا کیا اثر ہوتا ہے؟
Created 2018-07-02 10:39:17
1
1807
اگر آپ کے پاس API دستاویزات ہیں جو آپ کو سمجھ نہیں آتی ہیں تو ، براہ کرم اپنے دوستوں کو بتائیں۔ شکریہ!
2.10.2 SetTimeout
صرف ریست پروٹوکول ، جس میں ریست کی درخواست کے وقت اوور ٹائم کا اطلاق ہوتا ہے ، صرف ایک بار ترتیب دینے سے اثر انداز ہوتا ہے۔
مثال کے طور پر: exchange.SetTimeout(3000) ، ایکسچینج ایکسچینج آبجیکٹ سیٹ کریں ، ایک آرام کی درخواست بھیجیں گنتی شروع کریں ، 3 سیکنڈ سے زیادہ ، اوور ٹائم لوٹائیں null 。
Related Recommendations
The grid trading strategyPython streamlined multi-variety MACD trending strategy frameworkin 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 bots
Comment
All comments (1)
就是 设置 exchange.SetTimeout(3000) 后, 这个 exchange 对象 成员函数 被调用的时候 , 发送 http 请求 ,响应超时 设置 为3秒, 超过 3秒 没有接收到 交易所服务器响应,就报错 超时。
8 years ago
- 1
