I am Running Lean Locally on Visual Studio-2019, I backtested a Strategy and wanted to validate the orders so I Opened the order-event.json file of my Strategy and converted to .CSV and found that the time column is showing a big number instead of datetime ??
How can I Change the time Column ??
Jasper van Merle
Hi Ishant,
The time field contains the Epoch timestamp (seconds since 1970-01-01 00:00:00 UTC). I don't know whether Excel has the option to make Epoch timestamps more readable, but what you can do is update the file using your favorite programming language to change the formatting of that field to be compatible with how Excel expects datetime fields to be formatted.
Ishant Jain
Thanks Jasper for the Support !!!
Yeah I have used the .json file and used python to convert it into a more readable format :
Here is the Snippet (Just in Case Anyone wants to do the same 😊)
Anyway I was Wondering if there is any way I can get the Order.csv directly from LEAN after the Backtest has finished. (just like we do Back testing on QuantConnect.com)
Derek Melchin
Hi Ishant,
> I was Wondering if there is any way I can get the Order.csv directly from LEAN after the Backtest has finished
Yes, we just need to set a path in the config.json file where we want the CSV to be saved. Note that the path must have a directory. For example if we use mydir/myorders.csv, the CSV will be saved at  Lean/Launcher/bin/Debug/mydir/myorders.csv
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.
Ishant Jain
Thanks a lot Derek !!
That what I was Looking For !!
Ishant Jain
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!