Why do I get "No method 'reqHistoricalDataEx' with matching signature found for class 'COM.TWS_TwsCtrl_1'." in 2014a
조회 수: 2 (최근 30일)
이전 댓글 표시
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 'hisotry', I get the following error:
No method 'reqHistoricalDataEx' with matching signature found for class 'COM.TWS_TwsCtrl_1'.
Error in ibtws/history (line 90) c.Handle.reqHistoricalDataEx(1,s,endDateTime,durationString,period,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) - 5; enddate = floor(now);
Test = history(IB,ibContract,startdate,enddate) ;
댓글 수: 0
답변 (1개)
Yair Altman
2014년 7월 12일
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Transaction Cost Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!