Connecting to Interactive Broker
이전 댓글 표시
>> ib=ibtws ('',7496) Error using actxserver (line 90) Server creation failed. Invalid ProgID 'TWS.TwsCtrl.1'.
Error in ibtws
>>
댓글 수: 4
Peter chan
2016년 11월 18일
Server Master
2016년 12월 30일
I have the same issue. R2016b 64bit. API_Version=9.71 and latest TWS 962, newly installed. Tried all suggestions I can found, it Won't work for me. Please help.
christian barbotin
2019년 10월 16일
Hi
Same for me, do you fing the solution ?
Thanks
Regards
Annie Leonhart
2019년 12월 1일
Items needed to have the toolbox work properly are:
- Trading Toolbox 3.5.1+ you can validate by running ver('trading') on Matlab.
- IB Gateway or TWS
- TWS API 9.76 (latest api)
Please validate you have all those items on the correct version.
If you have Trading toolbox 3.5.1 and Api 9.72, it won't work.
if you have Api 9.76 and trading toolbox 3.4.x it won't work (to my knowledge).
Let me know.
답변 (2개)
A.P.
2017년 1월 7일
0 개 추천
Provided you have the Trading Toolbox, Download and Install IB Gateway, by default the port is 4001, you either use this port in your code:
ib = ibtws ('',4001)
or change the port number in IB Gateway Configuration/Settings/API/Settings/Socket port
Yair Altman
2018년 1월 12일
0 개 추천
Sometime in recent years, presumably around TWS API 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 you could do is to try to uninstall your API and install an old version (possibly with the assistance of IB). 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.
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!