Trader Toolbox realtime function is apparently undefined even when I have the file path identified.
조회 수: 2 (최근 30일)
이전 댓글 표시
I receive the error, "Undefined function 'realtime' for input arguments of type 'ibtws'." when I run the realtime function. I have an established connection to IBTWS and market data subscription. Below is my code:
%
%connects to ib
%ib = ibtws('',7496)
%define your stock
%ibContract = ib.Handle.createContract;
ibContract.symbol = 'RAD';
ibContract.secType = 'STK';
ibContract.exchange = 'SMART';
ibContract.currency = 'USD';
%retrieve live data
f = '233';
tickerid = realtime(ib, ibContract, f)
end
댓글 수: 3
Walter Roberson
2017년 7월 31일
No method 'reqMktDataEx' with matching signature found for class 'COM.TWS_TwsCtrl_1'.
Error in ibtws/realtime (line 62)
c.Handle.reqMktDataEx(tickerID(i),s{i},fldList,0)
I do not happen to have R2014b installed on my Windows virtual machine; I could install it if necessary.
채택된 답변
Yair Altman
2017년 7월 31일
편집: Yair Altman
2017년 7월 31일
The realtime() function of Trading Toolbox for IB TWS was only introduced in R2015a. If you upgrade your Matlab license you should be able to use it, but not in your current R2014b.
If you need this functionality in R2014b (or any other Matlab release between R2007a and today), then try using my IB-Matlab toolbox instead: http://undocumentedmatlab.com/ib-matlab
Yair Altman
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!