Interactive Broker and Matlab connection on a Mac

3 views (last 30 days)
On my Mac I get the error message "Error using actxserver (line 90) Server creation failed. Invalid ProgID 'TWS.TwsCtrl.1'. Error in ibtws" when typing the command ibtws('',7496); is this a Mac issue? (used API beta 9.73. Thank you for your support!

Answers (2)

Steven Lord
Steven Lord on 25 Jan 2017
The product system requirements for Trading Toolbox says that this product is only available for Windows. From the error it's trying to use the Microsoft® COM framework to create the IB Trader Workstation connection, and as the name (Microsoft COM) implies that's only available on Windows.

Yair Altman
Yair Altman on 6 Dec 2017
As Steve noted, 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

Community Treasure Hunt

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

Start Hunting!