As I would like to use the API more and logs are not available through API, I moved some metrics I was logging to a chart with the hopes I could extract them from the backtest JSON results.
If I download the results from the site, I see the specific chart in the 'Charts" section with name, series & data,
{
..........
"Charts": {
........
},
"Expiry": {
"Name": "Expiry",
"ChartType": 0,
"Series": {
"Weighted Days": {
"Name": "Weighted Days",
"Unit": "$",
"Index": 0,
"Values": [
{
"x": 1325019540,
"y": 0.0
},
........
However if I pull the exact same backtest down via the API from the read backtest call, The chart name shows up but no data, just the name:
{
......
"charts": {
........
},
"Expiry": {
"Name": "Expiry"
},
.......
Also, the top-level keys in each respectively do not have the same case while all other descendants do
Derek Melchin
Hi Ari,
Please attach a notebook which shows how you were using the API to get the data.
Best,
Derek Melchin
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.
Ari Cooperman
This was not through a research notebook on QC. Simply used the python QC API and called read_backtest and processed the JSON that was returned. Most everything is there and matches what I download from QC except what I note above
Derek Melchin
Hi Ari,
When calling read_backtest, was Python or C# used? There was a change that has not been implemented in Python, so it might be the problem.
Best,
Derek Melchin
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.
Ari Cooperman
Python API
Derek Melchin
Hi Ari,
We've created a GitHub Issue to have this change implemented in Python. Subscribe to our progress here.
Best,
Derek Melchin
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.
Ari Cooperman
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!