Type/to search
0
Follow
0
Followers
__init_botvs__ آپریشن کے دوران غلطی ہوئی ہے براہ کرم اسے چیک کریں۔
FAQ
Created 2017-12-01 15:25:39  
 4
 1946

MAC پلیٹ فارم
تازہ ترین میزبان ورژن
پابند پیتھون ورژن ڈبل تھرسٹ OKCoin فیوچر

(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

پی ایس: اوکیکس کے مستقبل_پوزیشن_4 فکس کے بارے میں بات کرتے ہوئے ، کیا آپ کے پاس کوئی مشورہ ہے؟

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)