0
Follow
0
Followers
Đã xảy ra lỗi không tìm thấy lệnh khi sử dụng giao diện tương lai OKEx
Created 2018-06-09 14:34:31
2
2058
Vì tôi đã sử dụng hàm _C, nó đã gây ra rất nhiều lỗi tương tự.
GetOrder(903692470012928): order not found
Nhưng thực tế, lệnh này tồn tại, và sau nhiều lần thử lại, nó luôn thành công.
1 Cách tránh
2 Làm thế nào để phát hiện hiện ra hiện tại xảy ra lỗi tương tự, ví dụ như có thể có được thực sự trở lại của okx? Có lẽ tôi có thể tự mình giảm lại chiến lược thử lại, vv
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 (2)
对于 _C 函数 使用需要 注意, 一般用于 行情数据获取。
对于 GetOrder() 函数的调用 , 可以根据其返回值 判断是否调用成功。使用 GetRawJSON 可以获取最近一次 REST 请求的 返回数据。
具体处理逻辑 要看策略设计。
8 years ago
- 1
