Home / Backtesting & trading frameworks

quantstats

Backtesting & trading frameworks7,927 GitHub starsPython⏱ Last commit 29 days ago

Portfolio analytics and performance tear sheets for quants

What it is

A Python library for portfolio profiling that gives quants and portfolio managers in-depth performance and risk metrics. It provides three modules: stats for metrics such as Sharpe ratio, volatility and win rate; plots for visualizing performance, drawdowns and rolling statistics; and reports for generating metrics tear sheets, batch plots and full HTML reports, plus built-in Monte Carlo simulations. It works well for systematic and algorithmic strategies with regular rebalancing, since it analyzes return series rather than discrete trades. Metrics like win rate and payoff ratio are period-based, so they may differ from trade-level statistics for discretionary traders with multi-day trades.

At a glance

RecommendedOur rating, based on popularity, maintenance and how ready it is for real use.

Best forProfessional quants
Used forData analysis, Strategy research
MarketsMulti-market
StackPython
Learning curveEasy to start
Practical valueHigh practical value
CostFree and open source
HardwareNo GPU needed
MaintenanceLast commit 29 days ago

Popularity snapshots

Daily snapshots of GitHub stars. Star changes are not a count of users or usage. Snapshots since 2026-11-02 (up to 30 days): first-to-last change +153 , latest 7,927. Gaps mean no snapshot was taken that day.

In the author's words

Portfolio analytics for quants, written in Python.

Open on GitHub ↗This week's trending toolsChinese page

Similar tools