Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update quantstats.reports.metrics to include key dates of maximum drawdown. #322

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

git-shogg
Copy link
Contributor

Hi @ranaroussi ,

I have submitted this PR to enable users to see the maximum drawdown dates (maximum drawdown date itself, start and end) as part of the quantstats.reports.metrics. The dates themselves were already part of the library just not visible in the metrics report (hence relatively minor change). I noticed you have previously reformatted using black so have done so on the file modified as part of this PR (reports.py). Having these readily available in the metrics export will add a bunch of value for end users particularly when comparing multi-asset portfolios to a benchmark. This PR closes #318.

New output looks as follows with new metrics highlighted.
image

Kind regards,
git-shogg

@grzesir
Copy link

grzesir commented Jan 31, 2024

Since this library no longer seems to be maintained, we have created a duplicate of it that we plan to maintain and improve over time. If you'd like to use our version check it out here: https://github.com/Lumiwealth/quantstats_lumi

Please feel free to fork and send your pull request to this new library, we will be actively monitoring the library and approving PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quantstats.reports.metrics would be nice to have last date stats for Drawdown
2 participants