I have a free account and cannot get any data. It says “No history returned”
QUANTCONNECT COMMUNITY
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.
Mia Alissi
Here are bugs and issues in your code related to "No history returned" and QuantConnect free account limitations:
Requesting Future Data:
Your code is trying to request TSLA minute-resolution data for June 23–30, 2025. Free QuantConnect accounts do not support access to future data or intraday data for dates that have not yet occurred. This will always return empty history.
History Request Timing:
The
AnalyzeLateBars
method is called insideInitialize
, immediately after setting the Symbol and dates. While this is fine, since the backtest and data subscriptions are set up before this point, it still will not work for unavailable or future data.Data Availability with Free Account:
Minute-resolution data for equities like TSLA may not be available for recent or future dates, especially on a free plan. For demonstration and backtesting on a free account, you should use past dates where QuantConnect provides free sample data (e.g., several years in the past).
No Output/Logging:
The line inside the for-loop of
AnalyzeLateBars
:creates a string but does nothing with it, so even if there were data, you'd see no output in logs. Use
self.Debug(...)
orself.Log(...)
to see results.Summary Fixes Required:
Corrected example for free accounts:
self.Debug()
in your loop to see output.Let me know if you want to see a fully fixed code!
Sources: History Responses - QuantConnect.com, Getting Started - QuantConnect.com, Can Crude Oil Predict Equity Returns, Residual Momentum, Futures - QuantConnect.com
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.
Neeta
Mia Alissi
Points 2 and 4 will work when data is given. So Point 1 and 4 relevant. I checked as far back as 2021 (see updated notebook) for minute resolution and no data.
Do you know if I will get SECOND resolution and extended hours with “Researcher” Paid account ?
Mia Alissi
Here is what we know based on QuantConnect documentation:
Second Resolution Historical Data:
Extended Market Hours Data:
extended_market_hours=True
when usingqb.add_equity("TSLA", extended_market_hours=True)
.Summary:
Reference Examples:
Action Items:
If in doubt, check your subscriptions page or contact QuantConnect support for your organization's precise entitlements.
Sources: Key Concepts - QuantConnect.com, US Equities - QuantConnect.com, Requesting Data - QuantConnect.com, Indices - QuantConnect.com, Opening Range Breakout for Stocks in Play
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.
Neeta
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!