Can I use the function HISTORY with multiple security inputs for IQFEED data in MATLAB (R2013a)?
Show older comments
I want to use the IQFeed commands to get history or real-time data for a list of securities.
I can connect using IQF and get history data using the HISTORY command. The problem is the data is for a single security and it is returned asynchronously. Therefore, I would have to call history and then wait for it to return data and then call it again for another security.
Is there a way I can call HISTORY with multiple security inputs?
Accepted Answer
More Answers (1)
Yair Altman
on 12 Jan 2020
Edited: MathWorks Support Team
on 2 Mar 2021
For anyone interested, the IQML (IQFeed-Matlab) connector enables querying multiple securities at once, specified as either a cell-array of symbols, or a single string of comma-delimitted symbols.
These securities can be fetched serially or in parallel (using the Matlab Parallel Computing Toolbox), synchronously or asynchronously (in the background).
A simple usage example:
data = IQML('history', 'symbol','IBM,AAPL,MSFT,GOOG', 'UseParallel',true);
Categories
Find more on Scope Variables and Generate Names in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!