You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start: 2022-09-01 09:30:00.001000, End: 2022-09-01 16:59:59.939000.
Total number of Ticks: 1963951.
Number of Trade Ticks: 8489.
Total traded quantity: 48928.0.
The number of trade ticks and the total traded quantity is much lower than the official numbers from CME of ~2M contracts traded.
Turned out that this is not a mapping issue with continuous Futures and also not a data issue.
It seems to be related to the specific method signature History[Tick](symbol, start, end).
When using History(Tick, symbol start, end) I receive correct results as you can see below:
Start: 2022-09-01 09:00:00, End: 2022-09-02 01:40:00.
Total number of Ticks: 8021995.
Number of Trade Ticks: 446230.
Total traded quantity: 1682733.0.
The values are correct now. It's not a nice workaround though. As you can see in the code snippet above, I had to split it into many smaller History requests since calling History(Tick, ...) consumes a huge amount of RAM (more than 8 GB RAM is needed for a single trading day). Not surprising considering that it returns a pandas.DataFrame instead of an Enumerable. Hence, a fix of History[Tick](...) is highly appreciated. Thanks!
Expected Behavior
Calling
qb.History[Tick](continuous_future.Symbol, start, end)
returns all the Tick data for the interval [start, end].Actual Behavior
There are a lot of trade ticks missing.
Reproducing the Problem
Run all cells of the research notebook of this project and check the output.
Output
The number of trade ticks and the total traded quantity is much lower than the official numbers from CME of ~2M contracts traded.
Note: Could be related to #6649.
System Information
QC Cloud
Checklist
master
branchThe text was updated successfully, but these errors were encountered: