Why do I get "No method 'reqHistoricalDataEx' with matching signature found for class 'COM.TWS_TwsCtrl_1'." in 2014a
Afficher commentaires plus anciens
When I try to use the 'ibtws' class in MATLAB R2014a to access data from the Interactive Brokers (IB) Trader Workstation , for instance if I am trying to run the following example function 'timeseries', I get the following error:
No method 'reqHistoricalDataEx' with matching signature found for class 'COM.TWS_TwsCtrl_1'.
Error in ibtws/timeseries (line 101) c.Handle.reqHistoricalDataEx(1,s,endDateTime,durationString,barsize,ticktype,0,1)
My code is as follows, how can I fix this? Thanks
IB = ibtws('',7496); ibContract = IB.Handle.createContract; ibContract.symbol = '700'; ibContract.secType = 'STK'; ibContract.exchange = 'SEHK'; ibContract.currency = 'HKD';
startdate = floor(now-3); enddate = now; barsize = '5 mins'; Test = timeseries(IB,ibContract,startdate,enddate,barsize);
1 commentaire
Ruben Colomina
le 10 Août 2014
I have the same issue.
Réponses (1)
Yair Altman
le 12 Juil 2014
0 votes
You may wish to try the cross-platform IB-Matlab product, which is Java-based (not ActiveX):
IB-Matlab doesn't have such bugs, it is very reliable.
Catégories
En savoir plus sur Transaction Cost Analysis dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!