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

# Platform

> Platform-wide PnL leaderboards, volume totals, and bonding-curve stats

All platform queries accept a `period` argument (`"daily"`, `"weekly"`, `"monthly"`; default `"daily"`) and an optional `platform` filter (e.g. `"pumpfun"`; omit for all platforms).

***

## `pnlLeaderboard`

Wallets ranked by realized PnL over a fixed period.

### Arguments

| Name       | Type     | Required | Description                                      |
| ---------- | -------- | -------- | ------------------------------------------------ |
| `period`   | `String` | no       | `"daily"` (default), `"weekly"`, or `"monthly"`. |
| `platform` | `String` | no       | Single-platform filter.                          |
| `limit`    | `Int`    | no       | Default `100`, max `500`.                        |
| `offset`   | `Int`    | no       | Default `0`.                                     |

### Return type

```graphql theme={null}
type PnlLeaderboardEntry {
  signer: String!
  pnlSol: Float!
  pnlUsd: Float!
  trades: Int!
}

type PnlLeaderboard {
  period: String!
  wallets: [PnlLeaderboardEntry!]!
  solPriceUsd: Float!
}
```

### Example

```graphql theme={null}
query {
  pnlLeaderboard(period: "weekly", limit: 50) {
    period solPriceUsd
    wallets { signer pnlSol pnlUsd trades }
  }
}
```

***

## `pnlSummary`

Distribution stats (mean, median, p90, p99, max, total) for realized PnL across profitable wallets over a period.

### Arguments

| Name       | Type     | Required | Description                                      |
| ---------- | -------- | -------- | ------------------------------------------------ |
| `period`   | `String` | no       | `"daily"` (default), `"weekly"`, or `"monthly"`. |
| `platform` | `String` | no       | Single-platform filter.                          |

### Return type

```graphql theme={null}
type PnlSummary {
  period: String!
  totalProfitableWallets: Int!
  totalPnlSol: Float!
  avgPnlSol: Float!
  medianPnlSol: Float!
  p90PnlSol: Float!
  p99PnlSol: Float!
  maxPnlSol: Float!
  solPriceUsd: Float!
}
```

### Example

```graphql theme={null}
query {
  pnlSummary(period: "daily") {
    totalProfitableWallets medianPnlSol p90PnlSol p99PnlSol maxPnlSol
  }
}
```

***

## `platformVolume`

Platform-wide totals — SOL volume, trade counts, pro / sniper / bundle splits, fees.

### Arguments

| Name       | Type     | Required | Description                                      |
| ---------- | -------- | -------- | ------------------------------------------------ |
| `period`   | `String` | no       | `"daily"` (default), `"weekly"`, or `"monthly"`. |
| `platform` | `String` | no       | Single-platform filter.                          |

### Return type

```graphql theme={null}
type PlatformVolume {
  period: String!
  totalVolumeSol: Float!
  totalVolumeUsd: Float!
  totalTrades: Int!
  totalBuys: Int!
  totalSells: Int!
  totalBundleTrades: Int!
  totalSniperTrades: Int!
  totalProtraderTrades: Int!
  totalFees: Float!
}
```

### Example

```graphql theme={null}
query {
  platformVolume(period: "weekly") {
    totalVolumeSol totalVolumeUsd totalTrades totalBundleTrades totalSniperTrades totalFees
  }
}
```

***

## `bondingStats`

Tokens deployed vs. successfully bonded (migrated off the bonding curve) over a period.

### Arguments

| Name       | Type     | Required | Description                                      |
| ---------- | -------- | -------- | ------------------------------------------------ |
| `period`   | `String` | no       | `"daily"` (default), `"weekly"`, or `"monthly"`. |
| `platform` | `String` | no       | Single-platform filter.                          |

### Return type

```graphql theme={null}
type BondingStats {
  period: String!
  totalDeployed: Int!
  totalBonded: Int!
  bondingPercentage: Float!   # totalBonded / totalDeployed × 100
}
```

### Example

```graphql theme={null}
query {
  bondingStats(period: "daily", platform: "pumpfun") {
    totalDeployed totalBonded bondingPercentage
  }
}
```
