Hi all,
Is there any hard limit on how may times / how much data I can download through calling self.Download(url)?
I am running some backtesting where on certain days, my algo will pull external data via self.Download. What i have seen is that after some time, call to self.Download would return empty string (len = 0)!
I wonder if anyone can help.
Best,
Andy
Mia Alissi
Based on the information from the QuantConnect forum discussions, there is indeed a limit to the number of times you can use the
self.Download
method during backtesting. The limit is set to 100 downloads, after which all calls toDownload(...)
will return an empty string without any logged errors, warnings, or exceptions. This limit does not apply to live trading, where there is no such restriction on the number of calls.Here is an extract from a forum discussion that confirms this:
This was mentioned by Uli Weltersbach in October 2020 and confirmed by Derek Melchin from QuantConnect, who also mentioned that they would update the documentation to reflect this information.
For live trading, as per Varad Kabade's response in September 2021, the limit is 20 calls per minute, similar to the web hook notification, and fair usage is applied. It is recommended to keep it around 100 calls, e.g., one call every 5 minutes, to avoid limitation.
If you are experiencing issues with
self.Download
returning an empty string during backtesting after a certain number of downloads, it is likely due to hitting this limit.For more information, you can refer to the following forum discussions:
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.
Kubid
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!