asyncapi: 3.0.0
info:
  title: 'Metastreams streams'
  version: 1.0.0
  description: |
    Live trades, transfers, candles, token updates, wallet balances, positions, token holders, native-asset prices, trending boards and the discovery board over one WebSocket.

    Connect to `wss://api.metastreams.io/v1/stream` with `Authorization: Bearer <key>` on the handshake.
    A browser instead offers `metastreams.v1` and a session token in `Sec-WebSocket-Protocol`.
    Every frame is a JSON text message. One API key holds up to 20 open connections, 20 subscriptions across all its connections, and 2,000 addresses across those subscriptions. Each session token holds the same limits, counted apart from its key.
    Add `?timing=true` to the handshake URL to receive a `timing` object on every `update` frame. It costs no credit.
    A backend can also open a direct connection: `POST /v1/stream/connect` returns a `url` and a `metaconnect_` token for its handshake.
    See the WebSocket streams guide for keepalive, close codes and reconnecting.
servers:
  production:
    host: 'api.metastreams.io'
    pathname: /v1/stream
    protocol: wss
    description: Production stream endpoint.
    security:
    - $ref: '#/components/securitySchemes/bearerKey'
    - $ref: '#/components/securitySchemes/sessionTokenSubprotocol'
channels:
  spotTrades:
    address: spot.trades
    title: spot.trades
    summary: Every trade that matches a filter, as it happens.
    description: |
      The filter tests each trade once. `{}` keeps every trade on every chain. Keys combine as AND,
      the values of one list as OR, and `exclude` drops a trade that matches any of its values.

      Updates carry `flags`, `platforms` and `identities` whenever the trade has any.
    messages:
      subscribe:
        $ref: '#/components/messages/SubscribeTrades'
      unsubscribe:
        $ref: '#/components/messages/Unsubscribe'
      ack:
        $ref: '#/components/messages/Ack'
      update:
        $ref: '#/components/messages/TradeUpdate'
      error:
        $ref: '#/components/messages/Error'
  spotTransfers:
    address: spot.transfers
    title: spot.transfers
    summary: Every transfer between two wallets that matches a filter, as it happens.
    description: |
      The filter tests each transfer once. `{}` keeps every transfer on every chain. Keys combine as AND,
      the values of one list as OR, and `exclude` drops a transfer that matches any of its values.

      A transfer that names two addresses of one subscription, such as its sender and its recipient, arrives once.
    messages:
      subscribe:
        $ref: '#/components/messages/SubscribeTransfers'
      unsubscribe:
        $ref: '#/components/messages/Unsubscribe'
      ack:
        $ref: '#/components/messages/Ack'
      update:
        $ref: '#/components/messages/TransferUpdate'
      error:
        $ref: '#/components/messages/Error'
  spotCandles:
    address: spot.candles
    title: spot.candles
    summary: Every candle bucket that matches a filter, as it forms.
    description: |
      The filter tests each bucket update. `{}` keeps every token bucket on every chain. Each update is
      the current state of one bucket and names its series: `chain`, `token`, `pool` and `timeframe`.
      An open bucket arrives again at every trade: replace the candle with the same series and `time`.

      With `closedOnly`, only each bucket's final state is sent, 2 seconds after the bucket ends or as
      soon as a newer bucket of the series opens.
    messages:
      subscribe:
        $ref: '#/components/messages/SubscribeCandles'
      unsubscribe:
        $ref: '#/components/messages/Unsubscribe'
      ack:
        $ref: '#/components/messages/Ack'
      update:
        $ref: '#/components/messages/CandleUpdate'
      error:
        $ref: '#/components/messages/Error'
  spotTokens:
    address: spot.tokens
    title: spot.tokens
    summary: Every token that matches a filter, each time it changes.
    description: |
      The filter tests each token's whole state at every change. `{}` keeps every token on every chain.
      A token that starts to match arrives as an update with the whole token object. A token that stops
      matching gets one `exit`. No snapshot opens the subscription.

      One subscription follows at most 10,000 tokens. Past that, the token that matched least recently
      gets an `exit`, and its next match brings it back.
    messages:
      subscribe:
        $ref: '#/components/messages/SubscribeTokens'
      unsubscribe:
        $ref: '#/components/messages/Unsubscribe'
      ack:
        $ref: '#/components/messages/Ack'
      update:
        $ref: '#/components/messages/TokenUpdate'
      exit:
        $ref: '#/components/messages/TokenExit'
      error:
        $ref: '#/components/messages/Error'
  walletBalances:
    address: wallet.balances
    title: wallet.balances
    summary: A wallet's new balance of an asset, each time a transaction moves it.
    description: |
      Updates for one wallet can arrive out of order. Keep one row per `chain`, `wallet` and `asset`,
      and keep the one with the higher `blockNumber`, then the higher `txIndex`.
    messages:
      subscribe:
        $ref: '#/components/messages/SubscribeBalances'
      unsubscribe:
        $ref: '#/components/messages/Unsubscribe'
      ack:
        $ref: '#/components/messages/Ack'
      update:
        $ref: '#/components/messages/BalanceUpdate'
      error:
        $ref: '#/components/messages/Error'
  spotPositions:
    address: spot.positions
    title: spot.positions
    summary: A wallet's whole position in a token, each time it changes.
    description: |
      A streamed position is priced the same way as the Positions REST read. A trade or transfer raises `version`,
      and a price change sends the row again with the same `version`. Keep an update whose `version` is equal to or
      higher than the one you hold. `throttleMs` defaults to 1000. A subscription can have at most 10,000 positions.
    messages:
      subscribe:
        $ref: '#/components/messages/SubscribePositions'
      unsubscribe:
        $ref: '#/components/messages/Unsubscribe'
      ack:
        $ref: '#/components/messages/Ack'
      update:
        $ref: '#/components/messages/PositionUpdate'
      error:
        $ref: '#/components/messages/Error'
  spotHolders:
    address: spot.holders
    title: spot.holders
    summary: One holder's row on a token, each time it changes.
    description: |
      Each update is one holder's whole row, without `rank`, and its trading figures cover the filter's `period`, `lifetime` by default.
      Keep one row per `chain`, token and `address`; a later update replaces the earlier one. Rank the rows by `balance`,
      and drop a holder that arrives with `balance` 0.
    messages:
      subscribe:
        $ref: '#/components/messages/SubscribeHolders'
      unsubscribe:
        $ref: '#/components/messages/Unsubscribe'
      ack:
        $ref: '#/components/messages/Ack'
      update:
        $ref: '#/components/messages/HolderUpdate'
      error:
        $ref: '#/components/messages/Error'
  chainNativePrices:
    address: chain.nativePrices
    title: chain.nativePrices
    summary: The USD price of each chain's gas asset, at every price poll.
    description: |
      Each update is the USD price of one whole unit of a chain's gas asset: SOL on `solana`, BNB on `bsc`,
      ETH on `robinhood` and HYPE on `elysium`. An update is sent about every 10 seconds per chain, whether or not the price changed.
      Keep one price per `chain`, and keep the one with the later `observedAt`.
    messages:
      subscribe:
        $ref: '#/components/messages/SubscribeNativePrices'
      unsubscribe:
        $ref: '#/components/messages/Unsubscribe'
      ack:
        $ref: '#/components/messages/Ack'
      update:
        $ref: '#/components/messages/NativePriceUpdate'
      error:
        $ref: '#/components/messages/Error'
  spotTrending:
    address: spot.trending
    title: spot.trending
    summary: One trending board, sent in full after subscribing and then as changes.
    description: |
      The filter is the Trending REST request body. The first update contains the full board, as read about when the subscription opened.
      The board is ranked again every 5 seconds for the `1m` and `5m` windows, every 30 seconds for `30m` and `1h`,
      and every 60 seconds for `6h` and `24h`. Each later update contains only the rows that changed.
      Changes to a ranked token's state are batched every 250 milliseconds. The channel does not accept a `throttleMs` above 0.

      Keep one row per `chain` and `address`, and apply each delta in order. A delta with `data` replaces the row and
      places it at `rank`. A delta without `data` moves the row to `rank`. A delta whose `rank` is `null` removes the row.
    messages:
      subscribe:
        $ref: '#/components/messages/SubscribeTrending'
      unsubscribe:
        $ref: '#/components/messages/Unsubscribe'
      ack:
        $ref: '#/components/messages/Ack'
      update:
        $ref: '#/components/messages/TrendingUpdate'
      error:
        $ref: '#/components/messages/Error'
  spotDiscovery:
    address: spot.discovery
    title: spot.discovery
    summary: The discovery board, each column sent in full after subscribing and then as changes.
    description: |
      The filter is the Discovery boards REST request body. After the ack, one update for each requested column contains
      the whole column, in rank order. Later changes are batched every 250 milliseconds, with one update for each
      column that changed. The channel does not accept a `throttleMs` above 0. The server never ranks a column again,
      so a column drifts from the REST response over time; subscribe again to realign it.

      Keep one row per `column`, `chain` and `address`, and apply each delta in order. A delta with `data` replaces the
      row and places it at `rank`. A delta without `data` moves the row to `rank`. A delta whose `rank` is `null`
      removes the row.
    messages:
      subscribe:
        $ref: '#/components/messages/SubscribeDiscovery'
      unsubscribe:
        $ref: '#/components/messages/Unsubscribe'
      ack:
        $ref: '#/components/messages/Ack'
      update:
        $ref: '#/components/messages/DiscoveryUpdate'
      error:
        $ref: '#/components/messages/Error'
  connection:
    address: null
    title: Connection
    summary: Frames about the connection itself, not about a channel.
    messages:
      ping:
        $ref: '#/components/messages/Ping'
      pong:
        $ref: '#/components/messages/Pong'
operations:
  subscribeTrades:
    action: send
    title: Subscribe to trades
    channel:
      $ref: '#/channels/spotTrades'
    messages:
    - $ref: '#/channels/spotTrades/messages/subscribe'
  unsubscribeTrades:
    action: send
    title: Unsubscribe from trades
    channel:
      $ref: '#/channels/spotTrades'
    messages:
    - $ref: '#/channels/spotTrades/messages/unsubscribe'
  receiveTrades:
    action: receive
    title: Receive trades
    channel:
      $ref: '#/channels/spotTrades'
    messages:
    - $ref: '#/channels/spotTrades/messages/ack'
    - $ref: '#/channels/spotTrades/messages/update'
    - $ref: '#/channels/spotTrades/messages/error'
  subscribeTransfers:
    action: send
    title: Subscribe to transfers
    channel:
      $ref: '#/channels/spotTransfers'
    messages:
    - $ref: '#/channels/spotTransfers/messages/subscribe'
  unsubscribeTransfers:
    action: send
    title: Unsubscribe from transfers
    channel:
      $ref: '#/channels/spotTransfers'
    messages:
    - $ref: '#/channels/spotTransfers/messages/unsubscribe'
  receiveTransfers:
    action: receive
    title: Receive transfers
    channel:
      $ref: '#/channels/spotTransfers'
    messages:
    - $ref: '#/channels/spotTransfers/messages/ack'
    - $ref: '#/channels/spotTransfers/messages/update'
    - $ref: '#/channels/spotTransfers/messages/error'
  subscribeCandles:
    action: send
    title: Subscribe to candles
    channel:
      $ref: '#/channels/spotCandles'
    messages:
    - $ref: '#/channels/spotCandles/messages/subscribe'
  unsubscribeCandles:
    action: send
    title: Unsubscribe from candles
    channel:
      $ref: '#/channels/spotCandles'
    messages:
    - $ref: '#/channels/spotCandles/messages/unsubscribe'
  receiveCandles:
    action: receive
    title: Receive candles
    channel:
      $ref: '#/channels/spotCandles'
    messages:
    - $ref: '#/channels/spotCandles/messages/ack'
    - $ref: '#/channels/spotCandles/messages/update'
    - $ref: '#/channels/spotCandles/messages/error'
  subscribeTokens:
    action: send
    title: Subscribe to tokens
    channel:
      $ref: '#/channels/spotTokens'
    messages:
    - $ref: '#/channels/spotTokens/messages/subscribe'
  unsubscribeTokens:
    action: send
    title: Unsubscribe from tokens
    channel:
      $ref: '#/channels/spotTokens'
    messages:
    - $ref: '#/channels/spotTokens/messages/unsubscribe'
  receiveTokens:
    action: receive
    title: Receive token updates
    channel:
      $ref: '#/channels/spotTokens'
    messages:
    - $ref: '#/channels/spotTokens/messages/ack'
    - $ref: '#/channels/spotTokens/messages/update'
    - $ref: '#/channels/spotTokens/messages/exit'
    - $ref: '#/channels/spotTokens/messages/error'
  subscribeBalances:
    action: send
    title: Subscribe to wallet balances
    channel:
      $ref: '#/channels/walletBalances'
    messages:
    - $ref: '#/channels/walletBalances/messages/subscribe'
  unsubscribeBalances:
    action: send
    title: Unsubscribe from wallet balances
    channel:
      $ref: '#/channels/walletBalances'
    messages:
    - $ref: '#/channels/walletBalances/messages/unsubscribe'
  receiveBalances:
    action: receive
    title: Receive wallet balances
    channel:
      $ref: '#/channels/walletBalances'
    messages:
    - $ref: '#/channels/walletBalances/messages/ack'
    - $ref: '#/channels/walletBalances/messages/update'
    - $ref: '#/channels/walletBalances/messages/error'
  subscribePositions:
    action: send
    title: Subscribe to positions
    channel:
      $ref: '#/channels/spotPositions'
    messages:
    - $ref: '#/channels/spotPositions/messages/subscribe'
  unsubscribePositions:
    action: send
    title: Unsubscribe from positions
    channel:
      $ref: '#/channels/spotPositions'
    messages:
    - $ref: '#/channels/spotPositions/messages/unsubscribe'
  receivePositions:
    action: receive
    title: Receive positions
    channel:
      $ref: '#/channels/spotPositions'
    messages:
    - $ref: '#/channels/spotPositions/messages/ack'
    - $ref: '#/channels/spotPositions/messages/update'
    - $ref: '#/channels/spotPositions/messages/error'
  subscribeHolders:
    action: send
    title: Subscribe to holders
    channel:
      $ref: '#/channels/spotHolders'
    messages:
    - $ref: '#/channels/spotHolders/messages/subscribe'
  unsubscribeHolders:
    action: send
    title: Unsubscribe from holders
    channel:
      $ref: '#/channels/spotHolders'
    messages:
    - $ref: '#/channels/spotHolders/messages/unsubscribe'
  receiveHolders:
    action: receive
    title: Receive holders
    channel:
      $ref: '#/channels/spotHolders'
    messages:
    - $ref: '#/channels/spotHolders/messages/ack'
    - $ref: '#/channels/spotHolders/messages/update'
    - $ref: '#/channels/spotHolders/messages/error'
  subscribeNativePrices:
    action: send
    title: Subscribe to native prices
    channel:
      $ref: '#/channels/chainNativePrices'
    messages:
    - $ref: '#/channels/chainNativePrices/messages/subscribe'
  unsubscribeNativePrices:
    action: send
    title: Unsubscribe from native prices
    channel:
      $ref: '#/channels/chainNativePrices'
    messages:
    - $ref: '#/channels/chainNativePrices/messages/unsubscribe'
  receiveNativePrices:
    action: receive
    title: Receive native prices
    channel:
      $ref: '#/channels/chainNativePrices'
    messages:
    - $ref: '#/channels/chainNativePrices/messages/ack'
    - $ref: '#/channels/chainNativePrices/messages/update'
    - $ref: '#/channels/chainNativePrices/messages/error'
  subscribeTrending:
    action: send
    title: Subscribe to a trending board
    channel:
      $ref: '#/channels/spotTrending'
    messages:
    - $ref: '#/channels/spotTrending/messages/subscribe'
  unsubscribeTrending:
    action: send
    title: Unsubscribe from a trending board
    channel:
      $ref: '#/channels/spotTrending'
    messages:
    - $ref: '#/channels/spotTrending/messages/unsubscribe'
  receiveTrending:
    action: receive
    title: Receive trending board changes
    channel:
      $ref: '#/channels/spotTrending'
    messages:
    - $ref: '#/channels/spotTrending/messages/ack'
    - $ref: '#/channels/spotTrending/messages/update'
    - $ref: '#/channels/spotTrending/messages/error'
  subscribeDiscovery:
    action: send
    title: Subscribe to the discovery board
    channel:
      $ref: '#/channels/spotDiscovery'
    messages:
    - $ref: '#/channels/spotDiscovery/messages/subscribe'
  unsubscribeDiscovery:
    action: send
    title: Unsubscribe from the discovery board
    channel:
      $ref: '#/channels/spotDiscovery'
    messages:
    - $ref: '#/channels/spotDiscovery/messages/unsubscribe'
  receiveDiscovery:
    action: receive
    title: Receive discovery board changes
    channel:
      $ref: '#/channels/spotDiscovery'
    messages:
    - $ref: '#/channels/spotDiscovery/messages/ack'
    - $ref: '#/channels/spotDiscovery/messages/update'
    - $ref: '#/channels/spotDiscovery/messages/error'
  sendPing:
    action: send
    title: Ping
    channel:
      $ref: '#/channels/connection'
    messages:
    - $ref: '#/channels/connection/messages/ping'
  receivePong:
    action: receive
    title: Pong
    channel:
      $ref: '#/channels/connection'
    messages:
    - $ref: '#/channels/connection/messages/pong'
components:
  securitySchemes:
    bearerKey:
      type: http
      scheme: bearer
      description: 'Your API key or a session token, sent as `Authorization: Bearer <credential>` on the handshake.'
    sessionTokenSubprotocol:
      type: httpApiKey
      name: Sec-WebSocket-Protocol
      in: header
      description: 'A session token, offered beside `metastreams.v1` in the subprotocol list. Browsers use this, because they cannot set handshake headers. An API key is never read from this list.'
  messages:
    SubscribeTrades:
      name: subscribe
      title: Subscribe
      summary: Open a trades subscription.
      payload:
        type: object
        required:
        - action
        - channel
        - filters
        properties:
          action:
            const: subscribe
          channel:
            const: spot.trades
          filters:
            $ref: '#/components/schemas/TradeFilter'
          id:
            $ref: '#/components/schemas/RequestId'
      examples:
      - name: token
        summary: Every trade on one token
        payload:
          action: subscribe
          channel: spot.trades
          filters:
            chains:
            - solana
            tokens:
            - DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
          id: r1
      - name: kolBuys
        summary: KOL buys of $1,000 or more in young Solana tokens
        payload:
          action: subscribe
          channel: spot.trades
          filters:
            chains:
            - solana
            flags:
            - kol
            side: buy
            volumeUsd:
              min: '1000'
            token:
              ageMs:
                max: 3600000
    SubscribeCandles:
      name: subscribe
      title: Subscribe
      summary: Open a candles subscription.
      payload:
        type: object
        required:
        - action
        - channel
        - filters
        properties:
          action:
            const: subscribe
          channel:
            const: spot.candles
          filters:
            $ref: '#/components/schemas/CandlesFilter'
          metric:
            type: string
            enum:
            - price
            - marketCap
            default: marketCap
            description: What the candle values measure.
          denomination:
            type: string
            enum:
            - usd
            - native
            default: usd
            description: What the candle values are denominated in.
          closedOnly:
            type: boolean
            default: false
            description: Send only each bucket's final state. A late change to a sent bucket arrives again, as a correction. Cannot be combined with `throttleMs`.
          throttleMs:
            type: integer
            minimum: 0
            maximum: 60000
            description: At most one update per series per interval. The first goes out at once; later ones collapse into the newest, sent when the interval ends. Absent or `0` sends every update.
          id:
            $ref: '#/components/schemas/RequestId'
      examples:
      - name: price
        summary: One token's one- and five-minute price candles in USD
        payload:
          action: subscribe
          channel: spot.candles
          filters:
            chains:
            - solana
            tokens:
            - DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
            timeframes:
            - 1m
            - 5m
          metric: price
      - name: breakouts
        summary: Closed one-minute buckets up 5% on $10,000 or more of volume
        payload:
          action: subscribe
          channel: spot.candles
          filters:
            chains:
            - solana
            timeframes:
            - 1m
            volumeUsd:
              min: '10000'
            changePct:
              min: '5'
          closedOnly: true
    SubscribeTransfers:
      name: subscribe
      title: Subscribe
      summary: Open a transfers subscription.
      payload:
        type: object
        required:
        - action
        - channel
        - filters
        properties:
          action:
            const: subscribe
          channel:
            const: spot.transfers
          filters:
            $ref: '#/components/schemas/TransferFilter'
          id:
            $ref: '#/components/schemas/RequestId'
      examples:
      - name: wallet
        summary: Every transfer into or out of one wallet
        payload:
          action: subscribe
          channel: spot.transfers
          filters:
            chains:
            - solana
            wallets:
            - 8D2YW555vKLbTjhhhJggAEbcioLEGzgiQpFVXq3LxLHA
    SubscribeTokens:
      name: subscribe
      title: Subscribe
      summary: Open a token subscription.
      payload:
        type: object
        required:
        - action
        - channel
        - filters
        properties:
          action:
            const: subscribe
          channel:
            const: spot.tokens
          filters:
            $ref: '#/components/schemas/TokenFilter'
          throttleMs:
            type: integer
            minimum: 0
            maximum: 60000
            description: At most one update per token per interval. The first goes out at once; later ones collapse into the newest, sent when the interval ends. An `exit` never waits. Absent or `0` sends every update.
          id:
            $ref: '#/components/schemas/RequestId'
      examples:
      - name: watchlist
        summary: One token, on every update
        payload:
          action: subscribe
          channel: spot.tokens
          filters:
            tokens:
            - DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
      - name: screener
        summary: pump.fun tokens up 20% in the last hour, once a second at most
        payload:
          action: subscribe
          channel: spot.tokens
          filters:
            chains:
            - solana
            protocols:
            - pumpfun
            marketCapUsd:
              min: '100000'
              max: '5000000'
            stats:
              1h:
                priceChangePct:
                  min: '20'
          throttleMs: 1000
    Unsubscribe:
      name: unsubscribe
      title: Unsubscribe
      summary: Close one subscription, or every subscription on the channel when `subscriptionId` is left out.
      payload:
        type: object
        required:
        - action
        - channel
        properties:
          action:
            const: unsubscribe
          channel:
            type: string
            description: The channel the subscription is on.
          subscriptionId:
            $ref: '#/components/schemas/SubscriptionId'
    Ack:
      name: ack
      title: Ack
      summary: A subscribe or unsubscribe took effect.
      description: A subscribe ack always arrives before the subscription's first update. An unsubscribe ack always arrives after its last.
      payload:
        type: object
        required:
        - type
        - channel
        - status
        - message
        properties:
          type:
            const: ack
          channel:
            type: string
          subscriptionId:
            $ref: '#/components/schemas/SubscriptionId'
          id:
            type: string
            description: The subscribe frame's `id`, when it sent one.
          status:
            const: success
          message:
            type: string
            examples:
            - subscribe successful
            - unsubscribe successful
    TradeUpdate:
      name: update
      title: Update
      summary: One trade.
      payload:
        type: object
        required:
        - type
        - channel
        - subscriptionId
        - data
        properties:
          type:
            const: update
          channel:
            const: spot.trades
          subscriptionId:
            $ref: '#/components/schemas/SubscriptionId'
          timing:
            $ref: '#/components/schemas/FrameTiming'
          data:
            $ref: '#/components/schemas/Trade'
    CandleUpdate:
      name: update
      title: Update
      summary: The current state of one candle bucket.
      payload:
        type: object
        required:
        - type
        - channel
        - subscriptionId
        - data
        properties:
          type:
            const: update
          channel:
            const: spot.candles
          subscriptionId:
            $ref: '#/components/schemas/SubscriptionId'
          timing:
            $ref: '#/components/schemas/FrameTiming'
          data:
            $ref: '#/components/schemas/CandleSeriesUpdate'
    TransferUpdate:
      name: update
      title: Update
      summary: One transfer.
      payload:
        type: object
        required:
        - type
        - channel
        - subscriptionId
        - data
        properties:
          type:
            const: update
          channel:
            const: spot.transfers
          subscriptionId:
            $ref: '#/components/schemas/SubscriptionId'
          timing:
            $ref: '#/components/schemas/FrameTiming'
          data:
            $ref: '#/components/schemas/Transfer'
    TokenUpdate:
      name: update
      title: Update
      summary: The whole token object after a change.
      payload:
        type: object
        required:
        - type
        - channel
        - subscriptionId
        - data
        properties:
          type:
            const: update
          channel:
            const: spot.tokens
          subscriptionId:
            $ref: '#/components/schemas/SubscriptionId'
          timing:
            $ref: '#/components/schemas/FrameTiming'
          data:
            $ref: '#/components/schemas/Token'
    TokenExit:
      name: exit
      title: Exit
      summary: A token stopped matching the filter, or fell past the subscription's 10,000-token cap.
      description: Drop the token. It arrives again, as a whole object, when it next matches. Exit frames are not billed.
      payload:
        type: object
        required:
        - type
        - channel
        - subscriptionId
        - data
        properties:
          type:
            const: exit
          channel:
            const: spot.tokens
          subscriptionId:
            $ref: '#/components/schemas/SubscriptionId'
          data:
            type: object
            required:
            - chain
            - address
            properties:
              chain:
                $ref: '#/components/schemas/ChainValue'
              address:
                $ref: '#/components/schemas/Address'
    SubscribeBalances:
      name: subscribe
      title: Subscribe
      summary: Open a wallet balances subscription.
      payload:
        type: object
        required:
        - action
        - channel
        - filters
        properties:
          action:
            const: subscribe
          channel:
            const: wallet.balances
          filters:
            $ref: '#/components/schemas/WalletsFilter'
          id:
            $ref: '#/components/schemas/RequestId'
      examples:
      - name: wallet
        summary: One Solana wallet
        payload:
          action: subscribe
          channel: wallet.balances
          filters:
            chain: solana
            wallets:
            - 7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5
    BalanceUpdate:
      name: update
      title: Update
      summary: One wallet's balance of one asset after a transaction.
      payload:
        type: object
        required:
        - type
        - channel
        - subscriptionId
        - data
        properties:
          type:
            const: update
          channel:
            const: wallet.balances
          subscriptionId:
            $ref: '#/components/schemas/SubscriptionId'
          timing:
            $ref: '#/components/schemas/FrameTiming'
          data:
            $ref: '#/components/schemas/Balance'
    SubscribePositions:
      name: subscribe
      title: Subscribe
      summary: Open a positions subscription.
      payload:
        type: object
        required:
        - action
        - channel
        - filters
        properties:
          action:
            const: subscribe
          channel:
            const: spot.positions
          filters:
            $ref: '#/components/schemas/WalletsFilter'
          throttleMs:
            type: integer
            minimum: 0
            maximum: 60000
            default: 1000
            description: At most one update per position per interval. Absent or `0` means 1000.
          id:
            $ref: '#/components/schemas/RequestId'
      examples:
      - name: wallet
        summary: One Solana wallet
        payload:
          action: subscribe
          channel: spot.positions
          filters:
            chain: solana
            wallets:
            - 7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5
    PositionUpdate:
      name: update
      title: Update
      summary: One wallet's whole position in one token, priced.
      payload:
        type: object
        required:
        - type
        - channel
        - subscriptionId
        - data
        properties:
          type:
            const: update
          channel:
            const: spot.positions
          subscriptionId:
            $ref: '#/components/schemas/SubscriptionId'
          timing:
            $ref: '#/components/schemas/FrameTiming'
          data:
            $ref: '#/components/schemas/Position'
    SubscribeHolders:
      name: subscribe
      title: Subscribe
      summary: Open a holders subscription.
      payload:
        type: object
        required:
        - action
        - channel
        - filters
        properties:
          action:
            const: subscribe
          channel:
            const: spot.holders
          filters:
            $ref: '#/components/schemas/HoldersFilter'
          id:
            $ref: '#/components/schemas/RequestId'
      examples:
      - name: token
        summary: Bundlers and insiders holding one Solana token
        payload:
          action: subscribe
          channel: spot.holders
          filters:
            chain: solana
            token: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
            flags:
            - bundler
            - insider
    HolderUpdate:
      name: update
      title: Update
      summary: One holder's whole row on one token, without `rank`.
      payload:
        type: object
        required:
        - type
        - channel
        - subscriptionId
        - data
        properties:
          type:
            const: update
          channel:
            const: spot.holders
          subscriptionId:
            $ref: '#/components/schemas/SubscriptionId'
          timing:
            $ref: '#/components/schemas/FrameTiming'
          data:
            $ref: '#/components/schemas/Holder'
    SubscribeNativePrices:
      name: subscribe
      title: Subscribe
      summary: Open a native prices subscription.
      payload:
        type: object
        required:
        - action
        - channel
        - filters
        properties:
          action:
            const: subscribe
          channel:
            const: chain.nativePrices
          filters:
            $ref: '#/components/schemas/NativePricesFilter'
          id:
            $ref: '#/components/schemas/RequestId'
      examples:
      - name: chains
        summary: SOL and BNB prices
        payload:
          action: subscribe
          channel: chain.nativePrices
          filters:
            chains:
            - solana
            - bsc
    NativePriceUpdate:
      name: update
      title: Update
      summary: The USD price of one chain's gas asset.
      payload:
        type: object
        required:
        - type
        - channel
        - subscriptionId
        - data
        properties:
          type:
            const: update
          channel:
            const: chain.nativePrices
          subscriptionId:
            $ref: '#/components/schemas/SubscriptionId'
          timing:
            $ref: '#/components/schemas/FrameTiming'
          data:
            $ref: '#/components/schemas/NativePrice'
    SubscribeTrending:
      name: subscribe
      title: Subscribe
      summary: Open a trending board subscription.
      payload:
        type: object
        required:
        - action
        - channel
        - filters
        properties:
          action:
            const: subscribe
          channel:
            const: spot.trending
          filters:
            $ref: '#/components/schemas/TrendingFilter'
          id:
            $ref: '#/components/schemas/RequestId'
      examples:
      - name: hourly
        summary: Top 50 tokens on Solana and BSC over the last hour
        payload:
          action: subscribe
          channel: spot.trending
          filters:
            chains:
            - solana
            - bsc
            window: 1h
            limit: 50
    TrendingUpdate:
      name: update
      title: Update
      summary: The full board after subscribing, then the rows that changed.
      payload:
        type: object
        required:
        - type
        - channel
        - subscriptionId
        - data
        properties:
          type:
            const: update
          channel:
            const: spot.trending
          subscriptionId:
            $ref: '#/components/schemas/SubscriptionId'
          timing:
            $ref: '#/components/schemas/FrameTiming'
          data:
            type: array
            items:
              $ref: '#/components/schemas/TrendingDelta'
            description: Changes to the board, to apply in order.
    SubscribeDiscovery:
      name: subscribe
      title: Subscribe
      summary: Open a discovery board subscription.
      payload:
        type: object
        required:
        - action
        - channel
        - filters
        properties:
          action:
            const: subscribe
          channel:
            const: spot.discovery
          filters:
            $ref: '#/components/schemas/DiscoveryFilter'
          id:
            $ref: '#/components/schemas/RequestId'
      examples:
      - name: launches
        summary: New and graduating tokens on Solana
        payload:
          action: subscribe
          channel: spot.discovery
          filters:
            chains:
            - solana
            newPairs:
              limit: 30
            graduating:
              limit: 30
    DiscoveryUpdate:
      name: update
      title: Update
      summary: Each column in full after subscribing, then the rows of one column that changed.
      payload:
        type: object
        required:
        - type
        - channel
        - subscriptionId
        - data
        properties:
          type:
            const: update
          channel:
            const: spot.discovery
          subscriptionId:
            $ref: '#/components/schemas/SubscriptionId'
          timing:
            $ref: '#/components/schemas/FrameTiming'
          data:
            type: object
            required:
            - column
            - deltas
            properties:
              column:
                type: string
                enum:
                - newPairs
                - graduating
                - graduated
                description: The column the deltas change.
              deltas:
                type: array
                items:
                  $ref: '#/components/schemas/DiscoveryDelta'
                description: Changes to the column, to apply in order. Removals come first, then rows in rank order.
    Error:
      name: error
      title: Error
      summary: A frame was rejected, or a subscription ended. The connection stays open.
      payload:
        type: object
        required:
        - type
        - code
        - message
        properties:
          type:
            const: error
          id:
            type: string
            description: The `id` of the frame this error answers. Absent when the frame is not JSON or has no string `id`, and on unsubscribe errors.
          subscriptionId:
            $ref: '#/components/schemas/SubscriptionId'
            description: Present when the server ended this subscription. Drop its state. Subscribe again only after `INTERNAL_ERROR` or `SERVICE_UNAVAILABLE`.
          code:
            type: string
            description: A code from the REST error registry. New codes can appear; fall back on the message.
            examples:
            - VALIDATION_ERROR
            - UNSUPPORTED_CHAIN
            - NOT_FOUND
          message:
            type: string
            description: What happened, and what to do next. Never parse it.
          details:
            description: Present on some codes only. For `VALIDATION_ERROR`, a list of `{field, message}`.
      examples:
      - name: unknownKey
        summary: A token filter with a misspelled key
        payload:
          type: error
          id: r1
          code: VALIDATION_ERROR
          message: One or more parameters are invalid.
          details:
          - field: stats.5m.buyz
            message: No filter key is named `buyz`.
    Ping:
      name: ping
      title: Ping
      summary: Check that the connection is alive.
      payload:
        type: object
        required:
        - action
        properties:
          action:
            const: ping
    Pong:
      name: pong
      title: Pong
      summary: The answer to a ping.
      payload:
        type: object
        required:
        - type
        properties:
          type:
            const: pong
  schemas:
    RequestId:
      type: string
      description: Optional. Your own ID for the frame; the answering ack or error echoes it.
    SubscriptionId:
      type: string
      format: uuid
      description: Assigned by the server on the subscribe ack, and carried on every update.
    Chain:
      type: string
      enum:
      - solana
      - bsc
      - robinhood
      - elysium
      description: Chain slug.
    Address:
      type: string
      description: A token or wallet address in the chain's format.
    Decimal:
      type: string
      description: An exact decimal, as a string.
    Millis:
      type: integer
      description: An instant, in milliseconds since the Unix epoch.
    FrameTiming:
      type: object
      description: Delivery times of one update, sent only on a connection opened with `?timing=true`.
      required:
      - sentAt
      properties:
        receivedAt:
          $ref: '#/components/schemas/Millis'
          description: Time the data was first read from the chain. Absent when the time is unknown, and on `spot.positions`, `spot.trending` and `spot.discovery`.
        sentAt:
          $ref: '#/components/schemas/Millis'
          description: Time the server started to write the frame.
    Pct:
      type: string
      description: A percentage on a 0-100 scale, as a decimal string.
    Money:
      type: object
      required:
      - native
      - usd
      properties:
        native:
          $ref: '#/components/schemas/Decimal'
          description: The value in the chain's native gas asset.
        usd:
          type:
          - string
          - 'null'
          description: The value in US dollars; `null` when the native asset has no USD price.
    DecimalRange:
      type: object
      description: An inclusive range of decimal strings. Either end can be left out. An unknown value fails it.
      additionalProperties: false
      properties:
        min:
          $ref: '#/components/schemas/Decimal'
        max:
          $ref: '#/components/schemas/Decimal'
    IntegerRange:
      type: object
      description: An inclusive range of integers. Either end can be left out. An unknown value fails it.
      additionalProperties: false
      properties:
        min:
          type: integer
          minimum: 0
        max:
          type: integer
          minimum: 0
    TradeFilter:
      type: object
      description: 'The `spot.trades` filter. `{}` keeps every trade. Keys combine as AND, list values as OR. Every `…Usd` key has a `…Native` twin.'
      additionalProperties: false
      properties:
        chains:
          type: array
          items:
            $ref: '#/components/schemas/Chain'
          description: Chains to keep. Absent keeps every chain.
        tokens:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Address'
          description: Traded tokens to keep. Each address covers every chain of its family that `chains` keeps.
        wallets:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Address'
          description: Traders to keep.
        pools:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Address'
          description: Pools to keep. The zero address is refused.
        dexes:
          type: array
          maxItems: 100
          items:
            type: string
          description: Venues to keep, in any letter case. An unknown name matches nothing.
        launchpads:
          type: array
          maxItems: 100
          items:
            type: string
          description: Launchpads to keep.
        anchors:
          type: array
          maxItems: 100
          items:
            type: string
            enum:
            - native
            - usdc
            - usdt
            - usd1
            - busd
            - uusd
            - usdg
          description: Quote assets to keep.
        platforms:
          type: array
          maxItems: 100
          items:
            type: string
          description: Trading terminals the trade routed through, such as `fomo`, `axiom` or `photon`.
        flags:
          type: array
          maxItems: 100
          items:
            type: string
            enum:
            - dev
            - sniper
            - insider
            - bundler
            - fresh
            - whale
            - kol
            - fomo
            - pro_trader
            - phishing
          description: Trader classifications, on this token or on the wallet. `fomo` is a trader who has traded through the fomo.family terminal on the chain.
        traderSources:
          type: array
          maxItems: 100
          items:
            type: string
            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
          description: How an EVM trade's trader was identified. A Solana trade has none, so it does not match this key.
        side:
          type: string
          enum:
          - buy
          - sell
        volumeUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Trade value, in USD.
        volumeNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Trade value, in the chain's gas asset.
        amount:
          $ref: '#/components/schemas/DecimalRange'
          description: Traded amount, in token units.
        priceUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Price at the fill, in USD.
        priceNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Price at the fill, in the chain's gas asset.
        marketCapUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Market cap at the fill, in USD.
        marketCapNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Market cap at the fill, in the chain's gas asset.
        liquidityUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Liquidity, in USD.
        liquidityNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Liquidity, in the chain's gas asset.
        priceImpactPct:
          $ref: '#/components/schemas/DecimalRange'
          description: Price impact. Matches no trade yet.
        feesValidatorUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Validator fees, in USD.
        feesValidatorNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Validator fees, in the chain's gas asset.
        feesPlatformUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Platform fees, in USD.
        feesPlatformNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Platform fees, in the chain's gas asset.
        fullExit:
          type: boolean
          description: "`true` keeps a sell that leaves the trader none of the token. A sell with an unknown balance after it fails both values."
        token:
          $ref: '#/components/schemas/TokenFilter'
          description: "The traded token's latest state, tested as `spot.tokens` tests it. A token has a state once it changes, and a token with no change for 15 minutes can lose it. A trade on a token with no state does not match."
        exclude:
          $ref: '#/components/schemas/TradeExclude'
    TradeExclude:
      type: object
      description: Values that drop a trade that matches any of them.
      additionalProperties: false
      properties:
        wallets:
          type: array
          maxItems: 100
          items:
            $ref: '#/components/schemas/Address'
        flags:
          type: array
          maxItems: 100
          items:
            type: string
            enum:
            - dev
            - sniper
            - insider
            - bundler
            - fresh
            - whale
            - kol
            - fomo
            - pro_trader
            - phishing
        platforms:
          type: array
          maxItems: 100
          items:
            type: string
    CandlesFilter:
      type: object
      description: 'The `spot.candles` filter. `{}` keeps every token bucket. Keys combine as AND, list values as OR.'
      additionalProperties: false
      properties:
        chains:
          type: array
          maxItems: 100
          items:
            $ref: '#/components/schemas/Chain'
          description: Chains to keep. Absent keeps every chain.
        tokens:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Address'
          description: Tokens to keep. Each address covers every chain of its family that `chains` keeps.
        pools:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Address'
          description: Pools to keep. Set, the buckets are pool buckets; absent, they are token buckets across every pool. The zero address is refused.
        timeframes:
          type: array
          items:
            type: string
            enum:
            - 1s
            - 5s
            - 15s
            - 30s
            - 1m
            - 3m
            - 5m
            - 15m
            - 30m
            - 1h
            - 4h
            - 6h
            - 12h
            - 1d
            - 7d
          description: Bucket sizes to keep. Absent keeps every size.
        volumeUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Traded value in the bucket, in USD.
        volumeNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Traded value in the bucket, in the chain's gas asset.
        buyCount:
          $ref: '#/components/schemas/IntegerRange'
          description: Buys in the bucket.
        sellCount:
          $ref: '#/components/schemas/IntegerRange'
          description: Sells in the bucket.
        changePct:
          $ref: '#/components/schemas/DecimalRange'
          description: Close against open, signed, in the subscription's metric and denomination. A zero open fails it.
        rangePct:
          $ref: '#/components/schemas/DecimalRange'
          description: High less low, against open, in the subscription's metric and denomination. A zero open fails it.
        liquidityUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: The token's liquidity at the close, in USD. A pool bucket fails it.
        liquidityNative:
          $ref: '#/components/schemas/DecimalRange'
          description: The token's liquidity at the close, in the chain's gas asset. A pool bucket fails it.
        token:
          $ref: '#/components/schemas/TokenFilter'
          description: "The bucket's token's latest state, tested as `spot.tokens` tests it. A token has a state once it changes, and a token with no change for 15 minutes can lose it."
    TransferFilter:
      type: object
      description: 'The `spot.transfers` filter. `{}` keeps every transfer. Keys combine as AND, list values as OR.'
      additionalProperties: false
      properties:
        chains:
          type: array
          maxItems: 100
          items:
            $ref: '#/components/schemas/Chain'
          description: Chains to keep. Absent keeps every chain.
        tokens:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Address'
          description: Transferred tokens to keep. A native transfer fails it.
        wallets:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Address'
          description: Wallets to keep, on either side.
        senders:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Address'
          description: Sending wallets to keep.
        recipients:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Address'
          description: Receiving wallets to keep.
        native:
          type: boolean
          description: "`true` keeps native-asset transfers, `false` keeps token transfers. `true` with `tokens` or `token` is refused."
        amount:
          $ref: '#/components/schemas/DecimalRange'
          description: Amount moved, in token units.
        token:
          $ref: '#/components/schemas/TokenFilter'
          description: "The transferred token's latest state, tested as `spot.tokens` tests it. A native transfer fails it."
        exclude:
          $ref: '#/components/schemas/TransferExclude'
    TransferExclude:
      type: object
      description: Values that drop a transfer that matches any of them.
      additionalProperties: false
      properties:
        wallets:
          type: array
          maxItems: 100
          items:
            $ref: '#/components/schemas/Address'
          description: Wallets to drop, on either side.
        tokens:
          type: array
          maxItems: 100
          items:
            $ref: '#/components/schemas/Address'
          description: Transferred tokens to drop.
    TokenFilter:
      type: object
      description: 'The `spot.tokens` filter, and the `token` key of a `spot.trades` filter. `{}` keeps every token. Keys combine as AND, list values as OR.'
      additionalProperties: false
      properties:
        chains:
          type: array
          items:
            $ref: '#/components/schemas/Chain'
          description: Chains to keep. Absent keeps every chain.
        tokens:
          type: array
          minItems: 1
          maxItems: 100
          items:
            $ref: '#/components/schemas/Address'
          description: Token addresses to keep.
        devAddresses:
          type: array
          maxItems: 100
          items:
            $ref: '#/components/schemas/Address'
          description: Creator wallets to keep.
        fundingAddresses:
          type: array
          maxItems: 100
          items:
            $ref: '#/components/schemas/Address'
          description: Wallets that funded the creator.
        fundingKinds:
          type: array
          maxItems: 100
          items:
            type: string
            enum:
            - cex
            - wallet
          description: Kinds of source that funded the creator.
        symbolOrName:
          type: array
          maxItems: 100
          items:
            type: string
          description: Substrings of the symbol or name. An address matches the token address exactly.
        protocols:
          type: array
          maxItems: 100
          items:
            type: string
          description: Launchpads the token launched on, in any letter case. An unknown name matches nothing.
        dexes:
          type: array
          maxItems: 100
          items:
            type: string
          description: Venues of any of the token's pools.
        graduatedToDexes:
          type: array
          maxItems: 100
          items:
            type: string
          description: Venues the token graduated to.
        stages:
          type: array
          maxItems: 100
          items:
            type: string
            enum:
            - newly_created
            - about_to_graduate
            - graduated
          description: Launchpad stages. A token with no launchpad has no stage.
        anchors:
          type: array
          maxItems: 100
          items:
            type: string
            enum:
            - native
            - usdc
            - usdt
            - usd1
            - busd
            - uusd
            - usdg
          description: Quote assets the token trades against.
        annotations:
          type: array
          maxItems: 100
          items:
            type: string
            enum:
            - mayhem_mode
            - cashback_coin
            - anchor
            - x_mode
            - tax_token
            - stock_quote
            - stock_dividend
            - ai_vault
            - tax_vault
          description: Annotation kinds the token carries.
        priceUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Price, in USD.
        priceNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Price, in the chain's gas asset.
        marketCapUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Market cap, in USD.
        marketCapNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Market cap, in the chain's gas asset.
        liquidityUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Liquidity, in USD.
        liquidityNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Liquidity, in the chain's gas asset.
        supply:
          $ref: '#/components/schemas/DecimalRange'
          description: Total supply, in token units.
        athMarketCapUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: All-time-high market cap, in USD.
        athMarketCapNative:
          $ref: '#/components/schemas/DecimalRange'
          description: All-time-high market cap, in the chain's gas asset.
        drawdownFromAthPct:
          $ref: '#/components/schemas/DecimalRange'
          description: Fall from the all-time-high market cap, 0-100.
        bondingCurvePct:
          $ref: '#/components/schemas/DecimalRange'
          description: Launchpad progress, 0-100.
        ageMs:
          $ref: '#/components/schemas/IntegerRange'
          description: Milliseconds since the token was created.
        sinceGraduationMs:
          $ref: '#/components/schemas/IntegerRange'
          description: Milliseconds since the token graduated.
        lastActivityMs:
          $ref: '#/components/schemas/IntegerRange'
          description: Milliseconds since the token last changed.
        stats:
          $ref: '#/components/schemas/WindowStatsFilter'
        holderCount:
          $ref: '#/components/schemas/IntegerRange'
          description: Current holders.
        top10HoldersPct:
          $ref: '#/components/schemas/DecimalRange'
          description: Share of supply the 10 largest holders hold.
        devHoldingPct:
          $ref: '#/components/schemas/DecimalRange'
          description: Share of supply the creator holds.
        fundedByCexPct:
          $ref: '#/components/schemas/DecimalRange'
          description: Share of current holders that a known exchange funded.
        snipersSupplyPct:
          $ref: '#/components/schemas/DecimalRange'
          description: Share of supply the snipers group holds.
        bundlerSupplyPct:
          $ref: '#/components/schemas/DecimalRange'
          description: Share of supply the bundler group holds.
        insiderSupplyPct:
          $ref: '#/components/schemas/DecimalRange'
          description: Share of supply the insider group holds.
        freshWalletSupplyPct:
          $ref: '#/components/schemas/DecimalRange'
          description: Share of supply the freshWallet group holds.
        fomoSupplyPct:
          $ref: '#/components/schemas/DecimalRange'
          description: Share of supply the fomo group holds.
        phishingSupplyPct:
          $ref: '#/components/schemas/DecimalRange'
          description: Share of supply the phishing group holds.
        proTraderSupplyPct:
          $ref: '#/components/schemas/DecimalRange'
          description: Share of supply the proTrader group holds.
        sniperCount:
          $ref: '#/components/schemas/IntegerRange'
          description: Wallets in the sniper group.
        bundlerCount:
          $ref: '#/components/schemas/IntegerRange'
          description: Wallets in the bundler group.
        insiderCount:
          $ref: '#/components/schemas/IntegerRange'
          description: Wallets in the insider group.
        freshWalletCount:
          $ref: '#/components/schemas/IntegerRange'
          description: Wallets in the freshWallet group.
        fomoCount:
          $ref: '#/components/schemas/IntegerRange'
          description: Wallets in the fomo group.
        phishingCount:
          $ref: '#/components/schemas/IntegerRange'
          description: Wallets in the phishing group.
        proTraderCount:
          $ref: '#/components/schemas/IntegerRange'
          description: Wallets in the proTrader group.
        mintDisabled:
          type: boolean
          description: Whether no one can mint more supply.
        transferBlockable:
          type: boolean
          description: Whether a transfer can be frozen, paused or blacklisted.
        dexPaid:
          type: boolean
          description: Whether the token's DexScreener profile is paid.
        lpBurntPct:
          $ref: '#/components/schemas/DecimalRange'
          description: Share of the liquidity-pool tokens burnt.
        transferFeeBps:
          $ref: '#/components/schemas/IntegerRange'
          description: Transfer fee, in basis points.
        buyTaxBps:
          $ref: '#/components/schemas/IntegerRange'
          description: Buy tax, in basis points.
        sellTaxBps:
          $ref: '#/components/schemas/IntegerRange'
          description: Sell tax, in basis points.
        socials:
          type: array
          maxItems: 100
          items:
            type: string
            enum:
            - twitter
            - telegram
            - website
            - discord
          description: Social links the token carries.
        feesDexUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: DEX fees over the token's life, in USD.
        feesDexNative:
          $ref: '#/components/schemas/DecimalRange'
          description: DEX fees over the token's life, in the chain's gas asset.
        feesPlatformUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Platform fees over the token's life, in USD.
        feesPlatformNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Platform fees over the token's life, in the chain's gas asset.
        feesValidatorUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Validator fees over the token's life, in USD.
        feesValidatorNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Validator fees over the token's life, in the chain's gas asset.
        totalVolumeUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Volume over the token's life, in USD.
        totalVolumeNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Volume over the token's life, in the chain's gas asset.
        exclude:
          $ref: '#/components/schemas/TokenExclude'
    WindowStatsFilter:
      type: object
      description: Trailing-window stats, keyed by window.
      additionalProperties: false
      properties:
        5m:
          $ref: '#/components/schemas/StatsFilter'
        30m:
          $ref: '#/components/schemas/StatsFilter'
        1h:
          $ref: '#/components/schemas/StatsFilter'
        6h:
          $ref: '#/components/schemas/StatsFilter'
        24h:
          $ref: '#/components/schemas/StatsFilter'
    StatsFilter:
      type: object
      description: Stats over one trailing window.
      additionalProperties: false
      properties:
        volumeUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Volume in the window, in USD.
        volumeNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Volume in the window, in the chain's gas asset.
        buyVolumeUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Buy volume in the window, in USD.
        buyVolumeNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Buy volume in the window, in the chain's gas asset.
        sellVolumeUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Sell volume in the window, in USD.
        sellVolumeNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Sell volume in the window, in the chain's gas asset.
        netBuyVolumeUsd:
          $ref: '#/components/schemas/DecimalRange'
          description: Buy volume less sell volume in the window, in USD.
        netBuyVolumeNative:
          $ref: '#/components/schemas/DecimalRange'
          description: Buy volume less sell volume in the window, in the chain's gas asset.
        buys:
          $ref: '#/components/schemas/IntegerRange'
          description: Buys in the window.
        sells:
          $ref: '#/components/schemas/IntegerRange'
          description: Sells in the window.
        txns:
          $ref: '#/components/schemas/IntegerRange'
          description: Buys plus sells in the window.
        priceChangePct:
          $ref: '#/components/schemas/DecimalRange'
          description: Signed price change in the window, in percent.
    TokenExclude:
      type: object
      description: Values that drop a token that matches any of them.
      additionalProperties: false
      properties:
        chains:
          type: array
          items:
            $ref: '#/components/schemas/Chain'
        tokens:
          type: array
          maxItems: 100
          items:
            $ref: '#/components/schemas/Address'
        devAddresses:
          type: array
          maxItems: 100
          items:
            $ref: '#/components/schemas/Address'
        fundingAddresses:
          type: array
          maxItems: 100
          items:
            $ref: '#/components/schemas/Address'
        fundingKinds:
          type: array
          maxItems: 100
          items:
            type: string
            enum:
            - cex
            - wallet
        symbolOrName:
          type: array
          maxItems: 100
          items:
            type: string
        protocols:
          type: array
          maxItems: 100
          items:
            type: string
        dexes:
          type: array
          maxItems: 100
          items:
            type: string
        graduatedToDexes:
          type: array
          maxItems: 100
          items:
            type: string
        stages:
          type: array
          maxItems: 100
          items:
            type: string
            enum:
            - newly_created
            - about_to_graduate
            - graduated
        anchors:
          type: array
          maxItems: 100
          items:
            type: string
            enum:
            - native
            - usdc
            - usdt
            - usd1
            - busd
            - uusd
            - usdg
        annotations:
          type: array
          maxItems: 100
          items:
            type: string
            enum:
            - mayhem_mode
            - cashback_coin
            - anchor
            - x_mode
            - tax_token
            - stock_quote
            - stock_dividend
            - ai_vault
            - tax_vault
        socials:
          type: array
          maxItems: 100
          items:
            type: string
            enum:
            - twitter
            - telegram
            - website
            - discord
        websites:
          type: array
          maxItems: 100
          items:
            type: string
          description: Website hosts to drop.
        twitter:
          type: array
          maxItems: 100
          items:
            type: string
          description: X handles to drop.
    WalletsFilter:
      type: object
      description: One chain and one or more wallets on it. `wallet` with one address is also taken.
      additionalProperties: false
      required:
      - chain
      properties:
        chain:
          $ref: '#/components/schemas/Chain'
        wallets:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Address'
        wallet:
          $ref: '#/components/schemas/Address'
      oneOf:
      - required:
        - wallets
      - required:
        - wallet
    HoldersFilter:
      type: object
      description: One token on one chain, optionally narrowed to wallet classifications. Counts as one address against the address limit.
      additionalProperties: false
      required:
      - chain
      - token
      properties:
        chain:
          $ref: '#/components/schemas/Chain'
        token:
          $ref: '#/components/schemas/Address'
        flags:
          type: array
          items:
            type: string
            enum:
            - dev
            - sniper
            - insider
            - bundler
            - fresh
            - whale
            - kol
            - pro_trader
            - fomo
            - phishing
          description: Holder classifications to keep, as the Token holders REST read's `flags` takes them. A holder is kept when it carries at least one. `fomo` keeps wallets flagged `fomo`. Left out or empty keeps every holder.
        period:
          type: string
          enum:
          - cycle
          - lifetime
          default: lifetime
          description: The span the trading figures cover. `cycle` covers the open round trip, and `lifetime` every round trip.
    NativePricesFilter:
      type: object
      description: The chains whose gas asset prices to send. `{}` sends every chain. Counts as one address against the address limit.
      additionalProperties: false
      properties:
        chains:
          type: array
          items:
            $ref: '#/components/schemas/Chain'
          description: Chain slugs to keep. Left out or empty keeps every chain.
    TrendingFilter:
      type: object
      description: The Trending REST request body. Counts as one address against the address limit.
      additionalProperties: false
      required:
      - chains
      properties:
        chains:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Chain'
          description: Chains to rank over, as one set.
        window:
          type: string
          enum:
          - 1m
          - 5m
          - 30m
          - 1h
          - 6h
          - 24h
          default: 24h
          description: Period the trending score covers.
        limit:
          type: integer
          default: 100
          description: Number of tokens on the board. Out-of-range values are clamped to 1–100.
        filters:
          type: object
          description: Conditions every ranked token must match, as the Discovery boards REST request takes them. Absent ranks every candidate. An unknown filter name is rejected.
    DiscoveryFilter:
      type: object
      description: The Discovery boards REST request body. Name at least one column. Counts as one address against the address limit.
      required:
      - chains
      properties:
        chains:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/Chain'
          description: Chains to rank over, as one set.
        newPairs:
          $ref: '#/components/schemas/DiscoveryColumn'
        graduating:
          $ref: '#/components/schemas/DiscoveryColumn'
        graduated:
          $ref: '#/components/schemas/DiscoveryColumn'
    DiscoveryColumn:
      type: object
      description: One column of the board. Left out skips the column; `{}` takes its defaults.
      properties:
        sortBy:
          type: string
          enum:
          - createdAt
          - volume24hUsd
          - marketCapUsd
          - liquidityUsd
          - holdersCount
          - tradeCount24h
          - bondingCurvePct
          - bondingCurveActivity
          - graduatedAt
          description: Field to rank on. `createdAt` on `newPairs`, `bondingCurveActivity` on `graduating` and `graduatedAt` on `graduated` when absent.
        order:
          type: string
          enum:
          - desc
          - asc
          default: desc
        limit:
          type: integer
          default: 20
          description: Tokens in the column. Out-of-range values are clamped to 1–100.
        filters:
          type: object
          description: Conditions every token in the column must match, as the Discovery boards REST request takes them. An unknown filter name is rejected.
    DiscoveryDelta:
      type: object
      description: One change to a discovery column.
      required:
      - chain
      - address
      - rank
      properties:
        chain:
          $ref: '#/components/schemas/Chain'
        address:
          $ref: '#/components/schemas/Address'
        rank:
          type:
          - integer
          - 'null'
          description: 1-indexed rank; `null` removes the token from the column.
        data:
          type: object
          description: The token, in the Discovery boards REST shape. Absent when the delta only moves or removes the row.
    TrendingDelta:
      type: object
      description: One change to a trending board.
      required:
      - chain
      - address
      - rank
      properties:
        chain:
          $ref: '#/components/schemas/Chain'
        address:
          $ref: '#/components/schemas/Address'
        rank:
          type:
          - integer
          - 'null'
          description: 1-indexed rank; `null` removes the token from the board.
        data:
          $ref: '#/components/schemas/Token'
          description: Full token state. Absent when the delta only moves or removes the row.
    Candle:
      type: object
      description: One bucket. Values are JSON numbers, the one exception to decimal strings.
      required:
      - time
      - open
      - high
      - low
      - close
      - volume
      properties:
        time:
          $ref: '#/components/schemas/Millis'
          description: The bucket's open time.
        open:
          type: number
        high:
          type: number
        low:
          type: number
        close:
          type: number
        volume:
          type: number
          description: Traded volume, in the subscription's denomination.
    CandleSeriesUpdate:
      description: One bucket, with the series it belongs to.
      allOf:
      - $ref: '#/components/schemas/Candle'
      - type: object
        required:
        - chain
        - token
        - pool
        - timeframe
        properties:
          chain:
            $ref: '#/components/schemas/Chain'
          token:
            $ref: '#/components/schemas/Address'
          pool:
            type:
            - string
            - 'null'
            description: Pool address of a pool bucket; `null` on a token bucket.
          timeframe:
            type: string
            description: Bucket size, such as `1m`.
    Transfer:
      type: object
      description: One transfer between two wallets.
      required:
      - chain
      - token
      - sender
      - recipient
      - amount
      - senderBalanceAfter
      - recipientBalanceAfter
      - transactionHash
      - eventIndex
      - timestamp
      properties:
        chain:
          $ref: '#/components/schemas/Chain'
        token:
          type:
          - string
          - 'null'
          description: Token address; `null` for the chain's native asset.
        sender:
          $ref: '#/components/schemas/Address'
          description: Wallet that sent the transfer.
        recipient:
          $ref: '#/components/schemas/Address'
          description: Wallet that received the transfer.
        amount:
          $ref: '#/components/schemas/Decimal'
          description: Amount moved, in token units.
        senderBalanceAfter:
          type:
          - string
          - 'null'
          description: Sender's balance of the asset after the transaction, as a decimal string; `null` when unknown.
        recipientBalanceAfter:
          type:
          - string
          - 'null'
          description: Recipient's balance of the asset after the transaction, as a decimal string; `null` when unknown.
        transactionHash:
          type: string
          description: On-chain transaction hash.
        eventIndex:
          type:
          - integer
          - 'null'
          description: Position of this transfer within the transaction; `null` for a native transfer on an EVM chain.
        timestamp:
          $ref: '#/components/schemas/Millis'
          description: Execution time.
    Trade:
      type: object
      description: One executed swap.
      required:
      - id
      - chain
      - token
      - name
      - symbol
      - trader
      - transactionHash
      - side
      - amount
      - price
      - volume
      - marketCap
      - timestamp
      properties:
        id:
          type: string
          description: A stable, opaque ID. One transaction can hold several trades, so this is not a transaction hash.
        chain:
          $ref: '#/components/schemas/ChainValue'
        token:
          $ref: '#/components/schemas/Address'
        name:
          type: string
          description: Token name; empty until the token's metadata resolves.
        symbol:
          type: string
          description: Token symbol; empty until the token's metadata resolves.
        trader:
          $ref: '#/components/schemas/Address'
          description: The wallet that sent the swap.
        transactionHash:
          type: string
        side:
          type: string
          enum:
          - buy
          - sell
        amount:
          $ref: '#/components/schemas/Decimal'
          description: Token units traded.
        price:
          $ref: '#/components/schemas/Money'
          description: Token price at execution.
        volume:
          $ref: '#/components/schemas/Money'
          description: Trade value.
        marketCap:
          $ref: '#/components/schemas/Money'
          description: Token market cap at execution.
        flags:
          type: array
          description: The trader's classifications. Left out when empty. The set grows; keep values you do not recognize.
          items:
            type: string
            examples:
            - bundler
            - sniper
            - insider
            - dev
            - fresh
            - whale
            - kol
            - pro_trader
            - fomo
            - phishing
            - marketplace
        platforms:
          type: array
          description: Trading terminals the trade routed through. Left out when empty.
          items:
            $ref: '#/components/schemas/Platform'
        identities:
          type: array
          description: The trader's resolved profiles, one per source. Left out when empty.
          items:
            $ref: '#/components/schemas/Identity'
        timestamp:
          $ref: '#/components/schemas/Millis'
          description: When the trade executed.
    Identity:
      type: object
      required:
      - source
      - handle
      - displayName
      - avatar
      - twitter
      - telegram
      - farcaster
      properties:
        source:
          type: string
          description: Who resolved the profile. The set grows; keep values you do not recognize.
          examples:
          - codex
          - fomo
          - pump
          - gmgn
          - axiom
          - arkham
          - registry
        handle:
          type:
          - string
          - 'null'
        displayName:
          type:
          - string
          - 'null'
        avatar:
          type:
          - string
          - 'null'
          description: Avatar image URL; `null` until the image is available.
        twitter:
          type:
          - string
          - 'null'
        telegram:
          type:
          - string
          - 'null'
        farcaster:
          type:
          - string
          - 'null'
    Platform:
      type: object
      required:
      - platform
      properties:
        platform:
          type: string
          description: The terminal or listing. The set grows; keep values you do not recognize.
          examples:
          - axiom
          - bananaGun
          - bullX
          - gmgn
          - maestro
          - photon
          - trojan
          - fomo
          - dexScreener
        isPaid:
          type: boolean
          description: '`dexScreener` only: whether the token''s DexScreener profile is paid.'
        paidAt:
          type:
          - integer
          - 'null'
          description: '`dexScreener` only: the earliest profile payment, in milliseconds.'
    WindowStats:
      type: object
      required:
      - priceChangePct
      - volume
      - buyCount
      - sellCount
      - buyVolume
      - sellVolume
      properties:
        priceChangePct:
          $ref: '#/components/schemas/Pct'
        volume:
          $ref: '#/components/schemas/Money'
        buyCount:
          type: integer
        sellCount:
          type: integer
        buyVolume:
          $ref: '#/components/schemas/Money'
        sellVolume:
          $ref: '#/components/schemas/Money'
    Token:
      type: object
      description: The token object, the same shape `GET /v1/tokens` returns.
      properties:
        chain:
          $ref: '#/components/schemas/ChainValue'
        address:
          $ref: '#/components/schemas/Address'
        name:
          type: string
        symbol:
          type: string
        decimals:
          type: integer
        logo:
          type: object
          description: Token logo URLs, one per size. Each URL returns `404` while no logo is available for the token.
          required:
          - small
          - medium
          - large
          properties:
            small:
              type: string
              description: Logo at 16×16 pixels, for inline icons.
              examples:
              - https://cdn.example.com/So11111111111111111111111111111111111111112_16x16.webp
            medium:
              type: string
              description: Logo at 60×60 pixels, for list rows.
              examples:
              - https://cdn.example.com/So11111111111111111111111111111111111111112_60x60.webp
            large:
              type: string
              description: Logo at full size.
              examples:
              - https://cdn.example.com/So11111111111111111111111111111111111111112.webp
        supply:
          $ref: '#/components/schemas/Decimal'
          description: Total supply.
        creator:
          $ref: '#/components/schemas/Address'
        devFunding:
          type: object
          description: The creator wallet's first inbound funding.
          properties:
            status:
              type: string
              enum:
              - unresolved
              - resolved
              description: '`unresolved` while the lookup can still resolve.'
            address:
              type:
              - string
              - 'null'
              description: The funder's address.
            sourceKind:
              type:
              - string
              - 'null'
              enum:
              - cex
              - wallet
              - null
            sourceLabel:
              type:
              - string
              - 'null'
              description: A display label for the funder, such as an exchange name.
            amount:
              oneOf:
              - type: 'null'
              - $ref: '#/components/schemas/Decimal'
              description: Amount of the first funding, in the chain's native unit.
            fundedAt:
              oneOf:
              - type: 'null'
              - $ref: '#/components/schemas/Millis'
              description: When the first funding was sent.
          required:
          - status
          - address
          - sourceKind
          - sourceLabel
          - amount
          - fundedAt
        createdAt:
          $ref: '#/components/schemas/Millis'
        launchpad:
          type:
          - string
          - 'null'
          description: The launchpad the token launched on; `null` for other tokens.
        graduatedToPool:
          type:
          - string
          - 'null'
          description: The pool the token moved to on graduation.
        graduatedToDex:
          type:
          - string
          - 'null'
          description: The venue of that pool.
        graduatedAt:
          type:
          - integer
          - 'null'
          description: When the token left its launchpad; `null` until then.
        bondingCurvePct:
          type:
          - string
          - 'null'
          description: Bonding-curve completion, 0-100; `null` off launchpad curves.
        dexes:
          type: array
          description: Venues the token's top pools trade on, deepest first.
          items:
            type: string
        pools:
          type: array
          description: The token's top pools by liquidity, deepest first.
          items:
            type: object
            properties:
              pool:
                type: string
                description: Pool address; the `pool` parameter of the candles endpoint.
              dex:
                type: string
                description: Venue the pool trades on.
              quote:
                type:
                - object
                - 'null'
                description: The asset the pool quotes the token in; `null` until a swap names it.
                properties:
                  address:
                    type: string
                  symbol:
                    type:
                    - string
                    - 'null'
                required:
                - address
              liquidity:
                $ref: '#/components/schemas/Money'
            required:
            - pool
            - dex
            - liquidity
        anchorAddress:
          type:
          - string
          - 'null'
          description: The quote asset of the token's deepest pool.
        anchorSymbol:
          type:
          - string
          - 'null'
        price:
          $ref: '#/components/schemas/Money'
        marketCap:
          $ref: '#/components/schemas/Money'
        liquidity:
          $ref: '#/components/schemas/Money'
        ath:
          type: object
          description: All-time highs.
          properties:
            price:
              $ref: '#/components/schemas/Money'
            priceAt:
              $ref: '#/components/schemas/Millis'
            marketCap:
              $ref: '#/components/schemas/Money'
            marketCapAt:
              $ref: '#/components/schemas/Millis'
          required:
          - price
          - priceAt
          - marketCap
          - marketCapAt
        stats:
          type: object
          description: Trailing windows that end now.
          properties:
            5m:
              $ref: '#/components/schemas/WindowStats'
            30m:
              $ref: '#/components/schemas/WindowStats'
            1h:
              $ref: '#/components/schemas/WindowStats'
            6h:
              $ref: '#/components/schemas/WindowStats'
            24h:
              $ref: '#/components/schemas/WindowStats'
          required:
          - 5m
          - 30m
          - 1h
          - 6h
          - 24h
        totals:
          type: object
          description: All-time totals.
          properties:
            volume:
              $ref: '#/components/schemas/Money'
            fees:
              type: object
              description: Fee totals by kind. The kinds are measured on different bases, so do not add them together.
              properties:
                transaction:
                  $ref: '#/components/schemas/Money'
                validator:
                  $ref: '#/components/schemas/Money'
                platform:
                  $ref: '#/components/schemas/Money'
                dex:
                  $ref: '#/components/schemas/Money'
              required:
              - transaction
              - validator
              - platform
              - dex
          required:
          - volume
          - fees
        holders:
          type: object
          description: Holder concentration and wallet risk groups. Each `Pct` field is the share of supply a group holds now, 0-100. Each `Count` field is the number of wallets that ever carried the flag on this token.
          properties:
            count:
              type: integer
            top10Pct:
              $ref: '#/components/schemas/Pct'
              description: Can read above 100 when supply data drifts.
            devPct:
              $ref: '#/components/schemas/Pct'
            sniperPct:
              $ref: '#/components/schemas/Pct'
            sniperCount:
              type: integer
            bundlerPct:
              $ref: '#/components/schemas/Pct'
            bundlerCount:
              type: integer
            insiderPct:
              $ref: '#/components/schemas/Pct'
            insiderCount:
              type: integer
            phishingPct:
              $ref: '#/components/schemas/Pct'
            phishingCount:
              type: integer
              description: Wallets that ever traded the token while labelled malicious. It never decreases.
            freshWalletPct:
              $ref: '#/components/schemas/Pct'
            freshWalletCount:
              type: integer
            fomoPct:
              $ref: '#/components/schemas/Pct'
            fomoCount:
              type: integer
            proTraderPct:
              $ref: '#/components/schemas/Pct'
            proTraderCount:
              type: integer
            fundedByCexPct:
              $ref: '#/components/schemas/Pct'
              description: Share of current holders that a known exchange funded, 0-100.
          required:
          - count
          - top10Pct
          - devPct
          - sniperPct
          - sniperCount
          - bundlerPct
          - bundlerCount
          - insiderPct
          - insiderCount
          - phishingPct
          - phishingCount
          - freshWalletPct
          - freshWalletCount
          - fomoPct
          - fomoCount
          - proTraderPct
          - proTraderCount
          - fundedByCexPct
        security:
          type: object
          properties:
            mintDisabled:
              type: boolean
              description: 'No more of the token can be minted: the mint authority is revoked on Solana, or the contract holds no mint power on EVM chains.'
            transferBlockable:
              type: boolean
              description: 'Transfers can be blocked: by a freeze authority on Solana, or by a blacklist or pause on EVM chains.'
            lpBurntPct:
              type:
              - string
              - 'null'
              description: Share of liquidity burnt or locked, 0-100; `null` until observed.
            transferFeeBps:
              type:
              - integer
              - 'null'
              description: The token contract's transfer fee in basis points; `250` is 2.50%. `null` when unscored.
            rugPct:
              $ref: '#/components/schemas/Pct'
              description: Not yet populated; always `"0"`.
            totalBuyBps:
              type:
              - integer
              - 'null'
              description: 'What a buy costs in total, in basis points: every fee layer the venue charges, summed. `null` when no source states a rate.'
            totalSellBps:
              type:
              - integer
              - 'null'
              description: 'What a sell costs in total, in basis points; see `totalBuyBps`.'
            buyTaxBps:
              type:
              - integer
              - 'null'
              description: 'The token contract''s own cut of a buy, in basis points; one layer of `totalBuyBps`. `null` when the launchpad states no rate.'
            sellTaxBps:
              type:
              - integer
              - 'null'
              description: 'The token contract''s own cut of a sell, in basis points; see `buyTaxBps`.'
            dividendToken:
              type:
              - string
              - 'null'
              description: Address of the asset the token pays its tax back to holders in. `null` where no holder payout is known; it does not prove the token pays none.
            dividendMinHolding:
              type:
              - string
              - 'null'
              description: Balance of this token a wallet holds to qualify for a payout, in whole tokens, as a decimal string.
          required:
          - mintDisabled
          - transferBlockable
          - lpBurntPct
          - transferFeeBps
          - rugPct
        fees:
          type:
          - object
          - 'null'
          description: What a trade at this token's venue costs, and where its tax goes. Absent where no source states either.
          properties:
            totalBuyBps:
              type:
              - integer
              - 'null'
              description: What a buy costs in total, in basis points.
            totalSellBps:
              type:
              - integer
              - 'null'
              description: What a sell costs in total, in basis points.
            breakdown:
              type: array
              description: The fee layers the totals are made of, the same objects `GET /v1/tokens` returns. A layer nobody states is absent, never zero.
              items:
                type: object
            allocation:
              type:
              - object
              - 'null'
              description: Where the tax goes. Absent where the venue states nothing.
            rewards:
              type:
              - object
              - 'null'
              description: What a wallet holds to qualify for a payout. Absent at a venue gating on nothing.
        metadata:
          type: object
          properties:
            description:
              type:
              - string
              - 'null'
            website:
              type:
              - string
              - 'null'
            twitter:
              type:
              - string
              - 'null'
            telegram:
              type:
              - string
              - 'null'
            discord:
              type:
              - string
              - 'null'
            twitterReuseCount:
              type: integer
              description: Not yet populated; always `0`.
          required:
          - description
          - website
          - twitter
          - telegram
          - discord
          - twitterReuseCount
        platforms:
          type: array
          description: External listings, such as a paid DexScreener profile. Left out when empty.
          items:
            $ref: '#/components/schemas/Platform'
        annotations:
          type: array
          description: Flags the launch carried, tagged by `kind`. Left out when empty.
          items:
            type: object
            required:
            - kind
            properties:
              kind:
                type: string
                examples:
                - mayhem_mode
        updatedAt:
          $ref: '#/components/schemas/Millis'
      required:
      - chain
      - address
      - name
      - symbol
      - decimals
      - logo
      - supply
      - creator
      - devFunding
      - createdAt
      - launchpad
      - graduatedToPool
      - graduatedToDex
      - graduatedAt
      - bondingCurvePct
      - dexes
      - pools
      - anchorAddress
      - anchorSymbol
      - price
      - marketCap
      - liquidity
      - ath
      - stats
      - totals
      - holders
      - security
      - metadata
      - updatedAt
    ChainValue:
      type: string
      description: Chain slug. New chains can appear; keep values you do not recognize.
      examples:
      - solana
      - bsc
      - robinhood
      - elysium
    Balance:
      type: object
      description: One wallet's balance of one asset, as of the transaction that last moved it.
      required:
      - chain
      - wallet
      - asset
      - balance
      - trigger
      - blockNumber
      - signature
      - txIndex
      - updatedAt
      properties:
        asset:
          type: string
          description: 'The asset the balance is in. This is an open enumeration: keep a value you do not recognize.'
        balance:
          $ref: '#/components/schemas/Decimal'
          description: Post-transaction balance, human units.
        blockNumber:
          type: integer
          format: int64
          description: Block or Solana slot where the balance was observed.
          minimum: 0
        chain:
          $ref: '#/components/schemas/ChainValue'
          description: Chain the balance lives on.
        signature:
          type: string
          description: Transaction that moved it.
        trigger:
          type: string
          description: 'What moved the balance. This is an open enumeration: keep a value you do not recognize.'
        txIndex:
          type: integer
          format: int64
          description: Transaction index within the observed block or slot.
          minimum: 0
        updatedAt:
          $ref: '#/components/schemas/Millis'
          description: Block time of the transaction that moved it.
        wallet:
          type: string
          description: Wallet holding it.
    Position:
      type: object
      description: One wallet's spot position in one token, priced as the Positions REST read prices it.
      required:
      - product
      - chain
      - walletAddress
      - token
      - status
      - isTransfer
      - isStablecoin
      - holdings
      - holdingsPctSupply
      - avgCost
      - invested
      - received
      - realizedPnl
      - fees
      - buyCount
      - sellCount
      - tokensBought
      - tokensSold
      - openedAt
      - updatedAt
      - version
      - lifetime
      - funding
      properties:
        avgCost:
          $ref: '#/components/schemas/Money'
          description: Per-token average entry cost.
        avgEntryMarketCap:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Money'
          description: Size-weighted market cap across the position's buys; `null` when none was recorded.
        avgExitMarketCap:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Money'
          description: Size-weighted market cap across the position's sells; `null` when none was recorded.
        buyCount:
          type: integer
          format: int64
          description: Buy-side trade count this cycle.
          minimum: 0
        chain:
          $ref: '#/components/schemas/ChainValue'
          description: Chain the position is on.
        closedAt:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Millis'
          description: When the current cycle closed; `null` while open.
        fees:
          $ref: '#/components/schemas/Money'
          description: Fees paid this cycle.
        funding:
          type: object
          description: The wallet's first inbound funding. Every position of one wallet carries the same value. See the Positions REST reference for its fields.
        holdings:
          $ref: '#/components/schemas/Decimal'
          description: Current token balance.
        holdingsPctSupply:
          $ref: '#/components/schemas/Decimal'
          description: Current holdings as a percent of token supply.
        identities:
          type: array
          items:
            $ref: '#/components/schemas/Identity'
          description: The holder's resolved identities, one element per source.
        invested:
          $ref: '#/components/schemas/Money'
          description: Spent acquiring the current cycle's holdings.
        isStablecoin:
          type: boolean
          description: Whether the token is a known USD stablecoin; clients render its value but suppress PnL.
        isTransfer:
          type: boolean
          description: Whether every unit came without a buy (airdrop, transfer-in).
        lifetime:
          type: object
          description: Aggregates across every open/close cycle for this `(chain, wallet, token)`. See the Positions REST reference for its fields.
        openedAt:
          $ref: '#/components/schemas/Millis'
          description: When the current cycle opened.
        pnlPct:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Decimal'
          description: '`totalPnl.usd` as a percent of `invested.usd`; `null` without a cost basis or `totalPnl`.'
        product:
          type: string
          examples:
          - spot
          description: Always `spot` today.
        realizedPnl:
          $ref: '#/components/schemas/Money'
          description: Realized PnL this cycle.
        received:
          $ref: '#/components/schemas/Money'
          description: Received from sells this cycle.
        sellCount:
          type: integer
          format: int64
          description: Sell-side trade count this cycle.
          minimum: 0
        status:
          type: string
          enum:
          - open
          - closed
          description: This cycle's lifecycle.
        token:
          type: object
          description: The held token. See the Positions REST reference for its fields.
        tokensBought:
          $ref: '#/components/schemas/Decimal'
          description: Tokens bought this cycle.
        tokensSold:
          $ref: '#/components/schemas/Decimal'
          description: Tokens sold this cycle.
        totalPnl:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Money'
          description: Realized plus unrealized PnL; `null` when `unrealizedPnl` is.
        unrealizedPnl:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Money'
          description: Unrealized PnL on current holdings; `null` when unpriced.
        updatedAt:
          $ref: '#/components/schemas/Millis'
          description: Block time of the position's last update. Updates in one second share it.
        value:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Money'
          description: Current value (`holdings × price`); `null` when unpriced.
        version:
          $ref: '#/components/schemas/Millis'
          description: Reconciliation key. A client keeps the highest value per position and discards lower ones.
        walletAddress:
          type: string
          description: The wallet holding this position, lowercase on EVM chains.
    Holder:
      type: object
      description: One wallet's holding and trading figures on one token, in the Token holders REST row shape without `rank`. On the stream, the trading figures cover the filter's `period`.
      required:
      - address
      - nativeBalance
      - balance
      - supplyPct
      - buyVolume
      - tokensBought
      - buyCount
      - sellVolume
      - tokensSold
      - sellCount
      - firstPurchaseAt
      - avgEntryPrice
      - avgExitPrice
      - avgEntryMarketCap
      - avgExitMarketCap
      - realizedPnl
      - remainingPct
      - funding
      properties:
        address:
          type: string
          description: The holder's wallet address.
        nativeBalance:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Decimal'
          description: The wallet's balance of the chain's native asset; `null` until the chain reports one.
        balance:
          $ref: '#/components/schemas/Decimal'
          description: Token units the wallet holds now. `0` means the holder sold out; drop the row.
        supplyPct:
          $ref: '#/components/schemas/Pct'
          description: Share of total supply the wallet holds.
        buyVolume:
          $ref: '#/components/schemas/Money'
          description: Spent buying the token.
        tokensBought:
          $ref: '#/components/schemas/Decimal'
          description: Token units bought, including any sold since.
        buyCount:
          type: integer
          minimum: 0
          description: Buy trades.
        sellVolume:
          $ref: '#/components/schemas/Money'
          description: Received from selling the token.
        tokensSold:
          $ref: '#/components/schemas/Decimal'
          description: Token units sold.
        sellCount:
          type: integer
          minimum: 0
          description: Sell trades.
        firstPurchaseAt:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Millis'
          description: The wallet's first buy of the token; `null` for a wallet that only received transfers.
        avgEntryPrice:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Money'
          description: Average entry price per token; `null` before the first buy.
        avgExitPrice:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Money'
          description: Volume-weighted exit price; `null` until the wallet sells.
        avgEntryMarketCap:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Money'
          description: Size-weighted market cap across the wallet's buys; `null` when none was recorded.
        avgExitMarketCap:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Money'
          description: Size-weighted market cap across the wallet's sells; `null` when none was recorded.
        realizedPnl:
          $ref: '#/components/schemas/Money'
          description: Profit or loss the wallet locked in by selling.
        remainingPct:
          $ref: '#/components/schemas/Pct'
          description: Share of its peak holdings the wallet still holds.
        funding:
          type: object
          description: The wallet's first inbound funding. See the Token holders REST reference for its fields.
        flags:
          type: array
          description: The holder's classifications. A pool carries `liquidity_pool` and a locker carries `locker`. Left out when empty. The set grows; keep values you do not recognize.
          items:
            type: string
            examples:
            - bundler
            - sniper
            - insider
            - dev
            - fresh
            - whale
            - kol
            - liquidity_pool
            - locker
            - pro_trader
            - system
            - fomo
            - phishing
            - marketplace
        platforms:
          type: array
          description: The wallet's trading terminals. Left out when empty.
          items:
            $ref: '#/components/schemas/Platform'
        identities:
          type: array
          description: The holder's resolved profiles, one per source. Left out when empty.
          items:
            $ref: '#/components/schemas/Identity'
    NativePrice:
      type: object
      description: The USD price of one whole unit of a chain's gas asset, in the Native prices REST row shape.
      required:
      - chain
      - asset
      - price
      - observedAt
      properties:
        chain:
          $ref: '#/components/schemas/ChainValue'
          description: Chain whose gas asset this prices.
        asset:
          type: string
          description: 'The chain''s gas asset. This is an open enumeration: keep a value you do not recognize.'
          examples:
          - SOL
          - ETH
          - BNB
        price:
          $ref: '#/components/schemas/Money'
          description: Price of one whole unit of `asset`; `native` is always `"1"`.
        observedAt:
          $ref: '#/components/schemas/Millis'
          description: When the price source reported the rate.
