Type/to search
0
Follow
0
Followers
__init_botvs__ অপারেশনের সময় ত্রুটি ঘটেছে। দয়া করে এটি পরীক্ষা করে দেখুন।
FAQ
Created 2017-12-01 15:25:39  
 4
 1946

ম্যাক প্ল্যাটফর্ম
সর্বশেষ হোস্ট করা সংস্করণ
ডুয়াল থ্রাস্ট 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

পিএসঃ ওকেএক্সের ভবিষ্যত_পজিশন_৪ ফিক্স সম্পর্কে কথা বলতে গিয়ে, এই এপিআইটি ব্যর্থ হওয়ার জন্য অনুরোধ করা হয়েছে, আপনার কি কোন পরামর্শ আছে?

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)