Connect Interactive Brokers Trader Workstation with Matlab
조회 수: 4 (최근 30일)
이전 댓글 표시
I have the known problem when trying to connect to the IB TWS. The command
ib = ibtws('',7496)
returns
Error using actxserver (line 90)
Server creation failed. Invalid ProgID 'TWS.TwsCtrl.1'.
Error in ibtws
I am using
- Mac OS 10.12.2
- Matlab 2016b 64-bit
- IB TWS for Mac OS X 64-bit Version 952.3b
- IB Gateway for Mac OS X 64-bit Version 952.3b
I know that there is an existing thread ( https://de.mathworks.com/matlabcentral/answers/111625-trading-toolbox-connecting-to-interactive-broker ) describing the same problem for Windows. But maybe there is an alternative solution for Mac?
Also, do I need the Java files given in the mentioned thread ( http://interactivebrokers.github.io/# ) and if yes, how do I implement them? Thanks for your support, it would be nice to get IB running on my Matlab!
댓글 수: 0
채택된 답변
추가 답변 (1개)
Yair Altman
2017년 12월 6일
Trading Toolbox support for Interactive Brokers is limited to Windows only. This is clearly mentioned in the documented system requirements. On Mac & Linux you will see the error that you mentioned because these OSes don't support COM, on which the Trading Toolbox connector to IB is based.
If you need a Matlab-IB connector on Mac or Linux, then try using my IB-Matlab toolbox instead: http://undocumentedmatlab.com/ib-matlab. IB-Matlab is based on IB's Java (not COM) API, so it runs well on all platforms that support Matlab: Windows, Mac and Linux.
Yair Altman
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!