Skip to main content
Goal: judge a trader on history, not vibes. This recipe pulls a wallet’s P&L time series and its historical fills so you can reconstruct how it actually performed. All requests need a Bearer key. See Authentication.

1. The P&L series

GET /api/v1/trader/{address}/pnl returns the daily series plus rolled-up stats and drawdowns:
entries is the daily series (date, total_pnl, cumulative_profit, daily_change, markets_traded, total_volume). monthly, year_totals, and drawdown give you the longer view. stats is pre-rolled for all, d90, d30, and d7 windows.

2. The fill history

For the trades behind the curve, replay this wallet’s historical whale trades over a date range with GET /api/v1/whale-trades/history. It accepts a trader filter and a from/to window:
Page through with the cursor (see Pagination) to pull the full window.

3. Per-market entries and exits

To reconstruct cost basis on a single market, use the position timeline with a condition_id. It gives ordered buys and sells with the running average price:

Scope and limits

  • The whale-trade history covers fills above the whale threshold. Small trades below it are not in this feed; use the aggregated P&L series for the complete return picture.
  • There is no single “closed positions” list endpoint. Reconstruct closed lots from the per-market timelines, or rely on the pnl series for net performance.
  • /trader/{address}/export returns export metadata (ranges, counts, completeness), not raw rows.
  • Backtest history is Polymarket-only; see Platforms.