Interactive Brokers API Connection Error
Show older comments
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'.
Accepted Answer
More Answers (2)
Walter Roberson
on 29 Jan 2018
0 votes
1 Comment
Troy Langley
on 29 Jan 2018
Yair Altman
on 29 Jan 2018
Edited: Yair Altman
on 29 Jan 2018
0 votes
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
1 Comment
Troy Langley
on 29 Jan 2018
Categories
Find more on Trading Technologies in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!