Connect Interactive Brokers Trader Workstation with Matlab

조회 수: 4 (최근 30일)
Moritz Noll
Moritz Noll 2017년 2월 1일
답변: Yair Altman 2017년 12월 6일
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!

채택된 답변

Steven Lord
Steven Lord 2017년 2월 1일
Take a look at this other Answers post.

추가 답변 (1개)

Yair Altman
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

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by