MATLAB Answers

Connected to interactive brokers after the update

3 views (last 30 days)
Allan MacLeod
Allan MacLeod on 4 Oct 2018
Edited: Yair Altman on 6 Oct 2018
Hi All
I'm trying to connect Matlab to interactive brokers. I'm aware there was a bug before however I got an email in August saying it was fixed. I'm currently running this code;
% establish connection to TWS ib = ibtws('',7497);
%% create currency handles ibEURUSD = ib.Handle.createContract; % set forex credentials ibEURUSD.symbol = 'EUR'; ibEURUSD.secType = 'CASH'; ibEURUSD.exchange = 'IDEALPRO'; ibEURUSD.currency = 'USD';
cur = getdata(ib,ibEURUSD);
% close IB connection close(ib);
Getting the result for cur of "not connected", has anyone managed to get IB working with Matlab, if so could you point towards a good resource?
Thanks
Allan

  0 Comments

Sign in to comment.

Answers (1)

Yair Altman
Yair Altman on 6 Oct 2018
Edited: Yair Altman on 6 Oct 2018
Consider trying the alternative IB-Matlab toolbox, which is actively maintained since 2010: https://undocumentedmatlab.com/IB-Matlab

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags

Products


Translated by