vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 10
声望: 0

Traceback (most recent call last):
File "C:\vnstudio\lib\site-packages\vnpy\trader\ui\widget.py", line 790, in set_vt_symbol
self.main_engine.subscribe(req, gateway_name)
File "C:\vnstudio\lib\site-packages\vnpy\trader\engine.py", line 165, in subscribe
gateway.subscribe(req)
File "C:\vnstudio\lib\site-packages\vnpy\gateway\ib\ib_gateway.py", line 165, in subscribe
self.api.subscribe(req)
File "C:\vnstudio\lib\site-packages\vnpy\gateway\ib\ib_gateway.py", line 621, in subscribe
self.client.reqContractDetails(self.reqid, ib_contract)
File "C:\vnstudio\lib\site-packages\ibapi\client.py", line 1966, in reqContractDetails
self.sendMsg(msg)
File "C:\vnstudio\lib\site-packages\ibapi\client.py", line 78, in sendMsg
self.conn.sendMsg(full_msg)
File "C:\vnstudio\lib\site-packages\ibapi\connection.py", line 80, in sendMsg
nSent = self.socket.send(msg)
ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接。

Administrator
avatar
加入于:
帖子: 2453
声望: 102

请检查下是否启动了TWS客户端,以及连接了IB接口吧

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