- 7,801GitHub stars
- Nevertrades
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.
pip install quantstats- Load a returns or equity curve into a pandas Series.
- Call
qs.reports.metricsorqs.reports.htmlfor the tear sheet. - 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.
Links
On GitHub
- 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.
- Set up AI Trading
In the Moby app: create your agent and fund its Solana wallet.
Get the app - Connect Moby MCP
Whale, KOL and smart-money data, plus buy, sell, SL and TP from the agent wallet.
View Moby MCP - Install QuantStats
Your agent runs it alongside Moby's onchain data and trades inside your Guardrails.
Install
Related
- CCXTCCXT is a unified library for crypto exchange market data, balances…
- CryptofeedCryptofeed is a Python websocket handler for live cryptocurrency…
- DuckDBDuckDB is an in-process analytical database for SQL over local and…
- skfolioskfolio is a Python portfolio optimization library built on…
- Moby MCP connectorConnect any MCP-capable agent to Moby for live onchain research on…
- Moby KnowledgeThe /agents page and agents.md as your agent's Moby reference: how…
Curated listing. Moby did not audit the code · Report this item
