Connected to interactive brokers after the update

1 次查看(过去 30 天)
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

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Install Products 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by