How to connect and retrieve data from Interactive Brokers
이전 댓글 표시
I am facing the following error when i type this function:
>> data = IBMatlab('action','account, 'AccountName','DU12345');
data = IBMatlab('action','account, 'AccountName','DU12345');
|
Error: Unexpected MATLAB expression.
I was reading through some undocumented matlab manuals and official IB manuals indicating that i would need some jar. failes namely: IBMatlab.jar
I couldnt find these files on the internet neither could Matlab provide me these files and neither Interactive Brokers.
Would someone be so kind and lead me through the process of connecting Matlab to IB or Trading Working Station which is the interface of IB?
Thanks in Advance
댓글 수: 8
Geoff Hayes
2014년 8월 27일
편집: Geoff Hayes
2014년 8월 27일
Paul - if you have the Trading Toolbox you can use the link interactive brokers to access market data and submit orders through Interactive Brokers® using IB Trader Workstation. There are some example that should get you started.
Mischa Kim
2014년 8월 28일
편집: Mischa Kim
2014년 8월 28일
FYI, there seems to be a quotation mark missing after "account":
data = IBMatlab('action','account', 'AccountName','DU12345');
Paul
2014년 9월 1일
Geoff Hayes
2014년 9월 1일
Paul - IBMatlab is not part of the Trading Toolbox, so continuing to run the above command will give you the undefined function error. A Google search will show you where you can request a trial version of this software.
But since you have the Trading Toolbox, what in particular is causing you problems? The documentation seems straight forward. Have you tried to create an IB order?
Paul
2014년 9월 2일
Geoff Hayes
2014년 9월 2일
Paul - don't you now have to create and place the orders so that the table will be populated? The majority of the above code, from create blotter, is to create the blotter (though I'm not sure why you added the row names in as the sample code did not).
Perhaps before placing orders, you should just try the examples on retrieving historical data from get historical IB data.
Paul
2014년 9월 4일
Geoff Hayes
2014년 9월 4일
Unfortunately, I don't have the Trading Toolbox so have never tried to retrieve my own trades.
답변 (2개)
Sean de Wolski
2014년 9월 4일
0 개 추천
Have you copied that entire example into a MATLAB file and called it?
I would expect the example to work and if it doesn't Tech Support should surely be able to help.
Yair Altman
2014년 9월 4일
0 개 추천
The IBMatlab function is part of the IB-Matlab product, sold separately from the MathWorks Trading Toolbox. You can see more information about it here: http://undocumentedmatlab.com/ib-matlab
Feel free to contact me to get a free trial of IB-Matlab. You could then compare it to your Trading Toolbox if you wish. I will be happy to assist you with such a comparison.
카테고리
도움말 센터 및 File Exchange에서 Financial Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!