Trading Toolbox IB API Version

조회 수: 8 (최근 30일)
Andrew J
Andrew J 2017년 3월 4일
답변: Yair Altman 2018년 1월 12일
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에서 Trading Technologies에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by