> ## Documentation Index
> Fetch the complete documentation index at: https://docs.polynode.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# P&L Query Catalog

> P&L recipes for wallet totals, time windows, tag and market filters, events, batches, and leaderboards.

Use these recipes when building wallet performance pages, time-series charts, filtered rankings, and leaderboard views.

<CardGroup cols={2}>
  <Card title="Wallet All-Time P&L" href="/data/query-catalog/pnl/wallet-all-time">
    Recovered all-time wallet P\&L with realized, unrealized, total, wins, losses, and volume.
  </Card>

  <Card title="Wallet Time-Windowed P&L" href="/data/query-catalog/pnl/wallet-time-window">
    Realized P\&L for periods like 1d, 7d, 30d, and 1y.
  </Card>

  <Card title="Wallet P&L by Tag" href="/data/query-catalog/pnl/wallet-by-tag">
    Wallet P\&L filtered to a tag or category.
  </Card>

  <Card title="Wallet P&L by Market" href="/data/query-catalog/pnl/wallet-by-market">
    Wallet P\&L filtered to one condition or market slug.
  </Card>

  <Card title="Wallet P&L Events" href="/data/query-catalog/pnl/wallet-events">
    Bucketed P\&L events for charts.
  </Card>

  <Card title="Batch Wallet P&L" href="/data/query-catalog/pnl/batch-wallet-pnl">
    Read P\&L for multiple wallets in one request.
  </Card>

  <Card title="Global P&L Leaderboard" href="/data/query-catalog/pnl/global-leaderboard">
    Rank wallets by total P\&L, realized P\&L, volume, or win count, with one primary filter dimension when needed.
  </Card>

  <Card title="Tag P&L Leaderboard" href="/data/query-catalog/pnl/tag-leaderboard">
    Rank wallets inside a tag/category; broad filters should use the global leaderboard filter.
  </Card>
</CardGroup>
