ranaroussi / quantstats

Portfolio analytics for quants, written in Python
Apache License 2.0
4.82k stars 841 forks source link

Generate full html_report but save as image #344

Closed fl0wo closed 6 months ago

fl0wo commented 6 months ago

Hi, I'm currently running backtests with 1m candlesticks for 7years timespan using vectorbt.

That's a lot of data to be plotted, but Quantstats manages to do it way better than other plotting libraries. I'm not able to re-sample my data (post backtest) for some reasons, I dont know how to do it.

Therefore I was wondering if I can save my html_report data as image (in a png file for example). It takes around 20min to generate the html file, it weights around 250MB so it's impossibile to handle as is, I was thinking converting to png would reduce the size by a lot.

Thanks for the help.