Streaks, drawdown & best/worst day
Compute-on-read streak / drawdown / best-worst-day analytics. Headline drawdown is peak-to-trough of cumulative realized PnL; a secondary close-based equity-curve drawdown is also returned. Cached 5s hot / 30s cold.
Authorizations
Preferred for swaps-api endpoints (/swaps/*, /stats/*, /trending, /pool-events).
Path Parameters
Wallet address (base58, 32–44 characters).
Query Parameters
Inclusive start date (UTC, YYYY-MM-DD).
Inclusive end date (UTC, YYYY-MM-DD).
PnL accounting mode. strict (FIFO) and adjusted (weighted-avg cost) are realized-PnL figures; raw is net cash-flow (Σ sells − Σ buys), not realized PnL. Unknown values fall back to adjusted.
raw, strict, adjusted Response
Performance analytics
HEADLINE: peak-to-trough of cumulative realized.
Null when running peak <= 0.
SECONDARY, close-based equity.
Always close-based equity curve.

