Is there a way to get the timestamp including milliseconds when using the timeseries function of the datafeed toolbox?

12 次查看(过去 30 天)
Moustafa Shama
Moustafa Shama2016-2-18
回答: Yair Altman ,2020-1-12
I am trying to retrieve intraday tick data from bloomberg and iqfeed using timeseries function of the datafeed toolbox. The timestamp in the result is showing only till the seconds part. I want to be able to read the milliseconds as well. I have contacted both parties and they told me that they already provide the data with milliseconds. My Matlab version is R2014b.
Thanks.

回答(1 个)

Yair Altman
Yair Altman 2020-1-12
IQFeed only returns the millisecs if you set the connection's IQFeed API protocol to 5.0 (see the IQFeed changelog). In certain cases (e.g., CMEGroup and equity markets), if the protocol is 5.2 or higher you may even get microsec resolution in the time fields.
As an alternative, consider using my IQML (IQFeed-Matlab) connector, which uses the latest API protocol by default. IQML enables both synchronous (blocking) and asynchronous (background) queries, that are fetched either serially or in parallel (using the Matlab Parallel Computing Toolbox). A simple usage example:
data = IQML('marketdepth', 'symbol','@ES#');
IQML was developed with top performance, reliability and usability in mind. IQML supports 100% of IQFeed's API functionality. It is fully documented, continuously maintained/improved, and I am happy to provide support.
Note: I am an independent software developer and not a MathWorks employee. Don't get angry at me for bringing an independent alternative to the table...

Community Treasure Hunt

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

Start Hunting!

Translated by