VeighNa量化社区
你的开源社区量化交易平台 | vn.py | vnpy
Member
avatar
加入于:
帖子: 2
声望: 0

tws一直连接完断开
报错代码为:
Traceback (most recent call last):
File "E:\veighna_studio\Lib\threading.py", line 1041, in _bootstrap_inner
self.run()
~~^^
File "E:\veighna_studio\Lib\threading.py", line 992, in run
self._target(*self._args, **self._kwargs)
~
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\veighna_studio\Lib\ibapi\client.py", line 438, in run
self.decoder.processProtoBuf(text, msgId)
~
~~~~~^^^^^^^^^^^^^
File "E:\veighna_studio\Lib\ibapi\decoder.py", line 1601, in processProtoBuf
handleInfo.processMeth(self, protoBuf)
~~~~^^^^^^^^^^^^^^^^
File "E:\veighna_studio\Lib\ibapi\decoder.py", line 1465, in processErrorMsgProtoBuf
self.wrapper.error(reqId, errorTime, errorCode, errorMsg, advancedOrderRejectJson)
~
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: IbApi.error() takes from 4 to 5 positional arguments but 6 were given

pip show ibapi的版本为10.37.2 安装的tws api是10.37.02,tws客户端为v10.37.1l

Member
avatar
加入于:
帖子: 1
声望: 0

我也遇到了这个问题,盼望有个大佬能出来解答下。

Member
avatar
加入于:
帖子: 2
声望: 0

kenyon wrote:

我也遇到了这个问题,盼望有个大佬能出来解答下。

已经解决了,你要降级tws的api才行,10.30.01实测可用

Member
avatar
加入于:
帖子: 1
声望: 0

pip install python-ibapi-stable==10.30.1 即可, 没找到30版本的安装文件。

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】