No data downloading from TOOLBOX in LEAN in Visual Studio

Back

I cannot download data and receive this error. I have an IEX API key. From 

https://iexcloud.io/PS C:\Users\amh\Lean\Toolbox\bin\Debug> ./QuantConnect.ToolBox.exe --app=IEXDownloader --tickers=NFLX --resolution=Daily --from-date=20180101-00:00:00 --to-date=20181231-00:00:00 --api-key=???
20201003 09:19:11.659 Trace:: Config.Get(): Configuration key not found. Key: data-directory - Using default value: ../../../Data
20201003 09:19:11.666 Trace:: Config.Get(): Configuration key not found. Key: iex-cloud-api-key - Using default value:
20201003 09:19:11.666 Trace:: Config.Get(): Configuration key not found. Key: plugin-directory - Using default value:
20201003 09:19:11.669 Trace:: Config.Get(): Configuration key not found. Key: composer-dll-directory - Using default value: C:\Users\amh\Lean\Toolbox\bin\Debug\
20201003 09:19:11.774 Trace:: Config.Get(): Configuration key not found. Key: data-aggregator - Using default value: QuantConnect.Lean.Engine.DataFeeds.AggregationManager
20201003 09:19:11.778 Trace:: IEXDataQueueHandler(): The IEX API key was not provided, history calls will return no data.
20201003 09:19:11.779 Trace:: Config.Get(): Configuration key not found. Key: map-file-provider - Using default value: LocalDiskMapFileProvider
20201003 09:19:11.790 Trace:: Config.Get(): Configuration key not found. Key: data-directory - Using default value: ../../../Data/
20201003 09:19:11.791 Trace:: Config.Get(): Configuration key not found. Key: version-id - Using default value:
20201003 09:19:11.791 Trace:: Config.Get(): Configuration key not found. Key: cache-location - Using default value: ../../../Data/
20201003 09:19:11.846 ERROR:: IEXDataQueueHandler.GetHistory(): History calls for IEX require an API key.
20201003 09:19:11.849 Trace:: IEXDataQueueHandler.Dispose(): Disconnected from IEX live data
20201003 09:19:13.583 ERROR:: <>c__DisplayClass4_0.<.ctor>b__0(): System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetEnumerator()
at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at QuantConnect.Util.Composer.<>c__DisplayClass4_0.<.ctor>b__0() in C:\Users\amh\Lean\Common\Util\Composer.cs:line 80

 

Update Backtest







 
0

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.


Can you attach an example of how you requested the data (blocking out the API key value with ##### or other characters)?

0

Hey!
I've opened this GH issue for the exception been seen. But for this case the issue can be seen in this error log "History calls for IEX require an API key.", you need to set the "iex-cloud-api-key" in you 'bin\Debug\config.json', history requests should work correctly since they directly use a web client, unaffected by issue #4815.

Hope this solves the issue!

0

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.


Update Backtest





0

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.


Loading...

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!