Problems for Interactive Brokers connection

2 ビュー (過去 30 日間)
Francisco Godínez Dumont
Francisco Godínez Dumont 2018 年 11 月 12 日
編集済み: Yair Altman 2021 年 11 月 26 日
I have the following problem:
When I evaluate the code:
ib = ibtws('', 7496);
I receive the ERROR: Undefined function or variable 'ibtws'
Of course, I have instaled the trading toolbox and I am working with MacOS Mojave 10.14.1

回答 (3 件)

Yair Altman
Yair Altman 2019 年 1 月 3 日
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 (COM is a Windows-only technology).
To connect Matlab to IB on Mac/Linux, you can use the IB-Matlab toolbox: https://undocumentedmatlab.com/ib-matlab. IB-Matlab is based on IB's Java API (not COM), so it runs well on all platforms that support Matlab: Windows, Mac and Linux.
Yair Altman
  2 件のコメント
Roman Zabirov
Roman Zabirov 2021 年 11 月 26 日
I have the seme issue on Windows
Yair Altman
Yair Altman 2021 年 11 月 26 日
編集済み: Yair Altman 2021 年 11 月 26 日
The last Matlab release that supported IB in Trading Toolbox was R2020b. In R2021a Trading Toolbox was merged into the Datafeed Toolbox, and some functionality (for example, the connectors to IB, CQG and IQFeed) were removed.
If you have a newer Matlab release R2021a or newer, you can either copy the toolbox files from a previous installation of Matlab to your Matlab path, or use a different connector to connect Matlab to IB, for example IB-Matlab.

サインインしてコメントする。


Yash Ubale
Yash Ubale 2018 年 11 月 15 日
編集済み: Yash Ubale 2018 年 11 月 15 日
Hello,
Which MATLAB version are you using? Try executing the following commands and then restart MATLAB.
restoredefaultpath % This will remove any custom paths
rehash toolboxcache
savepath
Also, make sure that the MATLAB version is same as the Trading Toolbox version, if they are not then try re-installing the latest version of the toolbox available for the installed MATLAB version.
ver % to check the version of the installed toolboxes
After you have done trying out the above suggestions, execute the following command. The output of this command should be the path of the default 'ibtws.m' file present in the Trading Toolbox directory folder.
which -all ibtws

Francisco Godínez Dumont
Francisco Godínez Dumont 2018 年 11 月 15 日
Hello,
I follow your sugestions and check that the versions are all the same: R2018b.
Using the command:
>>which -all ibtws
the answer is: ‘ibtws’ not found.
I think the operating system (macOS mojave, spanish version) cannot find the folder where the Trading Toolbox is installed.

カテゴリ

Help Center および File ExchangeTransaction Cost Analysis についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by