Stream

Token Trades

Real-time swaps. Filter by source, mint, wallet, and USD volume.

Channel: trades · Event type: swap

See also: REST equivalent

Subscribe

Send this message after connecting to wss://api.anaxer.com/v1/stream.

{
  "subscribe": "trades",
  "filters": {
    "sources": ["pump_fun"],
    "mints": ["EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm"],
    "wallets": ["5FHwkW5742VKq9W8pN3mL7jR2sT6cX4bY1zD8gH9K2pQnM"],
    "minVolumeUsd": 100,
    "maxVolumeUsd": 50000
  }
}

Filters

Optional filters narrow events before they are delivered. The same filters apply to the REST endpoint. Full sources catalog: Sources.

NameTypeDescription
sourcesstring[]Filter by venue. Supported: pump_fun, pump_amm, raydium_launchlab, raydium_cpmm, raydium_clmm, raydium_v4, meteora_dbc, meteora_damm_v2, meteora_dlmm, meteora_pools, orca_whirlpool, pancakeswap, bonkfun. Example: ["pump_fun"]
mintsstring[]Token mint addresses to follow. Starter must pass `mints` (required, max 10). Pro may omit `mints` to receive all trades; when set, max 100. Example: ["EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm"]
walletsstring[]Filter to one or more wallet addresses. Example: ["5FHwkW5742VKq9W8pN3mL7jR2sT6cX4bY1zD8gH9K2pQnM"]
minVolumeUsdnumberMinimum trade size in USD. Example: 100
maxVolumeUsdnumberMaximum trade size in USD. Example: 50000

Event payload

Each event is a flat JSON object with a predictable shape.

{
  "type": "swap",
  "source": "pump_fun",
  "wallet": "5FHwkW5742VKq9W8pN3mL7jR2sT6cX4bY1zD8gH9K2pQnM",
  "volumeUsd": 187.5,
  "swap": {
    "from": {
      "mint": "So11111111111111111111111111111111111111112",
      "amount": "1250000000",
      "uiAmount": 1.25,
      "decimals": 9
    },
    "to": {
      "mint": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm",
      "amount": "842110000000",
      "uiAmount": 842110,
      "decimals": 6
    }
  },
  "signature": "5xY8kR3nQmZ2vLdE9fWqT1sN4pC7hUoB6yA8jK2mVxRt3wDzS9pQeH4LcM7nJb1FgKtR5zXvY2mNc8h",
  "slot": 309812501,
  "timestamp": 1751008869000
}

Fields

NameTypeDescription
typestringAlways "swap".
signaturestringSwap transaction signature.
slotnumberSolana slot the event landed in. Use for ordering and gap recovery.
timestampnumberEvent time as a Unix epoch millisecond value.
walletstringWallet that made the swap.
sourcestringDEX/venue. See Sources.
volumeUsdnumberTrade size in USD.
swapobject{ from, to }, each with mint, amount (raw string), uiAmount (number), decimals.