Are synchronous IQFEED data queries possible in Datafeed Toolbox 4.5 (R2013a)?

조회 수: 1 (최근 30일)
All IQFEED data query functions, including 'history' and 'timeseries', return data asynchronously. This is in contrast to the implementations of 'history' and 'timeseries' for Bloomberg connections. I would like to know if there is a way to achieve synchronous behavior (i.e. concurrent function return and data variable creation) with an IQFEED connection.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2013년 10월 18일
All IQFEED data query functions are implemented as asynchronous in Datafeed Toolbox 4.5 (R2013a) for consistency with the IQFEED API.  Asynchronous functions will continue execution without waiting for the data to return.
In order to get "IQFeedLevelOneData" data from the base workspace into a function, you can check the existence of this variable using "evalin".  See attachment "workaround1.m" . Another workaround that achieves the behavior of a synchronous function uses a global variable and a custom callback function to modify the global variable when the data has returned.  See attachment "workaround2.m"
 

추가 답변 (1개)

Yair Altman
Yair Altman 2020년 1월 12일
편집: MathWorks Support Team 2021년 4월 19일
For anyone interested, the IQML (IQFeed-Matlab) connector enables both synchronous (blocking) and asynchronous (background) queries. A simple usage example:
data = IQML('history', 'symbol','IBM,AAPL,MSFT,GOOG'); % synchronous (blocking)
IQML('history', 'symbol','IBM,AAPL,MSFT,GOOG'); % asynchronous (non-blocking)
This ability is especially important for different queries. For example, we typically want history and market snapshot queries synchronously, but streaming quotes asynchronously. IQML enables full flexibility in this regard, as well as supporting parallelization (using the Parallel Computing Toolbox) for top performance of synchronous queries.

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

제품


릴리스

R2013a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by