Hello,
I request some data in the web interface, went through the checkout, received email but I do not see data in "My Repositiory". I can see only the folder structure, but neither data files and nor links are being there. It's empty.
Am I doing something wrong? How long it usually takes than data is avaialble?
Regards
Tomas
Tomas Rampas
ok I've moved one step further. Now I know I have to use my Oanda token, and account id.
Hovewer using both argument running QuantConnect.Toolbox for downloading data I'm experiencing this error:
Invalid value specified for 'OANDA-Agent'
What should I change to pass correct 'OANDA-Agent' from local LEAN?
Full StackTrace:
20210327 12:34:16.141 TRACE:: Config.Get(): Configuration key not found. Key: cache-location - Using default value: ../../../Data/
20210327 12:34:16.564 ERROR:: OandaDownloaderProgram.OandaDownloader(): Oanda.RestV20.Client.ApiException: Error calling GetInstrumentCandles: {"errorMessage":"Invalid value specified for 'OANDA-Agent'"}
at Oanda.RestV20.Api.DefaultApi.GetInstrumentCandlesWithHttpInfo(String authorization, String instrument, String acceptDatetimeFormat, String price, String granularity, Nullable`1 count, String from, String to, Nullable`1 smooth, Nullable`1 includeFirst, Nullable`1 dailyAlignment, String alignmentTimezone, String weeklyAlignment) in D:\github\Lean\Brokerages\Oanda\RestV20\Api\DefaultApi.cs:line 3817
at Oanda.RestV20.Api.DefaultApi.GetInstrumentCandles(String authorization, String instrument, String acceptDatetimeFormat, String price, String granularity, Nullable`1 count, String from, String to, Nullable`1 smooth, Nullable`1 includeFirst, Nullable`1 dailyAlignment, String alignmentTimezone, String weeklyAlignment) in D:\github\Lean\Brokerages\Oanda\RestV20\Api\DefaultApi.cs:line 3735
at QuantConnect.Brokerages.Oanda.OandaRestApiV20.<DownloadQuoteBars>d__26.MoveNext() in D:\github\Lean\Brokerages\Oanda\OandaRestApiV20.cs:line 571
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at QuantConnect.ToolBox.OandaDownloader.OandaDataDownloader.<Get>d__5.MoveNext() in D:\github\Lean\ToolBox\OandaDownloader\OandaDataDownloader.cs:line 103
at QuantConnect.ToolBox.LeanDataWriter.WriteMinuteOrSecondOrTick(IEnumerable`1 source) in D:\github\Lean\ToolBox\LeanDataWriter.cs:line 361
at QuantConnect.ToolBox.LeanDataWriter.Write(IEnumerable`1 source) in D:\github\Lean\ToolBox\LeanDataWriter.cs:line 101
at QuantConnect.ToolBox.OandaDownloader.OandaDownloaderProgram.OandaDownloader(IList`1 tickers, String resolution, DateTime startDate, DateTime endDate) in D:\github\Lean\ToolBox\OandaDownloader\OandaDownloaderProgram.cs:line 91
Tomas Rampas
Ok. I've got it working. There seems to be one BUG in the code though. See link below
Lean/OandaDataDownloader.cs at 40a87eb05697491993482a556ae2612b2563b63a · QuantConnect/Lean (github.com)
It's passing null into the OandaBrokerage so it causes ommiting default OandaRestApiBase.OandaAgentDefaultValue and passing null further to OandaRestApiV20.
Once I removed null from the caller, so it uses OandaRestApiBase.OandaAgentDefaultValue further in the process it runs sucesfully.
Regards
TOmas
Tomas Rampas
The pull-request created for this issue
The null value parameter removed from call of OandaBrokerage c'tor fr… by tomas-rampas · Pull Request #5430 · QuantConnect/Lean (github.com)
Please eventually review.
T.
Tomas Rampas
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!