Interactive Brokers API Connection Error
显示 更早的评论
I just installed the Trading Toolbox 2017b and the IB API 9.73 Windows 10. I keep getting this error:
ib = ibtws('',7496);
Error using actxserver (line 90) Server creation failed. Invalid ProgID 'TWS.TwsCtrl.1'.
采纳的回答
更多回答(2 个)
Yair Altman
2018-1-29
编辑:Yair Altman
2018-1-29
0 个投票
Sometime in recent years, presumably around API version 9.70, IB changed their COM server's ProgID from 'TWS.TwsCtrl.1' to 'TWS.TwsCtrl'. This breaks the Trading Toolbox code, which assumes a ProgId of 'TWS.TwsCtrl.1'. Since the Trading Toolbox's code is encrypted, you cannot modify its expected ProgId. The best that you can do is to try to uninstall your API and install an old version (possibly with IB's assistance). Note that this might break other things for you - the old API version might not be fully supported by IB today, but it's worth trying. See also this answer about the exact same problem.
Or you can try my Java-API-based IB-Matlab connector which does not rely on COM and does not exhibit any of the problems that are common with the ActiveX/COM-based interface.
Yair Altman
类别
在 帮助中心 和 File Exchange 中查找有关 Trading Technologies 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!