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개)
Walter Roberson
2018년 1월 29일
0 개 추천
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!