Closed ashutoshrana171 closed 7 months ago
Thank you for the report, the issue has been fixed starting from lean engine version 16336
.
To clarify, AFTY
does not have fundamental data but just coarse data set, that's why market cap is 0, expected, dollar volume/price are available 👍.
does not have fundamental data
The boolean HasFundamentalData
can be used to determine this.
Expected Behavior
In backtest the algorithm should give correct fundamental values.
Actual Behavior
For a lot of securities in backtest the algorithm does not give fundamental values. One example: the ticker "AFTY" gives correct fundamental data during Live but not in the backtest. The fundamental values are either 0 or nan during the backtest. This creates discrepancy in universe selection in backtest and live.
1) Backtest mode values:
2) Live mode values:
3) We can access correct data in research environment by calling History method:
Reproducing the Problem
We can run this code in backtest and live mode to check for the bug.
System Information
QC Cloud
Checklist
master
branch