vn.py官网
开源量化社区
Member
avatar
加入于:
帖子: 8
声望: 1

在TWS上已经勾选"Enable ActiveX and Socket EClients" ,端口号也是7496,报错如下,麻烦帮忙看下:

信息通知,代码:502,内容: Couldn't connect to TWS. Confirm that "Enable ActiveX and Socket EClients"
is enabled and connection port is the same as "Socket Port" on the
TWS "Edit->Global Configuration...->API->Settings" menu. Live Trading ports:
TWS: 7496; IB Gateway: 4001. Simulated Trading ports for new installations
of version 954.1 or newer: TWS: 7497; IB Gateway: 4002

Administrator
avatar
加入于:
帖子: 4749
声望: 278

请检查下是否本机开了杀毒软件,导致影响了端口访问

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

用Python的交易员 wrote:

请检查下是否本机开了杀毒软件,导致影响了端口访问
谢谢 确实如此

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

沪公网安备 31011502017034号