Getting the following error when attempting to backtest local cli. Runs fine when doing a cloud backtest. There something I need to include or import when running this with lean cli?
2022-07-06T18:34:45.3829031Z TRACE:: Config.GetValue(): show-missing-data-logs - Using default value: False
2022-07-06T18:34:45.8735724Z ERROR:: Error downloading custom data source file, skipped: RemoteFile: Csv https://data.nasdaq.com/api/v3/datasets/OECD/KEI_LOLITOAA_OECDE_ST_M.csv?order=asc&api_key=your_api_key Error: The reader was empty for source: $https://data.nasdaq.com/api/v3/datasets/OECD/KEI_LOLITOAA_OECDE_ST_M.csv?order=asc&api_key=your_api_key
2022-07-06T18:34:46.2022421Z TRACE:: UniverseSelection.AddPendingInternalDataFeeds(): Adding internal benchmark data feed SPY,#0,SPY,Hour,TradeBar,Trade,Adjusted,OpenInterest,Internal
2022-07-06T18:34:46.3748653Z TRACE:: Debug: Warning: SetBenchmark(SPY): no existing symbol found, benchmark security will be added with Equity type.
Algorithm starting warm up...
Fred Painchaud
Hi Axist,
If the exact same code works in the Cloud, then you probably set your Nasdaq API key somewhere in the Cloud but not in the CLI:
api_key=your_api_key
“your_api_key” looks like a fake default value… The returned file is empty. So I guess Nasdaq is not responding because you give em no API key…
Not sure exactly what you are doing but maybe this can help?
Best that can be done with 5 lines of logs.
Fred
Axist
I'm surprised it was the api key. No key is provided in the cloud version and the file contents are properly read from the endpoint to get the Key Economic Data. For whatever reason, running it locally required a valid api key to build that request it seems
Axist
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!