VeighNa量化社区
你的开源社区量化交易平台
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
加入于:
帖子: 4500
声望: 320

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

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

用Python的交易员 wrote:

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

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

请问,我关闭了杀毒软件,还是报502

Member
avatar
加入于:
帖子: 716
声望: 62

是实盘还是模拟,是否已勾选Enable ActiveX and Socket EClients

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

实盘,确定勾选了。

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

沪公网安备 31011502017034号

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