Hi all,
I’ve successfully created a backtest via REST API and know how to wait for it to complete. However, there’s no documentation on how to download the generated log. In the console, I can access the log by scrolling down and clicking the “Download logs” link. In addition, there is a section in the documentation for accessing log via API, but not for backtests.
Has anyone successfully downloaded backtest logs via API?
Thanks,
Mia Alissi
Hi Kubid,
Based on the latest QuantConnect documentation (as of June 2024), there is currently no public REST API endpoint available for directly downloading backtest log files from the cloud. The official supported methods to access backtest logs are:
Manual Method via GUI (Cloud)
Local Backtests
<projectName>/backtests/<unixTimestamp>/<algorithmId>-log.txtin your workspace directories).REST API Limitations
Workarounds and Next Steps
References
Summary:
You can only download backtest logs from the cloud by manually visiting the backtest result’s Logs tab in the GUI—there’s no API endpoint for this yet.
Let me know if you need a sample browser automation script or want to discuss possible feature requests!
Sources: Results - QuantConnect.com, Results - QuantConnect.com
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
If my custom post backtest analytics want to access certain portfoliio charactiertics (e.g. portoflio value) at custom point in time of the backtest, is it possible to access this data via API?
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!