Is there someway to fetch, automatically download results from live trading, either via API or something else? The reports and files are there, why are they not accessible except through the web?
QUANTCONNECT COMMUNITY
Is there someway to fetch, automatically download results from live trading, either via API or something else? The reports and files are there, why are they not accessible except through the web?
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.
Mia Alissi
To fetch and automatically download results from live trading on QuantConnect, you can utilize their API. Here's a guide on how to do this:
Set Up API Access: Ensure you have your API credentials (API key and secret) ready for authentication.
Identify the API Endpoints: QuantConnect provides several API endpoints to access live trading data:
read_live_algorithm
: Fetches details of a live algorithm, including status and deployment information.read_live_chart
: Retrieves chart data from a live algorithm.read_live_insights
: Accesses insights generated by a live algorithm.read_live_logs
: Gets logs from a live algorithm.read_live_orders
: Retrieves orders from a live algorithm.read_live_portfolio
: Fetches the portfolio state of a live algorithm.Write API Request Code: Develop a Python script to send HTTP requests to these endpoints. Use your API credentials for authentication.
Parse the Response: Implement logic to parse the JSON responses from the API, extracting relevant data such as equity curves, trades, logs, and runtime statistics.
Store the Data: Save the extracted data to a local file or database for further analysis and record-keeping.
Automate the Process: Set up a scheduled task or cron job to run your script at regular intervals, ensuring continuous and automated data retrieval from your live trading sessions.
Here's a basic example of how you might start with the
read_live_algorithm
endpoint:This script is a starting point and should be expanded to handle other endpoints and data processing as needed.
Sources: Getting Started - QuantConnect.com, QuantConnect Paper Trading - QuantConnect.com, Live Features Algorithm
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.
Matt
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!