Is there a way to programmatically catch History requests when the start date is adjusted?
Use case:
Create a Universe using CoarseSelection that returns a set of symbols. This is followed by a History request to support warming up analytic indicators. The CoarseSelection includes symbols that do not have data for the full warmup period. The symbols affected will log the information (e.g. 2021-01-01 00:00:00 [SNOW, 9/15/2020]).
I want to get a programmatic event when the full history period is not available. Is there a way to do that?
A secondary issue, I would like to suppress the logfile symbol warning since it gets quite verbose and makes the meaningful information hard to see.
Varad Kabade
Hi Steve Baunach,
I want to get a programmatic event when the full history period is not available. Is there a way to do that?
To avoid the above issue, we can use the ID.Date property of the Symbol object, for equities this is the first date the security traded. Technically speaking, in LEAN, this is the first date mentioned in the map_files and request Historical data accordingly.
A secondary issue, I would like to suppress the logfile symbol warning since it gets quite verbose and makes the meaningful information hard to see.
We've opened a GitHub Issue to have the problem resolved. Subscribe to our progress here:
NumericalPrecisionLimited Warning Overload
Best,
Varad Kabade
Steve Baunach
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!