Hello please see this screenshot showing I am unable to get history. I was able to get history yesterday but I ran into a zip corruption issue and deleted my data dir, upgraded lean-cli and did a lean init for a new one (hopefully I wont have to purchase all the data using QCC again). I tried from a new project as well. History is always blank.
Alexandre Catarino
Hi No Name ,
If the Notebook/backtest makes a historical data request for data that is no longer available on your disk because it was deleted, it will return an empty data frame.
Please increase the lookback to 3600 days.
Lean-CLI is distributed with daily SPY data from Jan 1st, 1998 to Oct 31st, 2021.
Best regards,
Alex
Want to invest in QuantConnect as we build the Linux of quant finance? Checkout our Wefunder campaign to join the revolution.
Non Compete
Thanks Alex ! I get data when I use 3600 days. I used to be able to put any amount of days though, is there a reason why cant I use less days now? Also does the research environment automatically download data like the backtests?
I am getting this error when I try a new symbol:
Non Compete
I think i see the answer:
local lean-cli research does not download data automatically like backtests
and the reason why i couldn't get 30 days of SPY data was :
a - data not downloaded automatically
b - needed to use --overwrite with lean-cli data downloading to get more recent dates and overwrite the automatically included spy.zip file :
https://www.quantconnect.com/docs/v2/lean-cli/datasets/downloading-quantconnect-data
thanks for putting me on the right path Alex
Non Compete
I don't know if something changed in the more recent versions but now lean research is downloading the data on every run and charging me, and I need to use “--data-provider Local” to prevent myself from being charged QCC.
Alexandre Catarino
Hi Non Compete ,
I was not able to reproduce the issue. I follow these steps:
1. Run backtet with local data:
lean backtest '.\Tes321\'
2. Run backtest while downloading data
lean backtest '.\Tes321\' --download-data
3. Run backtest with local data again (disable download)
lean backtest '.\Tes321\' --data-provider Local
4. Run backtet with local data against (don't need to disable download):
lean backtest '.\Tes321\'
Please upgrade lean-cli and retry. If the problem persists, please contact support@quantconnect.com
Best regards,
Alex
Non Compete
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!