Sharpe, Sortino, Calmar, drawdown, VaR — computed deterministically from your returns, rendered as a zero-dependency SVG tearsheet, with the assumptions disclosed and the sample-size alarm on. The report that states its own limits.
Implements the core concept of QuantStats (7.9k★, by the yfinance author) natively for DSH. Not affiliated. Family: dsh-TradingAgents · dsh-ai-hedge-fund · dsh-Vibe-Trading · dsh-OpenBB · dsh-CCXT · dsh-nautilus_trader · dsh-hummingbot · dsh-jesse.
Upstream quantstats (7.9k★, by the yfinance author) is a completed-state Python library for notebook quants: ~60 metrics, 20 plots, HTML tearsheets, a heavy stack (pandas/scipy/ matplotlib/seaborn/yfinance). In a pandas notebook, use quantstats. dsh-quantstats is the DSH-session report layer: zero-dependency, every metric rides with its caliber (period-based, disclosed), inline-SVG tearsheets, family-artifact consumption (committee ledgers, engine series).
| upstream quantstats (complement) | dsh-quantstats | |
|---|---|---|
| Form | Python library for notebooks | DSH plugin — agent asks, report out |
| Deps | pandas/scipy/matplotlib/seaborn/yfinance | zero (stdlib only) |
| Calibers | period-vs-trade disclosure in README | every metric carries its caliber line in-band |
| Data | yfinance downloads | your series / family artifacts |
| QuantStats library | dsh-quantstats | |
|---|---|---|
| Runs where | Python lab / notebooks | DSH in-session — agents tearsheet any family engine's output |
| Report | matplotlib HTML (CDN deps) | zero-dependency inline SVG — offline, shareable |
| Assumptions | stated in docs | stated on every report: annualization factor, historical-VaR method |
| Small samples | — | sample-size alarm: n<30 flags Sharpe/Sortino as noise |
git clone https://github.com/vicfei/dsh-quantstats && cd dsh-quantstats
python3 scripts/tearsheet.py --data <klines.json> --save # buy & hold
python3 scripts/tearsheet.py --data <klines.json> --strategy sma --fast 20 --slow 60 --saveReal smoke (binance BTC/USDT 365d, 2026-11-17) — the bear-year in one table:
| buy & hold | SMA 20/60 | |
|---|---|---|
| total | −29.9% | +1.6% |
| vol(ann) | 44.3% | 25.9% |
| max DD | −39.5% | −19.3% |
| Sharpe | −0.58 | 0.19 |
Assumptions disclosed on both (annualization=365, historical VaR, n=364).
v0 tearsheet engine smoke-tested on live data. ROADMAP: M1 rolling metrics + benchmark-relative mode; M2 plugin form; M3 report standard.
MIT; concept inspired by Apache-2.0 upstream — no upstream code used. Not investment advice. Past performance ≠ future results.