Hello team,
I'm running my algo using lean cli locally (paper trading) and I am trying to generate live report using “lean report --live-results bot1/live/2024-10-21_16-34-54/L-3211289333.json” but I get an error “Error: No output backtests directories were found. Make sure you run a backtest or live deployment first”. Do you know what I can do to make it work?
Thanks!
Mia Alissi
To resolve the issue Tom is facing with generating a live report using the Lean CLI, here are some steps to consider:
Verify the JSON File Path: Ensure that the path to the JSON file is correctly specified. Double-check for any typos or incorrect directory names. Make sure to use proper escape characters for special characters in the file path.
Check JSON File Validity: Open the JSON file to confirm that it contains valid data and is not empty. The file should include the expected live trading results.
Update Lean CLI: Make sure that the Lean CLI is updated to the latest version. This can help avoid any potential bugs or issues with older versions.
Review Command Syntax: Ensure that the command syntax and options are being used correctly. The command should be in the format:
Ensure that the path is enclosed in quotes if it contains spaces or special characters.
Run a New Live Deployment: If the issue persists, consider running a new live deployment to generate fresh results and attempt to generate the report again.
Contact Support: If none of the above steps resolve the issue, consider reaching out to QuantConnect support or consulting community forums for additional assistance.
By following these steps, Tom should be able to troubleshoot and resolve the issue with generating the live report.
Sources: QuantConnect Paper Trading - 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.
Tom Cider
Bumping this thread to get a response
Tom Cider
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!