trader workstation of interactive broker doesn't connect to matlab

조회 수: 1 (최근 30일)
Alessio Cianini
Alessio Cianini 2020년 1월 16일
편집: Annie Leonhart 2020년 1월 16일
hi,
i'm trying to connect matlab to intercative broker, but when i use this command : ib = ibtws(‘ ‘,7496); command does not cause the TWS authorization window to pop up.
i have the latest TWS and the latest software API, i enable the activex and socket client. what i have to do?

답변 (1개)

Annie Leonhart
Annie Leonhart 2020년 1월 16일
편집: Annie Leonhart 2020년 1월 16일
There is no authorization box that comes up. You're connected with localhost which is already allowed.
I would also recommend IB Gateway rather than TWS as it will tell you the status of the connection and will return api outputs to the window and MATLAB. Very good if you wish to troubleshoot API calls.
You can test the IBTWS connection with:
ib.Handle
it should return COM.TWS_TwsCtrl. If it does, it's successfully connected to the ActiveX object.
Refer to https://www.mathworks.com/help/trading/ibtws.html to learn how to use the IBKR trading toolbox.

카테고리

Help CenterFile Exchange에서 Transaction Cost Analysis에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by