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

# Stream Solana Token Trades V2

> Stream every trade of a Solana token over Datastream WebSocket in the v2 format, with signatures, exact amounts, fees and prices.

Every trade of a token, across every pool. Room: `v2:transaction:{mint}`. The live side of [`GET /v2/trades/{token}`](https://docs.solanatracker.io/data-api/trades-v2/token/get-token-trades). A trade against SOL or a stablecoin arrives under the other token. A trade between two tokens arrives in both tokens' rooms, as a buy of one and a sell of the other.

## WebSocket example

```javascript theme={null}
const token = "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN";
const room = `v2:transaction:${token}`;
const ws = new WebSocket("wss://datastream.solanatracker.io/YOUR_API_KEY");

ws.addEventListener("open", () => {
  ws.send(JSON.stringify({ type: "join", room }));
});

ws.addEventListener("message", (event) => {
  const msg = JSON.parse(event.data);
  if (msg.type === "ping") return ws.send(JSON.stringify({ type: "pong" }));
  if (msg.type !== "message") return;

  const { trades, tokens, wallets } = msg.data;
  for (const t of trades) {
    const symbol = tokens[t.token]?.symbol ?? t.token;
    console.log(t.tx, t.type, t.amount, symbol, `$${t.volumeUsd.toFixed(2)}`, wallets[t.wallet]?.name ?? t.wallet);
  }
});
```

Each message is a page of new trades in the `/v2` format, without the cursor fields. Trades always include full detail, with wallet identities when known. Load history from the REST route.

## SDK Example

```typescript theme={null}
import { Datastream } from '@solana-tracker/data-api';

const dataStream = new Datastream({
  wsUrl: 'wss://datastream.solanatracker.io/YOUR_API_KEY',
});

dataStream.on('error', console.error);
await dataStream.connect();

const sub = dataStream.subscribe.tradesV2.token('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN').on((data) => {
  // New trades, newest first, with their own tokens, pools and wallets maps.
  console.log(data.trades, data.tokens);
});

// sub.unsubscribe();
```


## AsyncAPI

````yaml datastream/trades-v2.json tokenTradesV2
id: tokenTradesV2
title: Stream Solana Token Trades V2
description: >-
  Every trade of a token, across every pool. Room: `v2:transaction:{mint}`. The
  live side of [`GET
  /v2/trades/{token}`](/data-api/trades-v2/token/get-token-trades). A trade
  against SOL or a stablecoin arrives under the other token. A trade between two
  tokens arrives in both tokens' rooms, as a buy of one and a sell of the other.
servers:
  - id: production
    protocol: wss
    host: datastream.solanatracker.io
    bindings: []
    variables:
      - id: apiKey
        description: Your unique API key from Data API subscription
        defaultValue: YOUR_DATASTREAM_KEY
        allowedValues: []
        examples: []
address: /
parameters: []
bindings: []
operations:
  - &ref_20
    id: subscribeTokenTradesV2
    title: Subscribe token trades v2
    description: Subscribe to token trades
    type: receive
    messages:
      - &ref_23
        id: join
        payload:
          - name: Subscribe to token trades
            type: object
            properties:
              - name: type
                type: string
                description: join
                required: true
              - name: room
                type: string
                description: v2:transaction:{mint}
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - type
            - room
          properties:
            type:
              type: string
              const: join
              default: join
              x-parser-schema-id: <anonymous-schema-2>
            room:
              type: string
              pattern: ^v2:transaction:[A-Za-z0-9]{32,44}$
              default: v2:transaction:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
              description: v2:transaction:{mint}
              x-parser-schema-id: <anonymous-schema-3>
          examples:
            - type: join
              room: v2:transaction:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
          x-parser-schema-id: <anonymous-schema-1>
        title: Subscribe to token trades
        example: |-
          {
            "type": "join",
            "room": "v2:transaction:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: join
          - id: x-parser-message-name
            value: join
    bindings: []
    extensions: &ref_19
      - id: x-codeSamples
        value: &ref_26
          - lang: javascript
            label: WebSocket
            source: >
              const token = "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN";

              const room = `v2:transaction:${token}`;

              const ws = new
              WebSocket("wss://datastream.solanatracker.io/YOUR_API_KEY");


              ws.addEventListener("open", () => {
                ws.send(JSON.stringify({ type: "join", room }));
              });


              ws.addEventListener("message", (event) => {
                const msg = JSON.parse(event.data);
                if (msg.type === "ping") return ws.send(JSON.stringify({ type: "pong" }));
                if (msg.type !== "message") return;

                const { trades, tokens, wallets } = msg.data;
                for (const t of trades) {
                  const symbol = tokens[t.token]?.symbol ?? t.token;
                  console.log(t.tx, t.type, t.amount, symbol, `$${t.volumeUsd.toFixed(2)}`, wallets[t.wallet]?.name ?? t.wallet);
                }
              });
          - lang: typescript
            label: SDK
            source: >
              import { Datastream } from '@solana-tracker/data-api';


              const dataStream = new Datastream({
                wsUrl: 'wss://datastream.solanatracker.io/YOUR_API_KEY',
              });


              dataStream.on('error', console.error);

              await dataStream.connect();


              const sub =
              dataStream.subscribe.tradesV2.token('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN').on((data)
              => {
                // New trades, newest first, with their own tokens, pools and wallets maps.
                console.log(data.trades, data.tokens);
              });


              // sub.unsubscribe();
      - id: x-parser-unique-object-id
        value: tokenTradesV2
  - &ref_22
    id: receiveTokenTradesV2
    title: Receive token trades v2
    description: Receive token trades
    type: send
    messages:
      - &ref_25
        id: message
        payload:
          - name: New token trades
            type: object
            properties:
              - name: type
                type: string
                description: message
                required: true
              - name: room
                type: string
                required: true
              - name: data
                type: object
                description: >-
                  New trades in the room, in the format of a `/v2` trades page
                  without the cursor fields.
                required: true
                properties:
                  - name: trades
                    type: array
                    description: Newest first.
                    required: true
                    properties:
                      - name: tx
                        type: &ref_1
                          - string
                          - 'null'
                        description: Transaction signature. Null when it is not known.
                        required: true
                      - name: slot
                        type: integer
                        description: Slot of the block.
                        required: true
                      - name: txIndex
                        type: integer
                        description: Position of the transaction in its block.
                        required: true
                      - name: swapIndex
                        type: integer
                        description: Position of the swap in its transaction.
                        required: true
                      - name: time
                        type: integer
                        description: >-
                          Block time in Unix milliseconds. Many trades share a
                          time: order by `slot`, `txIndex` and `swapIndex`.
                        required: true
                      - name: type
                        type: string
                        description: Buy or sell of `token`.
                        enumValues:
                          - buy
                          - sell
                        required: true
                      - name: wallet
                        type: string
                        description: >-
                          The trader: `owner`, or `feePayer` when the owner is a
                          program vault.
                        required: true
                      - name: owner
                        type: string
                        description: The account whose token balances changed.
                        required: true
                      - name: feePayer
                        type: string
                        description: >-
                          The account that signed and paid the transaction fee.
                          Differs from `owner` on relayed and routed trades.
                        required: true
                      - name: token
                        type: string
                        description: Mint of the traded token. Its metadata is in `tokens`.
                        required: true
                      - name: amount
                        type: number
                        description: Amount of `token`, in whole tokens.
                        required: true
                      - name: priceUsd
                        type: &ref_2
                          - number
                          - 'null'
                        description: >-
                          USD price of `token` at the trade. Null when the trade
                          could not be priced.
                        required: true
                      - name: priceSol
                        type: &ref_3
                          - number
                          - 'null'
                        description: Price of `token` in SOL at the trade.
                        required: true
                      - name: marketCapUsd
                        type: &ref_4
                          - number
                          - 'null'
                        description: >-
                          `priceUsd` times the token's current supply. Null when
                          either is unknown.
                        required: true
                      - name: quoteToken
                        type: string
                        description: >-
                          Mint of the other side of the swap. Its metadata is in
                          `tokens`.
                        required: true
                      - name: quoteAmount
                        type: number
                        description: Amount of `quoteToken`, in whole tokens.
                        required: true
                      - name: quotePriceUsd
                        type: &ref_5
                          - number
                          - 'null'
                        description: USD price of `quoteToken` at the trade.
                        required: true
                      - name: volumeUsd
                        type: number
                        description: USD value of the trade. 0 when it could not be priced.
                        required: true
                      - name: volumeSol
                        type: &ref_6
                          - number
                          - 'null'
                        description: Value of the trade in SOL.
                        required: true
                      - name: solPriceUsd
                        type: &ref_7
                          - number
                          - 'null'
                        description: SOL price in USD at the trade.
                        required: true
                      - name: program
                        type: string
                        description: >-
                          The program that made the swap, such as `pumpfun-amm`,
                          `meteora-dlmm` or `jupiter`.
                        required: true
                      - name: platform
                        type: &ref_8
                          - string
                          - 'null'
                        description: >-
                          The trading app the trade went through, such as
                          `axiom`, `photon` or `gmgn`, when it is known.
                        required: true
                      - name: pools
                        type: array
                        description: Pools the swap went through, in order.
                        required: true
                        properties:
                          - name: item
                            type: string
                            required: false
                      - name: roundTrip
                        type: boolean
                        description: >-
                          The same transaction also traded this token the other
                          way in the same pool.
                        required: true
                      - name: relayed
                        type: boolean
                        description: Someone other than `owner` paid the transaction fee.
                        required: true
                      - name: priceEstimated
                        type: boolean
                        description: >-
                          Priced through another token's USD price instead of a
                          SOL or stablecoin leg, so less exact.
                        required: true
                      - name: noPool
                        type: boolean
                        description: >-
                          The pool could not be identified. `pools` may be
                          empty.
                        required: true
                      - name: transferFee
                        type: boolean
                        description: A Token-2022 transfer fee was withheld on this swap.
                        required: true
                      - name: from
                        type: object
                        description: One side of a swap, with exact amounts.
                        required: true
                        properties:
                          - name: mint
                            type: string
                            required: true
                          - name: decimals
                            type: integer
                            required: true
                          - name: amount
                            type: number
                            description: In whole tokens.
                            required: true
                          - name: amountRaw
                            type: string
                            description: In base units, as a string.
                            required: true
                          - name: priceUsd
                            type: &ref_0
                              - number
                              - 'null'
                            description: >-
                              USD price of this mint at the trade. Null when it
                              has none.
                            required: true
                          - name: residualRaw
                            type: string
                            description: >-
                              Other movement of this mint in the same
                              transaction, beside the swap, such as rent, tips
                              or a platform fee. In base units, as a string.
                            required: true
                          - name: walletChangeRaw
                            type: string
                            description: >-
                              The owner's balance change in this mint over the
                              whole transaction, negative on `from`. Includes
                              rent and tips, not the network fee. For SOL,
                              lamports and wrapped SOL count together. In base
                              units, as a string.
                            required: true
                      - name: to
                        type: object
                        description: One side of a swap, with exact amounts.
                        required: true
                        properties:
                          - name: mint
                            type: string
                            required: true
                          - name: decimals
                            type: integer
                            required: true
                          - name: amount
                            type: number
                            description: In whole tokens.
                            required: true
                          - name: amountRaw
                            type: string
                            description: In base units, as a string.
                            required: true
                          - name: priceUsd
                            type: *ref_0
                            description: >-
                              USD price of this mint at the trade. Null when it
                              has none.
                            required: true
                          - name: residualRaw
                            type: string
                            description: >-
                              Other movement of this mint in the same
                              transaction, beside the swap, such as rent, tips
                              or a platform fee. In base units, as a string.
                            required: true
                          - name: walletChangeRaw
                            type: string
                            description: >-
                              The owner's balance change in this mint over the
                              whole transaction, negative on `from`. Includes
                              rent and tips, not the network fee. For SOL,
                              lamports and wrapped SOL count together. In base
                              units, as a string.
                            required: true
                      - name: fees
                        type: object
                        description: Fees of the transaction.
                        required: true
                        properties:
                          - name: txLamports
                            type: integer
                            description: Network fee in lamports, priority fee included.
                            required: true
                          - name: priorityLamports
                            type: integer
                            description: Priority fee in lamports.
                            required: true
                          - name: signatures
                            type: integer
                            description: Number of signatures on the transaction.
                            required: true
                          - name: tipLamports
                            type: integer
                            description: Tip paid to a landing service, in lamports.
                            required: true
                          - name: tipService
                            type: &ref_10
                              - string
                              - 'null'
                            description: >-
                              The landing service that was tipped, such as
                              `jito` or `helius-sender`.
                            required: true
                          - name: platformFeeRaw
                            type: string
                            description: >-
                              Fee paid to the trading app, in `platformFeeMint`
                              base units, as a string. `0` when none was found.
                            required: true
                          - name: platformFeeMint
                            type: &ref_11
                              - string
                              - 'null'
                            description: Mint the platform fee was paid in.
                            required: true
                          - name: platformFeeApp
                            type: &ref_12
                              - string
                              - 'null'
                            description: >-
                              The app that received the platform fee, such as
                              `axiom` or `fomo`. Null when none was found.
                            required: true
                          - name: totalUsd
                            type: &ref_13
                              - number
                              - 'null'
                            description: >-
                              Network fee, tip and platform fee in USD. A
                              platform fee in a mint with no price on this trade
                              is left out.
                            required: true
                      - name: compute
                        type: object
                        required: true
                        properties:
                          - name: unitsConsumed
                            type: integer
                            description: Compute units the transaction used.
                            required: true
                          - name: unitLimit
                            type: &ref_14
                              - integer
                              - 'null'
                            description: >-
                              Compute unit limit the transaction set. Null when
                              it set none.
                            required: true
                          - name: unitPriceMicroLamports
                            type: &ref_15
                              - integer
                              - 'null'
                            description: >-
                              Compute unit price in micro-lamports. Null when a
                              priority fee was paid but the price is not known.
                            required: true
                      - name: route
                        type: object
                        required: true
                        properties:
                          - name: programId
                            type: &ref_16
                              - string
                              - 'null'
                            description: Address of the program in `program`.
                            required: true
                          - name: router
                            type: &ref_17
                              - string
                              - 'null'
                            description: >-
                              The router the swap went through, when there is
                              one.
                            required: true
                          - name: priceMint
                            type: &ref_18
                              - string
                              - 'null'
                            description: The mint the trade's price was derived from.
                            required: true
                          - name: instructionIndex
                            type: integer
                            description: >-
                              Index of the top-level instruction that holds the
                              swap.
                            required: true
                          - name: txPrograms
                            type: array
                            description: Every program the transaction called.
                            required: true
                            properties:
                              - name: item
                                type: string
                                required: false
                  - name: tokens
                    type: object
                    description: Each mint in `trades`, once, by mint address.
                    required: true
                  - name: pools
                    type: object
                    description: The pools in `trades`, by pool address.
                    required: true
                  - name: wallets
                    type: object
                    description: >-
                      Known wallets in `trades`, by the `wallet` field of each
                      trade.
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - type
            - room
            - data
          properties:
            type:
              type: string
              const: message
              x-parser-schema-id: <anonymous-schema-5>
            room:
              type: string
              pattern: ^v2:transaction:[A-Za-z0-9]{32,44}$
              x-parser-schema-id: <anonymous-schema-6>
            data:
              type: object
              description: >-
                New trades in the room, in the format of a `/v2` trades page
                without the cursor fields.
              required:
                - trades
                - tokens
                - pools
                - wallets
              properties:
                trades:
                  type: array
                  items:
                    type: object
                    description: >-
                      One swap. A trade between two tokens is two trades: a buy
                      of one and a sell of the other.
                    required:
                      - tx
                      - slot
                      - txIndex
                      - swapIndex
                      - time
                      - type
                      - wallet
                      - owner
                      - feePayer
                      - token
                      - amount
                      - priceUsd
                      - priceSol
                      - marketCapUsd
                      - quoteToken
                      - quoteAmount
                      - quotePriceUsd
                      - volumeUsd
                      - volumeSol
                      - solPriceUsd
                      - program
                      - platform
                      - pools
                      - roundTrip
                      - relayed
                      - priceEstimated
                      - noPool
                      - transferFee
                      - from
                      - to
                      - fees
                      - compute
                      - route
                    properties:
                      tx:
                        type: *ref_1
                        description: Transaction signature. Null when it is not known.
                        x-parser-schema-id: <anonymous-schema-8>
                      slot:
                        type: integer
                        description: Slot of the block.
                        x-parser-schema-id: <anonymous-schema-9>
                      txIndex:
                        type: integer
                        description: Position of the transaction in its block.
                        x-parser-schema-id: <anonymous-schema-10>
                      swapIndex:
                        type: integer
                        description: Position of the swap in its transaction.
                        x-parser-schema-id: <anonymous-schema-11>
                      time:
                        type: integer
                        description: >-
                          Block time in Unix milliseconds. Many trades share a
                          time: order by `slot`, `txIndex` and `swapIndex`.
                        x-parser-schema-id: <anonymous-schema-12>
                      type:
                        type: string
                        description: Buy or sell of `token`.
                        enum:
                          - buy
                          - sell
                        x-parser-schema-id: <anonymous-schema-13>
                      wallet:
                        type: string
                        description: >-
                          The trader: `owner`, or `feePayer` when the owner is a
                          program vault.
                        x-parser-schema-id: <anonymous-schema-14>
                      owner:
                        type: string
                        description: The account whose token balances changed.
                        x-parser-schema-id: <anonymous-schema-15>
                      feePayer:
                        type: string
                        description: >-
                          The account that signed and paid the transaction fee.
                          Differs from `owner` on relayed and routed trades.
                        x-parser-schema-id: <anonymous-schema-16>
                      token:
                        type: string
                        description: Mint of the traded token. Its metadata is in `tokens`.
                        x-parser-schema-id: <anonymous-schema-17>
                      amount:
                        type: number
                        description: Amount of `token`, in whole tokens.
                        x-parser-schema-id: <anonymous-schema-18>
                      priceUsd:
                        type: *ref_2
                        description: >-
                          USD price of `token` at the trade. Null when the trade
                          could not be priced.
                        x-parser-schema-id: <anonymous-schema-19>
                      priceSol:
                        type: *ref_3
                        description: Price of `token` in SOL at the trade.
                        x-parser-schema-id: <anonymous-schema-20>
                      marketCapUsd:
                        type: *ref_4
                        description: >-
                          `priceUsd` times the token's current supply. Null when
                          either is unknown.
                        x-parser-schema-id: <anonymous-schema-21>
                      quoteToken:
                        type: string
                        description: >-
                          Mint of the other side of the swap. Its metadata is in
                          `tokens`.
                        x-parser-schema-id: <anonymous-schema-22>
                      quoteAmount:
                        type: number
                        description: Amount of `quoteToken`, in whole tokens.
                        x-parser-schema-id: <anonymous-schema-23>
                      quotePriceUsd:
                        type: *ref_5
                        description: USD price of `quoteToken` at the trade.
                        x-parser-schema-id: <anonymous-schema-24>
                      volumeUsd:
                        type: number
                        description: USD value of the trade. 0 when it could not be priced.
                        x-parser-schema-id: <anonymous-schema-25>
                      volumeSol:
                        type: *ref_6
                        description: Value of the trade in SOL.
                        x-parser-schema-id: <anonymous-schema-26>
                      solPriceUsd:
                        type: *ref_7
                        description: SOL price in USD at the trade.
                        x-parser-schema-id: <anonymous-schema-27>
                      program:
                        type: string
                        description: >-
                          The program that made the swap, such as `pumpfun-amm`,
                          `meteora-dlmm` or `jupiter`.
                        x-parser-schema-id: <anonymous-schema-28>
                      platform:
                        type: *ref_8
                        description: >-
                          The trading app the trade went through, such as
                          `axiom`, `photon` or `gmgn`, when it is known.
                        x-parser-schema-id: <anonymous-schema-29>
                      pools:
                        type: array
                        items:
                          type: string
                          x-parser-schema-id: <anonymous-schema-31>
                        description: Pools the swap went through, in order.
                        x-parser-schema-id: <anonymous-schema-30>
                      roundTrip:
                        type: boolean
                        description: >-
                          The same transaction also traded this token the other
                          way in the same pool.
                        x-parser-schema-id: <anonymous-schema-32>
                      relayed:
                        type: boolean
                        description: Someone other than `owner` paid the transaction fee.
                        x-parser-schema-id: <anonymous-schema-33>
                      priceEstimated:
                        type: boolean
                        description: >-
                          Priced through another token's USD price instead of a
                          SOL or stablecoin leg, so less exact.
                        x-parser-schema-id: <anonymous-schema-34>
                      noPool:
                        type: boolean
                        description: >-
                          The pool could not be identified. `pools` may be
                          empty.
                        x-parser-schema-id: <anonymous-schema-35>
                      transferFee:
                        type: boolean
                        description: A Token-2022 transfer fee was withheld on this swap.
                        x-parser-schema-id: <anonymous-schema-36>
                      from: &ref_9
                        type: object
                        description: One side of a swap, with exact amounts.
                        required:
                          - mint
                          - decimals
                          - amount
                          - amountRaw
                          - priceUsd
                          - residualRaw
                          - walletChangeRaw
                        properties:
                          mint:
                            type: string
                            x-parser-schema-id: <anonymous-schema-37>
                          decimals:
                            type: integer
                            x-parser-schema-id: <anonymous-schema-38>
                          amount:
                            type: number
                            description: In whole tokens.
                            x-parser-schema-id: <anonymous-schema-39>
                          amountRaw:
                            type: string
                            description: In base units, as a string.
                            x-parser-schema-id: <anonymous-schema-40>
                          priceUsd:
                            type: *ref_0
                            description: >-
                              USD price of this mint at the trade. Null when it
                              has none.
                            x-parser-schema-id: <anonymous-schema-41>
                          residualRaw:
                            type: string
                            description: >-
                              Other movement of this mint in the same
                              transaction, beside the swap, such as rent, tips
                              or a platform fee. In base units, as a string.
                            x-parser-schema-id: <anonymous-schema-42>
                          walletChangeRaw:
                            type: string
                            description: >-
                              The owner's balance change in this mint over the
                              whole transaction, negative on `from`. Includes
                              rent and tips, not the network fee. For SOL,
                              lamports and wrapped SOL count together. In base
                              units, as a string.
                            x-parser-schema-id: <anonymous-schema-43>
                        x-parser-schema-id: TradeLegV2
                      to: *ref_9
                      fees:
                        type: object
                        description: Fees of the transaction.
                        required:
                          - txLamports
                          - priorityLamports
                          - signatures
                          - tipLamports
                          - tipService
                          - platformFeeRaw
                          - platformFeeMint
                          - platformFeeApp
                          - totalUsd
                        properties:
                          txLamports:
                            type: integer
                            description: Network fee in lamports, priority fee included.
                            x-parser-schema-id: <anonymous-schema-44>
                          priorityLamports:
                            type: integer
                            description: Priority fee in lamports.
                            x-parser-schema-id: <anonymous-schema-45>
                          signatures:
                            type: integer
                            description: Number of signatures on the transaction.
                            x-parser-schema-id: <anonymous-schema-46>
                          tipLamports:
                            type: integer
                            description: Tip paid to a landing service, in lamports.
                            x-parser-schema-id: <anonymous-schema-47>
                          tipService:
                            type: *ref_10
                            description: >-
                              The landing service that was tipped, such as
                              `jito` or `helius-sender`.
                            x-parser-schema-id: <anonymous-schema-48>
                          platformFeeRaw:
                            type: string
                            description: >-
                              Fee paid to the trading app, in `platformFeeMint`
                              base units, as a string. `0` when none was found.
                            x-parser-schema-id: <anonymous-schema-49>
                          platformFeeMint:
                            type: *ref_11
                            description: Mint the platform fee was paid in.
                            x-parser-schema-id: <anonymous-schema-50>
                          platformFeeApp:
                            type: *ref_12
                            description: >-
                              The app that received the platform fee, such as
                              `axiom` or `fomo`. Null when none was found.
                            x-parser-schema-id: <anonymous-schema-51>
                          totalUsd:
                            type: *ref_13
                            description: >-
                              Network fee, tip and platform fee in USD. A
                              platform fee in a mint with no price on this trade
                              is left out.
                            x-parser-schema-id: <anonymous-schema-52>
                        x-parser-schema-id: TradeFeesV2
                      compute:
                        type: object
                        required:
                          - unitsConsumed
                          - unitLimit
                          - unitPriceMicroLamports
                        properties:
                          unitsConsumed:
                            type: integer
                            description: Compute units the transaction used.
                            x-parser-schema-id: <anonymous-schema-53>
                          unitLimit:
                            type: *ref_14
                            description: >-
                              Compute unit limit the transaction set. Null when
                              it set none.
                            x-parser-schema-id: <anonymous-schema-54>
                          unitPriceMicroLamports:
                            type: *ref_15
                            description: >-
                              Compute unit price in micro-lamports. Null when a
                              priority fee was paid but the price is not known.
                            x-parser-schema-id: <anonymous-schema-55>
                        x-parser-schema-id: TradeComputeV2
                      route:
                        type: object
                        required:
                          - programId
                          - router
                          - priceMint
                          - instructionIndex
                          - txPrograms
                        properties:
                          programId:
                            type: *ref_16
                            description: Address of the program in `program`.
                            x-parser-schema-id: <anonymous-schema-56>
                          router:
                            type: *ref_17
                            description: >-
                              The router the swap went through, when there is
                              one.
                            x-parser-schema-id: <anonymous-schema-57>
                          priceMint:
                            type: *ref_18
                            description: The mint the trade's price was derived from.
                            x-parser-schema-id: <anonymous-schema-58>
                          instructionIndex:
                            type: integer
                            description: >-
                              Index of the top-level instruction that holds the
                              swap.
                            x-parser-schema-id: <anonymous-schema-59>
                          txPrograms:
                            type: array
                            items:
                              type: string
                              x-parser-schema-id: <anonymous-schema-61>
                            description: Every program the transaction called.
                            x-parser-schema-id: <anonymous-schema-60>
                        x-parser-schema-id: TradeRouteV2
                    x-parser-schema-id: TradeV2
                  description: Newest first.
                  x-parser-schema-id: <anonymous-schema-7>
                tokens:
                  type: object
                  additionalProperties:
                    type: object
                    description: Token metadata, current at the time of the request.
                    required:
                      - name
                      - symbol
                      - decimals
                      - image
                      - supply
                    properties:
                      name:
                        type:
                          - string
                          - 'null'
                        x-parser-schema-id: <anonymous-schema-63>
                      symbol:
                        type:
                          - string
                          - 'null'
                        x-parser-schema-id: <anonymous-schema-64>
                      decimals:
                        type:
                          - integer
                          - 'null'
                        x-parser-schema-id: <anonymous-schema-65>
                      image:
                        type:
                          - string
                          - 'null'
                        x-parser-schema-id: <anonymous-schema-66>
                      supply:
                        type:
                          - number
                          - 'null'
                        description: Current supply, in whole tokens.
                        x-parser-schema-id: <anonymous-schema-67>
                      uri:
                        type:
                          - string
                          - 'null'
                        description: Metadata URI.
                        x-parser-schema-id: <anonymous-schema-68>
                      description:
                        type:
                          - string
                          - 'null'
                        description: At most 2,000 characters.
                        x-parser-schema-id: <anonymous-schema-69>
                      creator:
                        type:
                          - string
                          - 'null'
                        x-parser-schema-id: <anonymous-schema-70>
                      createdOn:
                        type:
                          - string
                          - 'null'
                        x-parser-schema-id: <anonymous-schema-71>
                      twitter:
                        type:
                          - string
                          - 'null'
                        x-parser-schema-id: <anonymous-schema-72>
                      telegram:
                        type:
                          - string
                          - 'null'
                        x-parser-schema-id: <anonymous-schema-73>
                      website:
                        type:
                          - string
                          - 'null'
                        x-parser-schema-id: <anonymous-schema-74>
                    x-parser-schema-id: TradeTokenV2
                  description: Each mint in `trades`, once, by mint address.
                  x-parser-schema-id: <anonymous-schema-62>
                pools:
                  type: object
                  additionalProperties:
                    type: object
                    description: The pool as it is now, not at the time of the trade.
                    required:
                      - market
                      - tokenAddress
                      - quoteToken
                      - liquidityUsd
                      - lpBurn
                      - createdAt
                    properties:
                      market:
                        type:
                          - string
                          - 'null'
                        description: DEX of the pool.
                        x-parser-schema-id: <anonymous-schema-76>
                      tokenAddress:
                        type:
                          - string
                          - 'null'
                        x-parser-schema-id: <anonymous-schema-77>
                      quoteToken:
                        type:
                          - string
                          - 'null'
                        x-parser-schema-id: <anonymous-schema-78>
                      liquidityUsd:
                        type:
                          - number
                          - 'null'
                        x-parser-schema-id: <anonymous-schema-79>
                      lpBurn:
                        type:
                          - number
                          - 'null'
                        description: Percentage of LP tokens burned.
                        x-parser-schema-id: <anonymous-schema-80>
                      createdAt:
                        type:
                          - integer
                          - 'null'
                        description: Unix milliseconds.
                        x-parser-schema-id: <anonymous-schema-81>
                    x-parser-schema-id: TradePoolV2
                  description: The pools in `trades`, by pool address.
                  x-parser-schema-id: <anonymous-schema-75>
                wallets:
                  type: object
                  additionalProperties:
                    type: object
                    description: >-
                      What is known about a wallet: KOL profile, trading
                      platforms, developer or pool labels, bots and SNS name.
                      Only known fields are returned. Current labels, not a
                      snapshot at the time of the trade.
                    properties:
                      type:
                        type: string
                        description: >-
                          Primary label for single-badge UIs, such as `kol`,
                          `bot`, `pool`, `developer` or a platform tag.
                        x-parser-schema-id: <anonymous-schema-83>
                      tags:
                        type: array
                        items:
                          type: string
                          x-parser-schema-id: <anonymous-schema-85>
                        examples:
                          - - kol
                            - axiom
                            - sns
                        x-parser-schema-id: <anonymous-schema-84>
                      name:
                        type: string
                        x-parser-schema-id: <anonymous-schema-86>
                      twitter:
                        type: string
                        x-parser-schema-id: <anonymous-schema-87>
                      avatar:
                        type: string
                        x-parser-schema-id: <anonymous-schema-88>
                      platforms:
                        type: array
                        items:
                          type: string
                          x-parser-schema-id: <anonymous-schema-90>
                        x-parser-schema-id: <anonymous-schema-89>
                      platformProfiles:
                        type: object
                        additionalProperties:
                          type: object
                          additionalProperties: true
                          x-parser-schema-id: <anonymous-schema-92>
                        x-parser-schema-id: <anonymous-schema-91>
                      sns:
                        type: object
                        properties:
                          domain:
                            type: string
                            examples:
                              - trader.sol
                            x-parser-schema-id: <anonymous-schema-94>
                        x-parser-schema-id: <anonymous-schema-93>
                      developer:
                        type: object
                        properties:
                          token:
                            type:
                              - string
                              - 'null'
                            x-parser-schema-id: <anonymous-schema-96>
                          via:
                            type: array
                            items:
                              type: string
                              x-parser-schema-id: <anonymous-schema-98>
                            x-parser-schema-id: <anonymous-schema-97>
                          pools:
                            type: array
                            items:
                              type: string
                              x-parser-schema-id: <anonymous-schema-100>
                            x-parser-schema-id: <anonymous-schema-99>
                          creationTx:
                            type:
                              - string
                              - 'null'
                            x-parser-schema-id: <anonymous-schema-101>
                          createdAt:
                            type:
                              - integer
                              - 'null'
                            description: Unix timestamp in seconds.
                            x-parser-schema-id: <anonymous-schema-102>
                        x-parser-schema-id: <anonymous-schema-95>
                      pool:
                        type: object
                        properties:
                          program:
                            type:
                              - string
                              - 'null'
                            x-parser-schema-id: <anonymous-schema-104>
                          poolAddress:
                            type:
                              - string
                              - 'null'
                            x-parser-schema-id: <anonymous-schema-105>
                        x-parser-schema-id: <anonymous-schema-103>
                      exchange:
                        type: object
                        description: >-
                          Known centralized exchange hot wallet label, when
                          known.
                        properties:
                          name:
                            type:
                              - string
                              - 'null'
                            x-parser-schema-id: <anonymous-schema-107>
                        x-parser-schema-id: <anonymous-schema-106>
                      bot:
                        type: object
                        properties:
                          name:
                            type:
                              - string
                              - 'null'
                            x-parser-schema-id: <anonymous-schema-109>
                          avatar:
                            type:
                              - string
                              - 'null'
                            format: uri
                            x-parser-schema-id: <anonymous-schema-110>
                        x-parser-schema-id: <anonymous-schema-108>
                      hacker:
                        type: object
                        description: Curated exploit/scam wallet label, when known.
                        properties:
                          label:
                            type:
                              - string
                              - 'null'
                            x-parser-schema-id: <anonymous-schema-112>
                        x-parser-schema-id: <anonymous-schema-111>
                      spamDusting:
                        type: object
                        description: Curated spam-dusting wallet label, when known.
                        properties:
                          label:
                            type:
                              - string
                              - 'null'
                            x-parser-schema-id: <anonymous-schema-114>
                        x-parser-schema-id: <anonymous-schema-113>
                    x-parser-schema-id: WalletIdentityV2
                  description: >-
                    Known wallets in `trades`, by the `wallet` field of each
                    trade.
                  x-parser-schema-id: <anonymous-schema-82>
              x-parser-schema-id: TradesV2Live
          examples:
            - type: message
              room: v2:transaction:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
              data:
                trades:
                  - tx: >-
                      5V4apVkgHf49J5acYPiuh5rB89EGsF8ocSysgnD9vFfZsTtDamhN3MFDKJSq7Dn7Z6Y5XhjghuVYuvvYWnSFpnvW
                    slot: 470027315
                    txIndex: 312
                    swapIndex: 0
                    time: 1794733462000
                    type: sell
                    wallet: F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi
                    owner: F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi
                    feePayer: F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi
                    token: 6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
                    amount: 90
                    priceUsd: 6.002467911111111
                    priceSol: 0.03285243233052986
                    marketCapUsd: 6002464620.378128
                    quoteToken: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
                    quoteAmount: 540.222112
                    quotePriceUsd: 1
                    volumeUsd: 540.222112
                    volumeSol: 2.956718909747688
                    solPriceUsd: 182.71
                    program: meteora-dlmm
                    platform: axiom
                    pools:
                      - 9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2
                    roundTrip: false
                    relayed: false
                    priceEstimated: false
                    noPool: false
                    transferFee: false
                    from:
                      mint: 6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
                      decimals: 6
                      amount: 90
                      amountRaw: '90000000'
                      priceUsd: 6.002467911111111
                      residualRaw: '0'
                      walletChangeRaw: '-90000000'
                    to:
                      mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
                      decimals: 6
                      amount: 540.222112
                      amountRaw: '540222112'
                      priceUsd: 1
                      residualRaw: '0'
                      walletChangeRaw: '540222112'
                    fees:
                      txLamports: 105000
                      priorityLamports: 100000
                      signatures: 1
                      tipLamports: 1000000
                      tipService: jito
                      platformFeeRaw: '2956624'
                      platformFeeMint: So11111111111111111111111111111111111111112
                      platformFeeApp: axiom
                      totalUsd: 0.742099
                    compute:
                      unitsConsumed: 148213
                      unitLimit: 200000
                      unitPriceMicroLamports: 500000
                    route:
                      programId: LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo
                      router: null
                      priceMint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
                      instructionIndex: 3
                      txPrograms:
                        - ComputeBudget111111111111111111111111111111
                        - LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo
                        - TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
                        - '11111111111111111111111111111111'
                  - tx: >-
                      3wpLJJVCb7Z5ANgtqqkJxkmhEh1y5yvE4GkPESuAtjQWbqFFd2PAzhouVh3Yu4EwTWYXtytptjFy8DHU3L8s6fMg
                    slot: 470027315
                    txIndex: 187
                    swapIndex: 0
                    time: 1794733462000
                    type: buy
                    wallet: FbMxP3GVq8TQ36nbYgx4NP9iygMpwAwFWJwW81ioCiSF
                    owner: FbMxP3GVq8TQ36nbYgx4NP9iygMpwAwFWJwW81ioCiSF
                    feePayer: HjMhpGkbtBfrbmSSmjN3dGdXrdXAvwPgt2YqUP2GjZpF
                    token: 6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
                    amount: 30.481902
                    priceUsd: 5.994048534110503
                    priceSol: 0.03280635178211648
                    marketCapUsd: 5994045247.993275
                    quoteToken: So11111111111111111111111111111111111111112
                    quoteAmount: 1
                    quotePriceUsd: 182.71
                    volumeUsd: 182.71
                    volumeSol: 1
                    solPriceUsd: 182.71
                    program: jupiter
                    platform: null
                    pools:
                      - 8sLbNZoA1cfnvMJLPfp98ZLAnFSYCFApfJKMbiXNLwxj
                      - 9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2
                    roundTrip: false
                    relayed: true
                    priceEstimated: false
                    noPool: false
                    transferFee: false
                    from:
                      mint: So11111111111111111111111111111111111111112
                      decimals: 9
                      amount: 1
                      amountRaw: '1000000000'
                      priceUsd: 182.71
                      residualRaw: '2039280'
                      walletChangeRaw: '-1002039280'
                    to:
                      mint: 6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
                      decimals: 6
                      amount: 30.481902
                      amountRaw: '30481902'
                      priceUsd: 5.994048534110503
                      residualRaw: '0'
                      walletChangeRaw: '30481902'
                    fees:
                      txLamports: 10000
                      priorityLamports: 0
                      signatures: 2
                      tipLamports: 0
                      tipService: null
                      platformFeeRaw: '0'
                      platformFeeMint: null
                      platformFeeApp: null
                      totalUsd: 0.001827
                    compute:
                      unitsConsumed: 211873
                      unitLimit: 400000
                      unitPriceMicroLamports: 0
                    route:
                      programId: JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4
                      router: jupiter
                      priceMint: So11111111111111111111111111111111111111112
                      instructionIndex: 2
                      txPrograms:
                        - ComputeBudget111111111111111111111111111111
                        - JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4
                        - CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK
                        - LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo
                        - TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
                tokens:
                  6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN:
                    name: OFFICIAL TRUMP
                    symbol: TRUMP
                    decimals: 6
                    image: >-
                      https://image.solanatracker.io/proxy?url=https%3A%2F%2Farweave.net%2FVQrPjACwnQRmxdKBTqNwPiyo65x7LAT773t8Kd7YBzw
                    supply: 999999451.77
                    uri: >-
                      https://arweave.net/cSCP0h2n1crjeSWE9KF-XtLciJalDNFs7Vf-Sm0NNY0
                    description: null
                    creator: null
                    createdOn: null
                    twitter: null
                    telegram: null
                    website: https://gettrumpmemes.com
                  EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v:
                    name: USD Coin
                    symbol: USDC
                    decimals: 6
                    image: >-
                      https://image.solanatracker.io/proxy?url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolana-labs%2Ftoken-list%2Fmain%2Fassets%2Fmainnet%2FEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v%2Flogo.png
                    supply: 8873651024.53
                    uri: null
                    description: null
                    creator: null
                    createdOn: null
                    twitter: null
                    telegram: null
                    website: null
                  So11111111111111111111111111111111111111112:
                    name: Wrapped SOL
                    symbol: SOL
                    decimals: 9
                    image: >-
                      https://image.solanatracker.io/proxy?url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolana-labs%2Ftoken-list%2Fmain%2Fassets%2Fmainnet%2FSo11111111111111111111111111111111111111112%2Flogo.png
                    supply: 551203887.41
                    uri: null
                    description: null
                    creator: null
                    createdOn: null
                    twitter: null
                    telegram: null
                    website: null
                pools:
                  9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2:
                    market: meteora-dlmm
                    tokenAddress: 6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
                    quoteToken: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
                    liquidityUsd: 41872931.44
                    lpBurn: 0
                    createdAt: 1737165082000
                wallets:
                  F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi:
                    type: axiom
                    tags:
                      - axiom
                    platforms:
                      - axiom
          x-parser-schema-id: <anonymous-schema-4>
        title: New token trades
        example: |-
          {
            "type": "message",
            "room": "v2:transaction:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
            "data": {
              "trades": [
                {
                  "tx": "5V4apVkgHf49J5acYPiuh5rB89EGsF8ocSysgnD9vFfZsTtDamhN3MFDKJSq7Dn7Z6Y5XhjghuVYuvvYWnSFpnvW",
                  "slot": 470027315,
                  "txIndex": 312,
                  "swapIndex": 0,
                  "time": 1794733462000,
                  "type": "sell",
                  "wallet": "F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi",
                  "owner": "F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi",
                  "feePayer": "F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi",
                  "token": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
                  "amount": 90,
                  "priceUsd": 6.002467911111111,
                  "priceSol": 0.03285243233052986,
                  "marketCapUsd": 6002464620.378128,
                  "quoteToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                  "quoteAmount": 540.222112,
                  "quotePriceUsd": 1,
                  "volumeUsd": 540.222112,
                  "volumeSol": 2.956718909747688,
                  "solPriceUsd": 182.71,
                  "program": "meteora-dlmm",
                  "platform": "axiom",
                  "pools": [
                    "9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2"
                  ],
                  "roundTrip": false,
                  "relayed": false,
                  "priceEstimated": false,
                  "noPool": false,
                  "transferFee": false,
                  "from": {
                    "mint": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
                    "decimals": 6,
                    "amount": 90,
                    "amountRaw": "90000000",
                    "priceUsd": 6.002467911111111,
                    "residualRaw": "0",
                    "walletChangeRaw": "-90000000"
                  },
                  "to": {
                    "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                    "decimals": 6,
                    "amount": 540.222112,
                    "amountRaw": "540222112",
                    "priceUsd": 1,
                    "residualRaw": "0",
                    "walletChangeRaw": "540222112"
                  },
                  "fees": {
                    "txLamports": 105000,
                    "priorityLamports": 100000,
                    "signatures": 1,
                    "tipLamports": 1000000,
                    "tipService": "jito",
                    "platformFeeRaw": "2956624",
                    "platformFeeMint": "So11111111111111111111111111111111111111112",
                    "platformFeeApp": "axiom",
                    "totalUsd": 0.742099
                  },
                  "compute": {
                    "unitsConsumed": 148213,
                    "unitLimit": 200000,
                    "unitPriceMicroLamports": 500000
                  },
                  "route": {
                    "programId": "LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo",
                    "router": null,
                    "priceMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                    "instructionIndex": 3,
                    "txPrograms": [
                      "ComputeBudget111111111111111111111111111111",
                      "LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo",
                      "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
                      "11111111111111111111111111111111"
                    ]
                  }
                },
                {
                  "tx": "3wpLJJVCb7Z5ANgtqqkJxkmhEh1y5yvE4GkPESuAtjQWbqFFd2PAzhouVh3Yu4EwTWYXtytptjFy8DHU3L8s6fMg",
                  "slot": 470027315,
                  "txIndex": 187,
                  "swapIndex": 0,
                  "time": 1794733462000,
                  "type": "buy",
                  "wallet": "FbMxP3GVq8TQ36nbYgx4NP9iygMpwAwFWJwW81ioCiSF",
                  "owner": "FbMxP3GVq8TQ36nbYgx4NP9iygMpwAwFWJwW81ioCiSF",
                  "feePayer": "HjMhpGkbtBfrbmSSmjN3dGdXrdXAvwPgt2YqUP2GjZpF",
                  "token": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
                  "amount": 30.481902,
                  "priceUsd": 5.994048534110503,
                  "priceSol": 0.03280635178211648,
                  "marketCapUsd": 5994045247.993275,
                  "quoteToken": "So11111111111111111111111111111111111111112",
                  "quoteAmount": 1,
                  "quotePriceUsd": 182.71,
                  "volumeUsd": 182.71,
                  "volumeSol": 1,
                  "solPriceUsd": 182.71,
                  "program": "jupiter",
                  "platform": null,
                  "pools": [
                    "8sLbNZoA1cfnvMJLPfp98ZLAnFSYCFApfJKMbiXNLwxj",
                    "9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2"
                  ],
                  "roundTrip": false,
                  "relayed": true,
                  "priceEstimated": false,
                  "noPool": false,
                  "transferFee": false,
                  "from": {
                    "mint": "So11111111111111111111111111111111111111112",
                    "decimals": 9,
                    "amount": 1,
                    "amountRaw": "1000000000",
                    "priceUsd": 182.71,
                    "residualRaw": "2039280",
                    "walletChangeRaw": "-1002039280"
                  },
                  "to": {
                    "mint": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
                    "decimals": 6,
                    "amount": 30.481902,
                    "amountRaw": "30481902",
                    "priceUsd": 5.994048534110503,
                    "residualRaw": "0",
                    "walletChangeRaw": "30481902"
                  },
                  "fees": {
                    "txLamports": 10000,
                    "priorityLamports": 0,
                    "signatures": 2,
                    "tipLamports": 0,
                    "tipService": null,
                    "platformFeeRaw": "0",
                    "platformFeeMint": null,
                    "platformFeeApp": null,
                    "totalUsd": 0.001827
                  },
                  "compute": {
                    "unitsConsumed": 211873,
                    "unitLimit": 400000,
                    "unitPriceMicroLamports": 0
                  },
                  "route": {
                    "programId": "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4",
                    "router": "jupiter",
                    "priceMint": "So11111111111111111111111111111111111111112",
                    "instructionIndex": 2,
                    "txPrograms": [
                      "ComputeBudget111111111111111111111111111111",
                      "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4",
                      "CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK",
                      "LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo",
                      "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
                    ]
                  }
                }
              ],
              "tokens": {
                "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN": {
                  "name": "OFFICIAL TRUMP",
                  "symbol": "TRUMP",
                  "decimals": 6,
                  "image": "https://image.solanatracker.io/proxy?url=https%3A%2F%2Farweave.net%2FVQrPjACwnQRmxdKBTqNwPiyo65x7LAT773t8Kd7YBzw",
                  "supply": 999999451.77,
                  "uri": "https://arweave.net/cSCP0h2n1crjeSWE9KF-XtLciJalDNFs7Vf-Sm0NNY0",
                  "description": null,
                  "creator": null,
                  "createdOn": null,
                  "twitter": null,
                  "telegram": null,
                  "website": "https://gettrumpmemes.com"
                },
                "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v": {
                  "name": "USD Coin",
                  "symbol": "USDC",
                  "decimals": 6,
                  "image": "https://image.solanatracker.io/proxy?url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolana-labs%2Ftoken-list%2Fmain%2Fassets%2Fmainnet%2FEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v%2Flogo.png",
                  "supply": 8873651024.53,
                  "uri": null,
                  "description": null,
                  "creator": null,
                  "createdOn": null,
                  "twitter": null,
                  "telegram": null,
                  "website": null
                },
                "So11111111111111111111111111111111111111112": {
                  "name": "Wrapped SOL",
                  "symbol": "SOL",
                  "decimals": 9,
                  "image": "https://image.solanatracker.io/proxy?url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolana-labs%2Ftoken-list%2Fmain%2Fassets%2Fmainnet%2FSo11111111111111111111111111111111111111112%2Flogo.png",
                  "supply": 551203887.41,
                  "uri": null,
                  "description": null,
                  "creator": null,
                  "createdOn": null,
                  "twitter": null,
                  "telegram": null,
                  "website": null
                }
              },
              "pools": {
                "9d9mb8kooFfaD3SctgZtkxQypkshx6ezhbKio89ixyy2": {
                  "market": "meteora-dlmm",
                  "tokenAddress": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
                  "quoteToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                  "liquidityUsd": 41872931.44,
                  "lpBurn": 0,
                  "createdAt": 1737165082000
                }
              },
              "wallets": {
                "F7R61te4Ac8xZ4pfkJUdF6iaaHy9tnM8nVRUPv8H8EMi": {
                  "type": "axiom",
                  "tags": [
                    "axiom"
                  ],
                  "platforms": [
                    "axiom"
                  ]
                }
              }
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: message
          - id: x-parser-message-name
            value: message
    bindings: []
    extensions: *ref_19
  - &ref_21
    id: unsubscribeTokenTradesV2
    title: Unsubscribe token trades v2
    description: Unsubscribe from token trades
    type: receive
    messages:
      - &ref_24
        id: leave
        payload:
          - name: Unsubscribe from token trades
            type: object
            properties:
              - name: type
                type: string
                description: leave
                required: true
              - name: room
                type: string
                description: v2:transaction:{mint}
                required: true
        headers: []
        jsonPayloadSchema:
          type: object
          required:
            - type
            - room
          properties:
            type:
              type: string
              const: leave
              default: leave
              x-parser-schema-id: <anonymous-schema-116>
            room:
              type: string
              pattern: ^v2:transaction:[A-Za-z0-9]{32,44}$
              default: v2:transaction:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
              description: v2:transaction:{mint}
              x-parser-schema-id: <anonymous-schema-117>
          examples:
            - type: leave
              room: v2:transaction:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
          x-parser-schema-id: <anonymous-schema-115>
        title: Unsubscribe from token trades
        example: |-
          {
            "type": "leave",
            "room": "v2:transaction:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: leave
          - id: x-parser-message-name
            value: leave
    bindings: []
    extensions: *ref_19
sendOperations:
  - *ref_20
  - *ref_21
receiveOperations:
  - *ref_22
sendMessages:
  - *ref_23
  - *ref_24
receiveMessages:
  - *ref_25
extensions:
  - id: x-codeSamples
    value: *ref_26
  - id: x-parser-unique-object-id
    value: tokenTradesV2
securitySchemes:
  - id: apiKeyAuth
    name: apiKey
    type: httpApiKey
    description: >-
      API key for authentication. Include your Datastream key in the connection
      URL: wss://datastream.solanatracker.io/{DATASTREAM_KEY}
    in: header
    extensions: []

````

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