question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IQFeed history request not setting TradeBar period

See original GitHub issue

Expected Behavior

Because of issue that https://github.com/QuantConnect/Lean/issues/3468, we try to use second resolution data temporarily. When to use second resolution data and one minute data consolidator on our strategy, expect to see proper data consolidation.

Actual Behavior

Because of second resolution data’s EndTime property not setting corectly, also consolidated bar’s values not correct. If you want to see issue easily, i recommend to use pre market data and look especially fist consolidated bar.

Potential Solution

Must be set second resolution data’s EndTime property correctly. For example, if there is a second resolution data on 16:00:00, it’s EndTime must be 16:00:01 not 16:01:00. Because of wrong EndTime, very next second data going to consolidate second consolidated minute bar.

Reproducing the Problem

Check any strategy that using second resolution data (prefer low volume instrument or pre market data for easily see an issue) and try to consolidate data to one minute data.

System Information

Windows 10 64Bit operating system.

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
  • I have provided detailed steps to reproduce the issue

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Martin-Molinerocommented, Sep 15, 2020

Believe this is a bug in the IQFeed not setting the period of the TradeBars emitted during warmup as a result of a history call, default period for a TradeBar is 1 minute if note set, see https://github.com/QuantConnect/Lean/blob/master/ToolBox/IQFeed/IQFeedDataQueueHandler.cs#L788 image

0reactions
jaredbroadcommented, Feb 17, 2023
  • Seeking community collaborators to assist with testing
  • Pull toolbox project to dedicated IQueueDataProvider repository so can be a plugin for LEAN CLI.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Streaming interval bars delays
Hi, I'm testing 1-min streaming bars (derivative data, "BW" requests) and I'm seeing couples issues: 1. Delays as long as 3 minutes long....
Read more >
DTN IQFeed, DTN.IQ, DTN ProphetX Support Forums
Going forward, iqfeed will allow up to 25 historical requests in a second, with no regard to whether past requests have completed. If...
Read more >
Only TRADES for "HIT" historical data requests?
My question then is whether I can request historical bar/ohlc data that are not comprised of trades but of bid and ask prices?...
Read more >
Questions about api
There can be 15 history requests active at one time. "Active" means the request has been sent and the data has not been...
Read more >
Historical Tick Data Request Hours
I believe that during trading hours IQFeed only provides tick data for the past 8 calendar days. In other words, even if you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found