AI Trading is invite only. Check your Moby inbox for a code, or DM us on X for access. DM us on X →

Moby Agent Marketplace Connect Moby MCP Get the app

QuantStats

by @ranaroussiCOMMUNITY· Updated Nov 5, 2026

ranaroussi/quantstats★ 7,801

QuantStats is a Python portfolio analytics library for drawdowns, win rate, volatility, and HTML tear sheets.

About

QuantStats is a Python library for portfolio and strategy analytics. It reports drawdowns, win rate, volatility, and other performance stats, and it can render HTML tear sheets.

What it adds to Moby. A consistent way for an agent to profile a strategy or a book after the fact: closed profit, drawdown, hit rate, and volatility in one report.

How to pair it. pip install quantstats, feed it a returns or equity series (for example from Moby fills you exported), and generate the tear sheet or stats table. Use it to explain past performance, not to pick the next trade.

What it does not do. It does not place trades or read Moby directly.

What's inside this repo

  • Drawdown, win rate, volatility and related performance metrics
  • HTML tear sheets and notebook-friendly reports
  • Works on returns or equity series you provide

Install steps

Third-party code: Moby does not audit or control it. Read the source before you run it.

  1. pip install quantstats
  2. Load a returns or equity curve into a pandas Series.
  3. Call qs.reports.metrics or qs.reports.html for the tear sheet.
  4. Ask: From this equity curve, use QuantStats to report CAGR, max drawdown, win rate, and volatility.

Permissions

Reads
Returns or equity series you load
Writes
Stats tables and HTML tear sheets
Tools
Python library `quantstats`
Trade
Never trades

Review

Curated listing. Moby did not audit the code.

On GitHub

ranaroussi/quantstats

Stars
7,801
Forks
1,276

How it works with Moby

QuantStats works on its own. With Moby your agent can also trade on what it finds.

  1. Set up AI Trading

    In the Moby app: create your agent and fund its Solana wallet.

    Get the app
  2. Connect Moby MCP

    Whale, KOL and smart-money data, plus buy, sell, SL and TP from the agent wallet.

    View Moby MCP
  3. Install QuantStats

    Your agent runs it alongside Moby's onchain data and trades inside your Guardrails.

    Install

Curated listing. Moby did not audit the code · Report this item

Install QuantStats