Type/to search
0
Follow
0
Followers
__Ocorreu um erro init_botvs__ durante a operação. Por favor, verifique.
FAQ
Created 2017-12-01 15:25:39  
 4
 1946

Plataforma MAC
Versão mais recente
A versão Python do Dual Thrust OKCoin está vinculada

(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: Falando sobre o Future_position_4fix do OKEX, este API tem pedido para falhar, tem alguma sugestão?

Related Recommendations
Comment
All comments (4)

    python2.7

    9 years ago

    应该是 OKEX 屏蔽了一些 地区 的 IP
    我用 我们本地的电脑 测试
    img
    我用 华南的阿里云 测试
    img

    华南的 就可以获取到持仓, 只不过 我没有持仓 所以是 空数组 []

    策略停止的原因就是这个
    (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() 函数,导致 异常。

    9 years ago

    建议做个容错?

    9 years ago

    用 _C 处理下 GetPosition ,不过 访问不到接口 https://www.okex.com/api/v1/future_position_4fix.do: EOF 还是 OKEX 的问题 , 我一个服务器 可以访问到,一个不行,好像是 OK 屏蔽了一些 IP。

    9 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)