Trading Toolbox IB API Version

5 次查看(过去 30 天)
I have MatLab 2016b (64 bit) (9.1.0.441655) including the Trading Toolbox Which version of the IB TWS API is this version of the Trading toolbox meant to work with ? I cannot find this anywhere in the documentation.

采纳的回答

Steven Lord
Steven Lord 2017-3-4
From the documentation, "Note: IB Trader Workstation versions 9.69 and 9.7 and later are supported."
  2 个评论
Andrew J
Andrew J 2017-3-4
If that is taken literally - then how can it be correct - given that if you download the 'latest' version of TWS from the IB website - that appears to be version: 963.2d - even allowing for a possible shift in dp for major/minor versioning. If we are talking about the API however, then the latest version of that seems to be 972.18. So is it safe to assume that the latest version of TWS together with the latest version of the IB API should be compatible with Trading toolbox 2016b ?
Andrew J
Andrew J 2017-3-4
The problem that I am seeing is the line of code:
ib = ibtws('',7496);
produces the error:
Server creation failed. Invalid ProgID 'TWS.TwsCtrl.1'.
Hence the question about what version is supposed to be compatible.
Having done a registry search - the key 'TWS.TWSCtrl.1' doesnt appear to be there, but 'TWS.TWSCtrl' is - so I wondered if 2016b was actually compatible with an earlier api version - which doesnt appear to be available anyway - but apparently not - given the 'and later' it looks like it should work - but doesnt. I have checked the MSVC++ runtimes etc are installed already.

请先登录,再进行评论。

更多回答(1 个)

Yair Altman
Yair Altman 2018-1-12
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
p.s. - regarding your other question in this thread, 9.69 refers to the IB API version, not the TWS version. As of this moment, the latest version of the IB API is 9.73, which was just recently released, on Dec 28, 2017.

类别

Help CenterFile Exchange 中查找有关 Transaction Cost Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by