Open scloudyy opened 6 months ago
Also tested Crypto. Looks like Crypto also don't have this issue. The Crypto is added add Minute solution and 3 History call for Tick returns same data:
Looks like issue only happens to Future.
Hey @scloudyy! Thank you for the detail report, we will check it out when we have a chance
Expected Behavior
This 3 History requests for Tick data should return same number of Tick data for Future
History(Symbol, start, end, Resolution.Tick)
History[Tick](Symbol, start, end, Resolution.Tick)
History(Tick, Symbol, start, end, Resolution.Tick)
Actual Behavior
When requesting Tick data for Future, only the first History request
History(Symbol, start, end, Resolution.Tick)
returns dataThe second and third History request returns empty or a few unrelated data point.
Reproducing the Problem
Run below code on research environment in Algorithm Lab:
The History request
History(Symbol, start, end, Resolution.Tick)
returns 856834 data points. The other returns 3 data points, which are all Open Interest instead of Trade or Quote, see image below:Also tried different future like
Futures.Indices.SP500EMini
, as well as different time range2024-03-06 11:00:00 - 2024-03-07 11:00:00
. The issue consists for multiple Futures and multiple time range:To make the second and third History request return more data, the future must be added at Tick resolution
qb.AddFutureContract(contract_symbols[0], Resolution.Tick)
. After that 3 History call return same data:This issue not exist in Equity. Take
SPY
for example.SPY
are added at Minute resolution and 3 History call returns same amount Tick data:System Information
Algorithm Lab
Checklist
master
branch