Interactive Brokers API Connection Error
Mostrar comentarios más antiguos
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'.
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 29 de En. de 2018
0 votos
1 comentario
Troy Langley
el 29 de En. de 2018
Yair Altman
el 29 de En. de 2018
Editada: Yair Altman
el 29 de En. de 2018
0 votos
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 comentario
Troy Langley
el 29 de En. de 2018
Categorías
Más información sobre Trading Technologies en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!