Plataforma MAC
La versión más reciente
La versión de Python de Dual Thrust OKCoin está vinculada a los futuros
(most recent call last): File "<string>", line 1003, in init_botvs File "<string>", line 240, in <module> File "<string>", line 192, in main TypeError: object of type 'bool' has no len()
Futures_OP 3: Post https://www.okex.com/api/v1/future_position_4fix.do: EOF
Traceback
ps: Hablando del futuro_position_4fix de OKEX, este API ha estado pidiendo fallas, ¿tienen alguna sugerencia?
应该是 OKEX 屏蔽了一些 地区 的 IP
我用 我们本地的电脑 测试

我用 华南的阿里云 测试

华南的 就可以获取到持仓, 只不过 我没有持仓 所以是 空数组 []
策略停止的原因就是这个
(most recent call last): File "<string>", line 1003, in init_botvs File "<string>", line 240, in <module> File "<string>", line 192, in main TypeError: object of type 'bool' has no len()
Futures_OP 3: Post https://www.okex.com/api/v1/future_position_4fix.do: EOF
Traceback
192行
# Log("Fee:",exchange.GetFee())
if len(exchange.GetPosition()) > 0:
raise Error_AtBeginHasPosition
获取持仓信息 失败 然后对 布尔型 数据使用了 len() 函数,导致 异常。
用 _C 处理下 GetPosition ,不过 访问不到接口 https://www.okex.com/api/v1/future_position_4fix.do: EOF 还是 OKEX 的问题 , 我一个服务器 可以访问到,一个不行,好像是 OK 屏蔽了一些 IP。
- 1
