Is there any way to get after market data using self.History? My full code is attached, but here are the relevant (i think) parts:
equity = self.AddEquity("AMD", Resolution.Hour, Market.USA, False, 1, True)
self.syl = equity.Symbol
history = self.History(1, Resolution.Hour)
Based on the self.AddEquity it looks like im pulling after market close data but the debug in the logs shows my self.History isn't pulling it in?
self.Debug("{0}: {1}: {2}: {3}: {4}: {5}".format(self.open[-1], self.close[-1], self.high[-1], self.low[-1], self.volume[-1], self.time[-1]))
Alexandre Catarino
Hi Enzo Ferrari ,
For extended-market data, please use higher resolutions (Minute/Second/Tick).
Both hourly- and daily-resolution data does not include extended-market hours.
Enzo Ferrari
Hi Alexandre,
This is the information I was looking for! Thank you for your help
Enzo Ferrari
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!