0
Follow
0
Followers
Hiệu ứng của việc thiết lập exchange.SetTimeout(3000) khi bắt đầu chiến lược là gì?
Created 2018-07-02 10:39:17
1
1807
Không hiểu rõ về tài liệu API, xin các bạn trả lời, cảm ơn!
2.10.2 SetTimeout
Chỉ có giao thức rest, được sử dụng để thiết lập thời gian vượt thời gian khi yêu cầu rest, chỉ có thể được thiết lập một lần.
Ví dụ: exchange.SetTimeout(3000), thiết lập đối tượng trao đổi exchange, gửi yêu cầu rest Bắt đầu đếm thời gian, vượt quá 3 giây, vượt thời gian trả về 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
