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

# Trade history

> Returns past trades that match a spot.trades filter, newest first or ranked by a value.

Returns past trades that match a [`spot.trades`](https://docs.metastreams.io/reference/streams/spot-trades#filters) filter, newest first or ranked by a value. The same filter object reads the history and streams new trades.

## Filter

`filter` takes every key of a `spot.trades` subscription filter, such as `chains`, `tokens`, `wallets`, `pools`, `side`, `flags`, `platforms`, `volumeUsd`, `token` and `exclude`. See [`spot.trades`](https://docs.metastreams.io/reference/streams/spot-trades#filters) for each key and [Filtering streams](https://docs.metastreams.io/streams/filters.md) for the rules they share. Omit `filter` to match every trade.

A filter can list at most 10 `tokens`, 10 `pools` and 100 `wallets`, and each list must contain at least one value.

The filter keeps the same trades as the subscription, with two differences:

* `token` tests the token's state when the request is read, not when the trade was made.
* A trade that was corrected after it was first recorded matches when any recorded version matches. A ranking can return such a trade once per version.

## Order

* **Newest first.** With no `sortBy`, or `sortBy` set to `timestamp`, trades are returned newest first. `order` must stay `desc`.
* **Ranked.** Any other `sortBy` ranks the trades in the window by that value, such as `volumeUsd` or `marketCapUsd`. `order` is `desc` by default, or `asc`. A trade without a value for the key is not ranked.

## Time window

`fromAt` is inclusive and `toAt` is exclusive, both in Unix milliseconds.

* A newest-first read that lists `tokens` pages back through the whole history of those tokens. A read that lists no token returns the last 30 days.
* A ranked read requires `fromAt`. The listed tokens share a window of 30 days, with at least one day each, so one token ranks up to 30 days and ten tokens rank up to 3 days. A read that lists no token ranks at most one day, inside the last 30 days.
* Without `toAt`, a ranking ends at `fromAt` plus the widest allowed window, or at the current time if that is earlier. Every page of the ranking keeps that end.
* A ranking that pages past the 30-day limit returns `400 VALIDATION_ERROR` on `fromAt`. Start again with a later `fromAt`.

## Response

A page contains `trades`, `nextCursor` and `hasMore`, in the same shape as [Trades](https://docs.metastreams.io/reference/rest/trades.md#response). `limit` sets the page size. The default is 20, and out-of-range values are clamped to 1–100.

Each token and each wallet in `filter` costs one [credit](https://docs.metastreams.io/concepts/errors.md#credits), and a request that lists neither costs one. Pools are free.

## Pagination

Send `nextCursor` back as `cursor`, with the rest of the body unchanged. A cursor continues only the request that made it, and a cursor from another request returns `400 VALIDATION_ERROR` on `cursor`. A page can hold fewer than `limit` trades, or none, while `hasMore` is `true`. Page until `hasMore` is `false`.

## Backfill a stream

To fill a list with past trades and keep it live without a gap:

1. Subscribe to `spot.trades` with the filter, and buffer the trades you receive.
2. Read `POST /v1/trades` with the same filter, newest first.
3. Drop each buffered trade whose `id` the read returned, then apply the rest.

A trade's `id` is the same on both.

## Errors

| Code | When |
| - | - |
| `UNSUPPORTED_CHAIN` | A slug in `filter.chains` is not supported |
| `VALIDATION_ERROR` | More than 10 `tokens` or `pools`, more than 100 `wallets`, or an empty list; a ranking without `fromAt`, or with a window that is too wide or too old; a ranking whose `fromAt` is in the future; a `toAt` at or before `fromAt`; `order` set to `asc` on a newest-first read; a range with `min` above `max`; an unknown filter key, flag or value; a cursor from another request; or a malformed body |

```bash cURL theme={null}
curl -X POST "https://api.metastreams.io/v1/trades" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "filter": { "chains": ["solana"], "side": "buy", "flags": ["whale"], "volumeUsd": { "min": "1000" } },
    "limit": 30
  }'
```

```bash Ranked theme={null}
curl -X POST "https://api.metastreams.io/v1/trades" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "filter": { "tokens": ["DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"] },
    "sortBy": "volumeUsd",
    "fromAt": 1789545600000,
    "limit": 20
  }'
```

```typescript Node.js theme={null}
const response = await fetch("https://api.metastreams.io/v1/trades", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    filter: { chains: ["solana"], side: "buy", flags: ["whale"], volumeUsd: { min: "1000" } },
    limit: 30,
  }),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const { trades, nextCursor, hasMore } = await response.json();
```

```rust Rust theme={null}
use serde_json::{Value, json};

let page: Value = reqwest::Client::new()
    .post("https://api.metastreams.io/v1/trades")
    .bearer_auth(std::env::var("API_KEY")?)
    .json(&json!({
        "filter": { "chains": ["solana"], "side": "buy", "flags": ["whale"], "volumeUsd": { "min": "1000" } },
        "limit": 30,
    }))
    .send()
    .await?
    .error_for_status()?
    .json()
    .await?;
let trades = &page["trades"];
```

```json Page theme={null}
{
  "trades": [
    {
      "id": "4xQmVb8e2kT1nR7pZcW3sLdHfA9jEuY6gVnX1oB5iC0wQ2rT8yU3iO7pA1sD4fG6h:2",
      "chain": "solana",
      "token": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
      "name": "Bonk",
      "symbol": "Bonk",
      "trader": "7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5",
      "transactionHash": "4xQmVb8e2kT1nR7pZcW3sLdHfA9jEuY6gVnX1oB5iC0wQ2rT8yU3iO7pA1sD4fG6h",
      "side": "buy",
      "amount": "62500000",
      "price": { "native": "0.000000121", "usd": "0.0000216" },
      "volume": { "native": "7.55", "usd": "1350.60" },
      "marketCap": { "native": "10741962.1", "usd": "1917440000" },
      "flags": ["whale"],
      "timestamp": 1789632015120
    }
  ],
  "nextCursor": "eyJ0cyI6MTc4OTYzMjAxNTEyMCwiaWQiOiI0eFFtVmI4ZTJrVDFuUjdwWmNXM3NMZEhmQTlq",
  "hasMore": true
}
```

```json Ranking without fromAt theme={null}
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "One or more parameters are invalid.",
    "details": [{ "field": "fromAt", "message": "A ranking needs the start of its window." }]
  }
}
```


## OpenAPI

````yaml specs/openapi.json POST /v1/trades
openapi: 3.1.0
info:
  title: Metastreams API
  description: >-
    The Metastreams market-data API. Amounts are decimal strings, timestamps are
    Unix milliseconds, and every field name is camelCase.
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://{host}
    variables:
      host:
        default: api.metastreams.io
        description: API host.
security:
  - bearerKey: []
paths:
  /v1/trades:
    post:
      tags:
        - trades
      summary: >-
        Trade history under any `spot.trades` filter, newest first or ranked by
        a value.
      description: >-
        `stream-protocol.md`, "The same filter over history", states each read's
        window. A page can be

        short, or empty, while `hasMore` is true. Page with `cursor` until
        `hasMore` is false.
      operationId: trade_search
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TradeSearch'
        required: true
      responses:
        '200':
          description: The trades the filter keeps, in the requested order.
          headers:
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UiSpotTrades'
        '400':
          description: >-
            A filter no trade can match, more addresses than a read names, a
            ranking with no `fromAt` or a window wider or older than it ranks,
            an `asc` timestamp order, a cursor of another search, or a malformed
            body.
          headers:
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: >-
            Missing or invalid credential: an API key, or a session token a key
            minted.
          headers:
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '402':
          description: >-
            The organization's credits this billing period reach its plan's
            limit.
          headers:
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '403':
          description: >-
            A key whose plan excludes this endpoint gets `FORBIDDEN`. A session
            token from an

            origin it does not name gets `ORIGIN_NOT_ALLOWED`.
          headers:
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limit exceeded.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait before retrying.
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '500':
          description: Unexpected server failure.
          headers:
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '503':
          description: Dependency down or maintenance.
          headers:
            X-Credits-Cost:
              schema:
                type: integer
              description: >-
                Credits charged for this request. Zero on any non-2xx. Sent on a
                metered tier only.
            X-Credits-Remaining:
              schema:
                type: integer
              description: Credit balance after this request. Sent on a metered tier only.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: >-
                Requests left in the bucket this request spent from. Not sent
                with a 401.
            X-Request-ID:
              schema:
                type: string
              description: >-
                This request's trace ID. Echoed from the request, or generated
                when it sent none.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    TradeSearch:
      type: object
      description: >-
        The body of `POST /v1/trades`: trade history under any `spot.trades`
        filter.


        `filter` takes every key a `spot.trades` subscription takes. A
        `timestamp` order reads newest

        first and pages back through history. Any other order ranks one window
        of trades by that

        value, and needs `fromAt`.
      properties:
        cursor:
          type:
            - string
            - 'null'
          description: Opaque cursor from the previous page.
        filter:
          $ref: '#/components/schemas/TradeFilter'
          description: The trades to keep, as a `spot.trades` subscription names them.
        fromAt:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/UnixMilliseconds'
              description: Window start, inclusive. A ranking needs it.
          description: Window start, inclusive. A ranking needs it.
        limit:
          type:
            - integer
            - 'null'
          format: int32
          description: >-
            Trades per page, 20 when absent. A value outside 1–100 is clamped
            into it.
          minimum: 0
        order:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/SortOrder'
              description: '`desc` when absent. A `timestamp` order is always `desc`.'
          description: '`desc` when absent. A `timestamp` order is always `desc`.'
        sortBy:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TradeSortField'
              description: The value that orders the trades; `timestamp` when absent.
          description: The value that orders the trades; `timestamp` when absent.
        toAt:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/UnixMilliseconds'
              description: >-
                Window end, exclusive. When absent, a feed ends at now. A
                ranking ends at its widest

                window past `fromAt`, or at now when that is earlier.
          description: >-
            Window end, exclusive. When absent, a feed ends at now. A ranking
            ends at its widest

            window past `fromAt`, or at now when that is earlier.
      additionalProperties: false
    UiSpotTrades:
      type: object
      description: A page of trades, newest first.
      required:
        - trades
        - hasMore
      properties:
        hasMore:
          type: boolean
          description: Whether a next page exists.
        nextCursor:
          type:
            - string
            - 'null'
          description: Cursor for the next page; `null` on the last page.
        trades:
          type: array
          items:
            $ref: '#/components/schemas/UiSpotTrade'
          description: Trades on the requested page, newest first.
    ErrorEnvelope:
      type: object
      description: The complete error response body — every error is exactly this.
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
          description: The error.
    TradeFilter:
      type: object
      description: >-
        A predicate on one trade. Different keys are ANDed; values in one list
        are ORed.
      properties:
        amount:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Token units traded.
          description: Token units traded.
        anchors:
          type: array
          items:
            $ref: '#/components/schemas/AnchorToken'
          description: Quote assets the trade priced against.
        chains:
          type: array
          items:
            $ref: '#/components/schemas/SpotChain'
          description: Chains to keep; empty keeps every chain.
        dexes:
          type: array
          items:
            type: string
          description: Venues the trade executed on.
        exclude:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TradeExclude'
              description: Values that drop a trade that matches any of them.
          description: Values that drop a trade that matches any of them.
        feesPlatformNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: The trading terminal's cut, in the chain's gas asset.
          description: The trading terminal's cut, in the chain's gas asset.
        feesPlatformUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: The trading terminal's cut, in USD.
          description: The trading terminal's cut, in USD.
        feesValidatorNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Validator tips and MEV bribes, in the chain's gas asset.
          description: Validator tips and MEV bribes, in the chain's gas asset.
        feesValidatorUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Validator tips and MEV bribes, in USD.
          description: Validator tips and MEV bribes, in USD.
        flags:
          type: array
          items:
            $ref: '#/components/schemas/WalletFilter'
          description: Trader classifications to keep.
        fullExit:
          type:
            - boolean
            - 'null'
          description: >-
            Whether the trade is a sell that leaves the trader none of the
            token.
        launchpads:
          type: array
          items:
            type: string
          description: Launchpads the traded token launched on.
        liquidityNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Pool liquidity at the trade, in the chain's gas asset.
          description: Pool liquidity at the trade, in the chain's gas asset.
        liquidityUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Pool liquidity at the trade, in USD.
          description: Pool liquidity at the trade, in USD.
        marketCapNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Market cap at the fill price, in the chain's gas asset.
          description: Market cap at the fill price, in the chain's gas asset.
        marketCapUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Market cap at the fill price, in USD.
          description: Market cap at the fill price, in USD.
        platforms:
          type: array
          items:
            type: string
          description: Trading terminals the trade routed through.
        pools:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/MultiChainAddress'
          description: Pools or markets to keep; absent keeps every pool.
        priceImpactPct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Percent the fill price moved from the price before the trade.
          description: Percent the fill price moved from the price before the trade.
        priceNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Fill price in the chain's gas asset.
          description: Fill price in the chain's gas asset.
        priceUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Fill price in USD.
          description: Fill price in USD.
        side:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TradeDirection'
              description: Buy or sell.
          description: Buy or sell.
        token:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TokenFilter'
              description: >-
                The traded token's current state, as a `spot.tokens` filter
                tests it.
          description: >-
            The traded token's current state, as a `spot.tokens` filter tests
            it.
        tokens:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/MultiChainAddress'
          description: Traded tokens to keep; absent keeps every token.
        traderSources:
          type: array
          items:
            $ref: '#/components/schemas/TraderSource'
          description: What named the trader of an EVM trade. A Solana trade has none.
        volumeNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Trade value in the chain's gas asset.
          description: Trade value in the chain's gas asset.
        volumeUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Trade value in USD.
          description: Trade value in USD.
        wallets:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/MultiChainAddress'
          description: Trader wallets to keep; absent keeps every wallet.
      additionalProperties: false
    UnixMilliseconds:
      type: integer
      format: int64
      description: An instant, as milliseconds since the Unix epoch.
    SortOrder:
      type: string
      description: Rank direction; descending when absent.
      enum:
        - asc
        - desc
    TradeSortField:
      type: string
      description: >-
        The value a trade search orders by. Each value but `timestamp` is a
        range key of the filter.
      enum:
        - timestamp
        - volumeUsd
        - volumeNative
        - amount
        - priceUsd
        - priceNative
        - marketCapUsd
        - marketCapNative
        - liquidityUsd
        - liquidityNative
        - feesValidatorUsd
        - feesValidatorNative
        - feesPlatformUsd
        - feesPlatformNative
    UiSpotTrade:
      type: object
      description: One executed swap on the token.
      required:
        - id
        - chain
        - token
        - name
        - symbol
        - trader
        - transactionHash
        - side
        - amount
        - price
        - volume
        - marketCap
        - timestamp
      properties:
        amount:
          $ref: '#/components/schemas/Decimal'
          description: Token units traded.
        chain:
          $ref: '#/components/schemas/SpotChain'
          description: Chain the trade executed on.
        flags:
          type: array
          items:
            type: string
            description: >-
              A flag the classifier put on the wallet. This is an open
              enumeration: the classifier learns new flags, so keep a value you
              do not recognize.
            examples:
              - bundler
              - sniper
              - insider
              - dev
              - fresh
              - whale
              - kol
              - liquidity_pool
              - locker
              - pro_trader
              - system
              - fomo
              - phishing
              - marketplace
              - proxima
          description: Classifications the wallet carries.
        id:
          type: string
          description: >-
            Stable identity for this trade, opaque to the caller. One
            transaction can settle several

            trades on a token, so this is not a transaction hash — never parse
            it.
        identities:
          type: array
          items:
            $ref: '#/components/schemas/UiWalletIdentity'
          description: Trader's resolved identities, one element per source.
        marketCap:
          $ref: '#/components/schemas/UiMoney'
          description: Token market cap at execution.
        name:
          type: string
          description: Traded token's name; empty until the token's metadata resolves.
        platforms:
          type: array
          items:
            $ref: '#/components/schemas/UiPlatform'
          description: >-
            Terminals this trade routed through. A trader's profile is an
            element of

            `identities`.
        price:
          $ref: '#/components/schemas/UiMoney'
          description: Token price at execution.
        side:
          $ref: '#/components/schemas/TradeDirection'
          description: Buy or sell.
        symbol:
          type: string
          description: Traded token's symbol; empty until the token's metadata resolves.
        timestamp:
          $ref: '#/components/schemas/UnixMilliseconds'
          description: When the trade executed.
        token:
          type: string
          description: Traded token's address.
        trader:
          type: string
          description: Wallet that sent the swap.
        transactionHash:
          type: string
          description: On-chain transaction hash.
        volume:
          $ref: '#/components/schemas/UiMoney'
          description: Trade value.
    ErrorDetail:
      type: object
      description: The `error` object inside the envelope.
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
          description: >-
            Stable, machine-readable. Clients switch on this, never on
            `message`.
        details:
          description: Optional; shape is fixed per code.
        message:
          type: string
          description: |-
            Human-readable, written for the integrating developer:
            `[What happened]. [What to do next — if actionable].`
    Range_Decimal:
      type: object
      description: An inclusive range of decimal strings; an absent bound is unbounded.
      properties:
        max:
          type: string
          format: decimal
          description: Largest value kept, inclusive; absent means unbounded.
          example: '123.456789'
        min:
          type: string
          format: decimal
          description: Smallest value kept, inclusive; absent means unbounded.
          example: '123.456789'
      additionalProperties: false
    AnchorToken:
      type: string
      description: The quote asset a token's deepest pool prices against.
      enum:
        - native
        - usdc
        - usdt
        - usd1
        - busd
        - uusd
        - usdg
        - unknown
    SpotChain:
      type: string
      description: >-
        Chain slug. One spelling per chain, in paths and bodies alike. Only a
        chain with spot data is published.
      enum:
        - solana
        - bsc
        - robinhood
        - elysium
        - ethereum
        - base
    TradeExclude:
      type: object
      description: >-
        Values that drop a trade. Each list drops a trade that matches any of
        its values.
      properties:
        flags:
          type: array
          items:
            $ref: '#/components/schemas/WalletFilter'
          description: Trader classifications to drop.
        platforms:
          type: array
          items:
            type: string
          description: Trading terminals to drop.
        wallets:
          type: array
          items:
            $ref: '#/components/schemas/MultiChainAddress'
          description: Trader wallets to drop.
      additionalProperties: false
    WalletFilter:
      type: string
      description: A wallet classification a trade or holder filter selects on.
      enum:
        - dev
        - sniper
        - insider
        - bundler
        - fresh
        - whale
        - kol
        - pro_trader
        - fomo
        - phishing
    MultiChainAddress:
      type: string
      description: 'An address: base58 on Solana, `0x`-hex on an EVM chain.'
      examples:
        - So11111111111111111111111111111111111111112
    TradeDirection:
      type: string
      description: 'Which way the traded token moved: `buy` or `sell`.'
      enum:
        - buy
        - sell
    TokenFilter:
      type: object
      description: A predicate on one token's current state.
      properties:
        ageMs:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Time since creation.
          description: Time since creation.
        anchors:
          type: array
          items:
            $ref: '#/components/schemas/AnchorToken'
          description: Quote assets the token trades against.
        annotations:
          type: array
          items:
            type: string
          description: Annotation kinds the token carries, each written as its bare `kind`.
          example:
            - mayhem_mode
            - cashback_coin
        athMarketCapNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: All-time-high market cap in the chain's gas asset.
          description: All-time-high market cap in the chain's gas asset.
        athMarketCapUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: All-time-high market cap in USD.
          description: All-time-high market cap in USD.
        bondingCurvePct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Percent of the bonding curve filled.
          description: Percent of the bonding curve filled.
        bundlerCount:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Number of bundler wallets.
          description: Number of bundler wallets.
        bundlerSupplyPct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Percent of supply bundlers hold.
          description: Percent of supply bundlers hold.
        buyTaxBps:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Buy tax in basis points.
          description: Buy tax in basis points.
        chains:
          type: array
          items:
            $ref: '#/components/schemas/SpotChain'
          description: Chains to keep; empty keeps every chain.
        devAddresses:
          type: array
          items:
            $ref: '#/components/schemas/MultiChainAddress'
          description: Creator wallets to keep.
        devHoldingPct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Percent of supply the creator holds.
          description: Percent of supply the creator holds.
        dexPaid:
          type:
            - boolean
            - 'null'
          description: Whether the token paid for a DEX Screener profile.
        dexes:
          type: array
          items:
            type: string
          description: Venues of any of the token's pools.
        drawdownFromAthPct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Percent the USD market cap sits below its all-time high.
          description: Percent the USD market cap sits below its all-time high.
        exclude:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TokenExclude'
              description: Values that drop a token that matches any of them.
          description: Values that drop a token that matches any of them.
        feesDexNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: All-time DEX fees in the chain's gas asset.
          description: All-time DEX fees in the chain's gas asset.
        feesDexUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: All-time DEX fees in USD.
          description: All-time DEX fees in USD.
        feesPlatformNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: All-time platform fees in the chain's gas asset.
          description: All-time platform fees in the chain's gas asset.
        feesPlatformUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: All-time platform fees in USD.
          description: All-time platform fees in USD.
        feesValidatorNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: All-time validator fees in the chain's gas asset.
          description: All-time validator fees in the chain's gas asset.
        feesValidatorUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: All-time validator fees in USD.
          description: All-time validator fees in USD.
        fomoCount:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Number of fomo traders.
          description: Number of fomo traders.
        fomoSupplyPct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Percent of supply fomo traders hold.
          description: Percent of supply fomo traders hold.
        freshWalletCount:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Number of fresh wallets.
          description: Number of fresh wallets.
        freshWalletSupplyPct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Percent of supply fresh wallets hold.
          description: Percent of supply fresh wallets hold.
        fundedByCexPct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Percent of holders an exchange funded.
          description: Percent of holders an exchange funded.
        fundingAddresses:
          type: array
          items:
            $ref: '#/components/schemas/MultiChainAddress'
          description: Wallets that funded the creator.
        fundingKinds:
          type: array
          items:
            $ref: '#/components/schemas/FundingSourceKind'
          description: Kinds of source that funded the creator.
        graduatedToDexes:
          type: array
          items:
            type: string
          description: Venues the token graduated to.
        holderCount:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Number of holders.
          description: Number of holders.
        insiderCount:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Number of insider wallets.
          description: Number of insider wallets.
        insiderSupplyPct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Percent of supply insiders hold.
          description: Percent of supply insiders hold.
        lastActivityMs:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Time since the token's state last changed.
          description: Time since the token's state last changed.
        liquidityNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Liquidity in the chain's gas asset.
          description: Liquidity in the chain's gas asset.
        liquidityUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Liquidity in USD.
          description: Liquidity in USD.
        lpBurntPct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Percent of LP tokens burnt.
          description: Percent of LP tokens burnt.
        marketCapNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Market cap in the chain's gas asset.
          description: Market cap in the chain's gas asset.
        marketCapUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Market cap in USD.
          description: Market cap in USD.
        mintDisabled:
          type:
            - boolean
            - 'null'
          description: Whether minting is disabled.
        phishingCount:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Number of phishing wallets.
          description: Number of phishing wallets.
        phishingSupplyPct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Percent of supply phishing wallets hold.
          description: Percent of supply phishing wallets hold.
        priceNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Price in the chain's gas asset.
          description: Price in the chain's gas asset.
        priceUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Price in USD.
          description: Price in USD.
        proTraderCount:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Number of pro traders.
          description: Number of pro traders.
        proTraderSupplyPct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Percent of supply pro traders hold.
          description: Percent of supply pro traders hold.
        protocols:
          type: array
          items:
            type: string
          description: Launchpads the token launched on.
        sellTaxBps:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Sell tax in basis points.
          description: Sell tax in basis points.
        sinceGraduationMs:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Time since graduation.
          description: Time since graduation.
        sniperCount:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Number of sniper wallets.
          description: Number of sniper wallets.
        snipersSupplyPct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Percent of supply snipers hold.
          description: Percent of supply snipers hold.
        socials:
          type: array
          items:
            $ref: '#/components/schemas/Social'
          description: Social links the token must carry at least one of.
        stages:
          type: array
          items:
            $ref: '#/components/schemas/GraduationStage'
          description: Launchpad stages; a token with no launchpad has no stage.
        stats:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/WindowStatsFilter'
              description: Rolling-window activity.
          description: Rolling-window activity.
        supply:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Supply in whole tokens.
          description: Supply in whole tokens.
        symbolOrName:
          type: array
          items:
            type: string
          description: >-
            Substrings of the symbol or name; an address-shaped value matches
            the token address exactly.
        tokens:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/MultiChainAddress'
          description: Token addresses to keep, 1 to 100 of them.
        top10HoldersPct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Percent of supply the ten largest holders hold.
          description: Percent of supply the ten largest holders hold.
        totalVolumeNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: All-time volume in the chain's gas asset.
          description: All-time volume in the chain's gas asset.
        totalVolumeUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: All-time volume in USD.
          description: All-time volume in USD.
        transferBlockable:
          type:
            - boolean
            - 'null'
          description: Whether an authority can block transfers.
        transferFeeBps:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Transfer fee in basis points.
          description: Transfer fee in basis points.
      additionalProperties: false
    TraderSource:
      type: string
      description: What named the trader of an EVM trade.
      enum:
        - swap_recipient
        - tx_origin
        - launchpad_buyer
        - settlement_endpoint
        - authority7702
        - user_op_sender
        - relay_caller
        - pool_caller
        - net_principal
        - net_sender
        - net_payer
        - unresolved
        - cycle_sender
        - native_out_sender
        - contract_caller
        - net_holder
        - net_receiver
        - token_funded
    Decimal:
      type: string
      format: decimal
      description: An exact decimal, as a string.
      example: '123.456789'
    UiWalletIdentity:
      type: object
      description: One source's resolved profile for a trade's trader.
      required:
        - source
      properties:
        avatar:
          type:
            - string
            - 'null'
          description: >-
            CDN URL of the avatar to render; `null` until the picture is
            mirrored.
        displayName:
          type:
            - string
            - 'null'
          description: Human-readable name to render.
        farcaster:
          type:
            - string
            - 'null'
          description: The wallet's Farcaster handle, where the source links one.
        handle:
          type:
            - string
            - 'null'
          description: The wallet's handle on the source.
        source:
          type: string
          description: >-
            Who resolved a trader's identity. This is an open enumeration: keep
            a value you do not recognize.
          examples:
            - codex
            - fomo
            - pump
            - gmgn
            - axiom
            - arkham
            - registry
            - unknown
        telegram:
          type:
            - string
            - 'null'
          description: The wallet's Telegram handle, where the source links one.
        twitter:
          type:
            - string
            - 'null'
          description: The wallet's bare X handle, where the source links one.
    UiMoney:
      type: object
      description: >-
        A chain-denominated value with its USD equivalent. The enclosing object
        carries the

        `chain` that names `native`'s unit.
      required:
        - native
      properties:
        native:
          $ref: '#/components/schemas/Decimal'
          description: Value in the owning chain's gas asset.
        usd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Decimal'
              description: Value in USD; `null` when the native asset is unpriced.
          description: Value in USD; `null` when the native asset is unpriced.
    UiPlatform:
      oneOf:
        - type: object
          description: >-
            fomo.family, the terminal that routed the trade. The trader's
            profile is the `fomo`

            element of `identities`.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - fomo
        - type: object
          description: >-
            A token's DexScreener listing; present only while its profile is
            paid.
          required:
            - isPaid
            - platform
          properties:
            isPaid:
              type: boolean
              description: Whether the token's DexScreener profile is paid.
            paidAt:
              oneOf:
                - type: 'null'
                - $ref: '#/components/schemas/UnixMilliseconds'
                  description: Earliest profile payment time.
              description: Earliest profile payment time.
            platform:
              type: string
              description: Which platform this is.
              enum:
                - dexScreener
        - type: object
          description: Axiom.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - axiom
        - type: object
          description: '"Banana Gun".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - bananaGun
        - type: object
          description: Bloom.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - bloom
        - type: object
          description: '"BONKbot".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - bonkbot
        - type: object
          description: BtcTurk.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - btcTurk
        - type: object
          description: BullX.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - bullX
        - type: object
          description: Click.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - click
        - type: object
          description: '"GMGN".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - gmgn
        - type: object
          description: '"Lucky Block".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - luckyBlock
        - type: object
          description: Maestro.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - maestro
        - type: object
          description: '"Manifold Trading".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - manifoldTrading
        - type: object
          description: '"MEVX".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - mevx
        - type: object
          description: Mintech.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - mintech
        - type: object
          description: Nighthawk.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - nighthawk
        - type: object
          description: Nova.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - nova
        - type: object
          description: '"OX.FUN".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - oxFun
        - type: object
          description: Padre.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - padre
        - type: object
          description: PepeBoost.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - pepeBoost
        - type: object
          description: Phantom.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - phantom
        - type: object
          description: Photon.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - photon
        - type: object
          description: SexBotSolana.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - sexBotSolana
        - type: object
          description: Shuriken.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - shuriken
        - type: object
          description: '"SOL Sniper Bot".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - solSniperBot
        - type: object
          description: '"Sol Trading Bot".'
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - solTradingBot
        - type: object
          description: Trojan.
          required:
            - platform
          properties:
            platform:
              type: string
              description: Which platform this is.
              enum:
                - trojan
      description: >-
        A platform attached to a token, a wallet, or a trade.


        The fieldless variants are trading terminals, each described by its
        display name.
    ErrorCode:
      type: string
      description: |-
        Every wire error code the API can return.

        Append-only: a new code is non-breaking, since clients fall back on the
        HTTP status for one they do not recognize, and a published code is never
        renamed or removed.
      enum:
        - UNAUTHORIZED
        - FORBIDDEN
        - VALIDATION_ERROR
        - UNSUPPORTED_CHAIN
        - NOT_FOUND
        - RATE_LIMITED
        - CREDITS_EXHAUSTED
        - INTERNAL_ERROR
        - SERVICE_UNAVAILABLE
        - RANGE_TOO_LARGE
        - INVALID_CREDENTIALS
        - ORIGIN_NOT_ALLOWED
        - NOT_ORG_MEMBER
        - MEMBERSHIP_INACTIVE
        - EMAIL_NOT_VERIFIED
        - EMAIL_TAKEN
        - ALREADY_MEMBER
        - INVITATION_ALREADY_SENT
        - INVITATION_ALREADY_ACCEPTED
        - LAST_ADMIN
        - CANNOT_REMOVE_SELF
        - KEY_LIMIT_REACHED
        - TOKEN_EXPIRED
        - PAYLOAD_TOO_LARGE
        - UNSUPPORTED_MEDIA_TYPE
        - IMAGE_TOO_LARGE
        - DEMO_LIMIT_REACHED
        - DEMO_BUILD_IN_FLIGHT
        - DEMO_CHALLENGE_FAILED
        - STAFF_ADMIN_REQUIRED
        - DEMO_PUBLISH_LIMIT_REACHED
    Range_u64:
      type: object
      description: An inclusive range of counts; an absent bound is unbounded.
      properties:
        max:
          type: integer
          format: int64
          description: Largest value kept, inclusive; absent means unbounded.
          minimum: 0
        min:
          type: integer
          format: int64
          description: Smallest value kept, inclusive; absent means unbounded.
          minimum: 0
      additionalProperties: false
    TokenExclude:
      type: object
      description: >-
        Values that drop a token. Each list drops a token that matches any of
        its values.
      properties:
        anchors:
          type: array
          items:
            $ref: '#/components/schemas/AnchorToken'
          description: Quote assets to drop.
        annotations:
          type: array
          items:
            type: string
          description: Annotation kinds to drop, each written as its bare `kind`.
          example:
            - mayhem_mode
            - cashback_coin
        chains:
          type: array
          items:
            $ref: '#/components/schemas/SpotChain'
          description: Chains to drop.
        devAddresses:
          type: array
          items:
            $ref: '#/components/schemas/MultiChainAddress'
          description: Creator wallets to drop.
        dexes:
          type: array
          items:
            type: string
          description: Pool venues to drop.
        fundingAddresses:
          type: array
          items:
            $ref: '#/components/schemas/MultiChainAddress'
          description: Creator funders to drop.
        fundingKinds:
          type: array
          items:
            $ref: '#/components/schemas/FundingSourceKind'
          description: Kinds of creator funding source to drop.
        graduatedToDexes:
          type: array
          items:
            type: string
          description: Graduation venues to drop.
        protocols:
          type: array
          items:
            type: string
          description: Launchpads to drop.
        socials:
          type: array
          items:
            $ref: '#/components/schemas/Social'
          description: Social links whose presence drops a token.
        stages:
          type: array
          items:
            $ref: '#/components/schemas/GraduationStage'
          description: Launchpad stages to drop.
        symbolOrName:
          type: array
          items:
            type: string
          description: Symbol or name substrings to drop.
        tokens:
          type: array
          items:
            $ref: '#/components/schemas/MultiChainAddress'
          description: Token addresses to drop.
        twitter:
          type: array
          items:
            type: string
          description: X handles to drop.
        websites:
          type: array
          items:
            type: string
          description: Website hosts to drop.
      additionalProperties: false
    FundingSourceKind:
      type: string
      description: Whether a known exchange or another wallet funded the creator.
      enum:
        - cex
        - wallet
    Social:
      type: string
      description: A social link a token can carry.
      enum:
        - twitter
        - telegram
        - website
        - discord
    GraduationStage:
      type: string
      description: A launchpad token's stage, from launch to its DEX listing.
      enum:
        - newly_created
        - about_to_graduate
        - graduated
    WindowStatsFilter:
      type: object
      description: Activity filters per rolling window.
      properties:
        1h:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/StatsFilter'
              description: The last hour.
          description: The last hour.
        24h:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/StatsFilter'
              description: The last 24 hours.
          description: The last 24 hours.
        30m:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/StatsFilter'
              description: The last 30 minutes.
          description: The last 30 minutes.
        5m:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/StatsFilter'
              description: The last 5 minutes.
          description: The last 5 minutes.
        6h:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/StatsFilter'
              description: The last 6 hours.
          description: The last 6 hours.
      additionalProperties: false
    StatsFilter:
      type: object
      description: Activity filters for one rolling window.
      properties:
        buyVolumeNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Buy volume in the chain's gas asset.
          description: Buy volume in the chain's gas asset.
        buyVolumeUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Buy volume in USD.
          description: Buy volume in USD.
        buys:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Number of buys.
          description: Number of buys.
        netBuyVolumeNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Buy volume less sell volume, in the chain's gas asset.
          description: Buy volume less sell volume, in the chain's gas asset.
        netBuyVolumeUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Buy volume less sell volume, in USD.
          description: Buy volume less sell volume, in USD.
        priceChangePct:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Signed percent change of the price.
          description: Signed percent change of the price.
        sellVolumeNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Sell volume in the chain's gas asset.
          description: Sell volume in the chain's gas asset.
        sellVolumeUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Sell volume in USD.
          description: Sell volume in USD.
        sells:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Number of sells.
          description: Number of sells.
        txns:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_u64'
              description: Number of buys and sells.
          description: Number of buys and sells.
        volumeNative:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Volume in the chain's gas asset.
          description: Volume in the chain's gas asset.
        volumeUsd:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Range_Decimal'
              description: Volume in USD.
          description: Volume in USD.
      additionalProperties: false
  securitySchemes:
    bearerKey:
      type: http
      scheme: bearer
      description: >-
        Send an API key, or a session token a key minted, as `Authorization:
        Bearer <credential>`. A browser opening `/v1/stream` offers its session
        token in `Sec-WebSocket-Protocol` instead.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.