---
title: "QuantStats - Repository Spotlight"
description: "A Python library for deep portfolio analytics and performance metrics, generating comprehensive tear sheets for quantitative trading strategies."
canonical_url: "https://haseeburrehman.com/open-source/repo/quantstats/open-source-traders-carousel-01"
meta:
  "og:description": "A Python library for deep portfolio analytics and performance metrics, generating comprehensive tear sheets for quantitative trading strategies."
  "og:image": "https://haseeburrehman.com/_og/s/o_5e96ba6748ed384d.png"
  "og:image:height": "1350"
  "og:image:type": image/png
  "og:image:width": "1350"
  "og:title": "QuantStats - Repository Spotlight"
  "twitter:description": "A Python library for deep portfolio analytics and performance metrics, generating comprehensive tear sheets for quantitative trading strategies."
  "twitter:image": "https://haseeburrehman.com/_og/s/o_5e96ba6748ed384d.png"
  "twitter:title": "QuantStats - Repository Spotlight"
---

> Index of every page on this site: [llms.txt](https://haseeburrehman.com/llms.txt)

[**The Daily**.](https://haseeburrehman.com/posts)

[All repositories](https://haseeburrehman.com/open-source)

Risk & Performance AnalyticsPortfolio Analytics & Risk ProfilingApache-2.0

**Q**

# **QuantStats**

ranaroussi/quantstats

A Python library for deep portfolio analytics and performance metrics, generating comprehensive tear sheets for quantitative trading strategies.

[View on GitHub](https://github.com/ranaroussi/quantstats)

<dl>

<dt>Stars</dt>
<dd>**7.9K**</dd>

<dt>Forks</dt>
<dd>**1.3K**</dd>

<dt>Open issues</dt>
<dd>**33**</dd>

<dt>Updated</dt>
<dd>**Nov 15, 2026**</dd></dl>

## What it's for

To allow traders and portfolio managers to evaluate risk metrics and strategy performance beyond simple return percentages.

## Key features

- **1**One-line performance and risk metric calculation (Sharpe, Sortino, CAGR)
- **2**Detailed visual tear sheets for returns, drawdowns, and monthly metrics
- **3**Benchmark comparison against market indices like SPY
- **4**Risk profiling including Value at Risk (VaR) and Expected Shortfall
- **5**Seamless integration with Pandas Series and DataFrames

**Our take **

A must-have tool for analyzing trading backtest results and understanding risk exposure through clear visual tear sheets.

## Sitemap

See the full [sitemap](https://haseeburrehman.com/sitemap.md) for all pages.
