> ## 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.

# Solana 代币成交 V2 WebSocket 流

> Solana 代币成交 V2 实时流：通过 Datastream WebSocket 以 v2 格式接收某代币的每笔成交，含签名、精确数量、手续费和价格。

某代币在所有池中的每笔成交。房间：`v2:transaction:{mint}`。即 [`GET /v2/trades/{token}`](https://docs.solanatracker.io/cn/data-api/trades-v2/token/get-token-trades) 的实时版本。与 SOL 或稳定币的成交归入另一方代币。两种代币之间的成交会同时进入两个代币的房间，分别作为其中一个的买入和另一个的卖出。

## 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);
  }
});
```

每条消息是一页 `/v2` 格式的新成交，不含游标字段。成交始终包含完整详情，已知时附带钱包身份。历史数据请通过 REST 路由加载。

## 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 cn/datastream/trades-v2.json tokenTradesV2
id: tokenTradesV2
title: Stream Solana Token Trades V2
description: >-
  某代币在所有池中的每笔成交。房间：`v2:transaction:{mint}`。即 [`GET
  /v2/trades/{token}`](/cn/data-api/trades-v2/token/get-token-trades) 的实时版本。与
  SOL 或稳定币的成交归入另一方代币。两种代币之间的成交会同时进入两个代币的房间，分别作为其中一个的买入和另一个的卖出。
servers:
  - id: production
    protocol: wss
    host: datastream.solanatracker.io
    bindings: []
    variables:
      - id: apiKey
        description: Data API 订阅中的唯一 API 密钥
        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: 房间中的新成交，格式与不含游标字段的 `/v2` 成交页相同。
                required: true
                properties:
                  - name: trades
                    type: array
                    description: 最新的在前。
                    required: true
                    properties:
                      - name: tx
                        type: &ref_1
                          - string
                          - 'null'
                        description: 交易签名。未知时为 null。
                        required: true
                      - name: slot
                        type: integer
                        description: 区块的 slot。
                        required: true
                      - name: txIndex
                        type: integer
                        description: 交易在其区块中的位置。
                        required: true
                      - name: swapIndex
                        type: integer
                        description: 兑换在其交易中的位置。
                        required: true
                      - name: time
                        type: integer
                        description: >-
                          区块时间，Unix 毫秒。许多成交时间相同：请按 `slot`、`txIndex` 和
                          `swapIndex` 排序。
                        required: true
                      - name: type
                        type: string
                        description: '`token` 的买入或卖出。'
                        enumValues:
                          - buy
                          - sell
                        required: true
                      - name: wallet
                        type: string
                        description: 交易者：`owner`；当 owner 是程序金库时为 `feePayer`。
                        required: true
                      - name: owner
                        type: string
                        description: 代币余额发生变化的账户。
                        required: true
                      - name: feePayer
                        type: string
                        description: 签名并支付交易手续费的账户。在代付和路由成交中与 `owner` 不同。
                        required: true
                      - name: token
                        type: string
                        description: 所交易代币的 mint。其元数据在 `tokens` 中。
                        required: true
                      - name: amount
                        type: number
                        description: '`token` 的数量，以完整代币为单位。'
                        required: true
                      - name: priceUsd
                        type: &ref_2
                          - number
                          - 'null'
                        description: 成交时 `token` 的美元价格。无法定价时为 null。
                        required: true
                      - name: priceSol
                        type: &ref_3
                          - number
                          - 'null'
                        description: 成交时 `token` 的 SOL 价格。
                        required: true
                      - name: marketCapUsd
                        type: &ref_4
                          - number
                          - 'null'
                        description: '`priceUsd` 乘以代币当前供应量。任一未知时为 null。'
                        required: true
                      - name: quoteToken
                        type: string
                        description: 兑换另一侧的 mint。其元数据在 `tokens` 中。
                        required: true
                      - name: quoteAmount
                        type: number
                        description: '`quoteToken` 的数量，以完整代币为单位。'
                        required: true
                      - name: quotePriceUsd
                        type: &ref_5
                          - number
                          - 'null'
                        description: 成交时 `quoteToken` 的美元价格。
                        required: true
                      - name: volumeUsd
                        type: number
                        description: 成交的美元价值。无法定价时为 0。
                        required: true
                      - name: volumeSol
                        type: &ref_6
                          - number
                          - 'null'
                        description: 成交的 SOL 价值。
                        required: true
                      - name: solPriceUsd
                        type: &ref_7
                          - number
                          - 'null'
                        description: 成交时 SOL 的美元价格。
                        required: true
                      - name: program
                        type: string
                        description: 执行兑换的程序，例如 `pumpfun-amm`、`meteora-dlmm` 或 `jupiter`。
                        required: true
                      - name: platform
                        type: &ref_8
                          - string
                          - 'null'
                        description: 成交所经过的交易应用，例如 `axiom`、`photon` 或 `gmgn`（已知时）。
                        required: true
                      - name: pools
                        type: array
                        description: 兑换依次经过的池。
                        required: true
                        properties:
                          - name: item
                            type: string
                            required: false
                      - name: roundTrip
                        type: boolean
                        description: 同一交易还在同一池中反向交易了该代币。
                        required: true
                      - name: relayed
                        type: boolean
                        description: 交易手续费由 `owner` 以外的账户支付。
                        required: true
                      - name: priceEstimated
                        type: boolean
                        description: 通过另一代币的美元价格定价，而非通过 SOL 或稳定币一侧，因此精度较低。
                        required: true
                      - name: noPool
                        type: boolean
                        description: 无法识别池。`pools` 可能为空。
                        required: true
                      - name: transferFee
                        type: boolean
                        description: 此次兑换预扣了 Token-2022 转账手续费。
                        required: true
                      - name: from
                        type: object
                        description: 兑换的一侧，含精确数量。
                        required: true
                        properties:
                          - name: mint
                            type: string
                            required: true
                          - name: decimals
                            type: integer
                            required: true
                          - name: amount
                            type: number
                            description: 以完整代币为单位。
                            required: true
                          - name: amountRaw
                            type: string
                            description: 以基础单位计，字符串格式。
                            required: true
                          - name: priceUsd
                            type: &ref_0
                              - number
                              - 'null'
                            description: 成交时该 mint 的美元价格。没有价格时为 null。
                            required: true
                          - name: residualRaw
                            type: string
                            description: 同一交易中该 mint 在兑换之外的其他变动，例如租金、小费或平台手续费。以基础单位计，字符串格式。
                            required: true
                          - name: walletChangeRaw
                            type: string
                            description: >-
                              owner 在整笔交易中该 mint 的余额变化，在 `from`
                              上为负。包含租金和小费，不含网络手续费。对于 SOL，lamports 与 wrapped SOL
                              合并计算。以基础单位计，字符串格式。
                            required: true
                      - name: to
                        type: object
                        description: 兑换的一侧，含精确数量。
                        required: true
                        properties:
                          - name: mint
                            type: string
                            required: true
                          - name: decimals
                            type: integer
                            required: true
                          - name: amount
                            type: number
                            description: 以完整代币为单位。
                            required: true
                          - name: amountRaw
                            type: string
                            description: 以基础单位计，字符串格式。
                            required: true
                          - name: priceUsd
                            type: *ref_0
                            description: 成交时该 mint 的美元价格。没有价格时为 null。
                            required: true
                          - name: residualRaw
                            type: string
                            description: 同一交易中该 mint 在兑换之外的其他变动，例如租金、小费或平台手续费。以基础单位计，字符串格式。
                            required: true
                          - name: walletChangeRaw
                            type: string
                            description: >-
                              owner 在整笔交易中该 mint 的余额变化，在 `from`
                              上为负。包含租金和小费，不含网络手续费。对于 SOL，lamports 与 wrapped SOL
                              合并计算。以基础单位计，字符串格式。
                            required: true
                      - name: fees
                        type: object
                        description: 交易的费用。
                        required: true
                        properties:
                          - name: txLamports
                            type: integer
                            description: 网络手续费（lamports），含优先费。
                            required: true
                          - name: priorityLamports
                            type: integer
                            description: 优先费（lamports）。
                            required: true
                          - name: signatures
                            type: integer
                            description: 交易上的签名数量。
                            required: true
                          - name: tipLamports
                            type: integer
                            description: 支付给落地服务的小费（lamports）。
                            required: true
                          - name: tipService
                            type: &ref_10
                              - string
                              - 'null'
                            description: 收取小费的落地服务，例如 `jito` 或 `helius-sender`。
                            required: true
                          - name: platformFeeRaw
                            type: string
                            description: >-
                              支付给交易应用的手续费，以 `platformFeeMint` 的基础单位计，字符串格式。未发现时为
                              `0`。
                            required: true
                          - name: platformFeeMint
                            type: &ref_11
                              - string
                              - 'null'
                            description: 支付平台手续费所用的 mint。
                            required: true
                          - name: platformFeeApp
                            type: &ref_12
                              - string
                              - 'null'
                            description: 收取平台手续费的应用，例如 `axiom` 或 `fomo`。未发现时为 null。
                            required: true
                          - name: totalUsd
                            type: &ref_13
                              - number
                              - 'null'
                            description: 网络手续费、小费和平台手续费的美元合计。以在此成交中没有价格的 mint 支付的平台手续费不计入。
                            required: true
                      - name: compute
                        type: object
                        required: true
                        properties:
                          - name: unitsConsumed
                            type: integer
                            description: 交易消耗的计算单元。
                            required: true
                          - name: unitLimit
                            type: &ref_14
                              - integer
                              - 'null'
                            description: 交易设置的计算单元上限。未设置时为 null。
                            required: true
                          - name: unitPriceMicroLamports
                            type: &ref_15
                              - integer
                              - 'null'
                            description: 计算单元价格（micro-lamports）。已支付优先费但价格未知时为 null。
                            required: true
                      - name: route
                        type: object
                        required: true
                        properties:
                          - name: programId
                            type: &ref_16
                              - string
                              - 'null'
                            description: '`program` 中程序的地址。'
                            required: true
                          - name: router
                            type: &ref_17
                              - string
                              - 'null'
                            description: 兑换经过的路由器（如有）。
                            required: true
                          - name: priceMint
                            type: &ref_18
                              - string
                              - 'null'
                            description: 推导成交价格所依据的 mint。
                            required: true
                          - name: instructionIndex
                            type: integer
                            description: 包含该兑换的顶层指令索引。
                            required: true
                          - name: txPrograms
                            type: array
                            description: 交易调用的所有程序。
                            required: true
                            properties:
                              - name: item
                                type: string
                                required: false
                  - name: tokens
                    type: object
                    description: '`trades` 中的每个 mint 各出现一次，以 mint 地址为键。'
                    required: true
                  - name: pools
                    type: object
                    description: '`trades` 中的池，以池地址为键。'
                    required: true
                  - name: wallets
                    type: object
                    description: '`trades` 中的已知钱包，以每笔成交的 `wallet` 字段为键。'
                    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: 房间中的新成交，格式与不含游标字段的 `/v2` 成交页相同。
              required:
                - trades
                - tokens
                - pools
                - wallets
              properties:
                trades:
                  type: array
                  items:
                    type: object
                    description: 一笔兑换。两种代币之间的成交是两笔成交：其中一个的买入和另一个的卖出。
                    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: 交易签名。未知时为 null。
                        x-parser-schema-id: <anonymous-schema-8>
                      slot:
                        type: integer
                        description: 区块的 slot。
                        x-parser-schema-id: <anonymous-schema-9>
                      txIndex:
                        type: integer
                        description: 交易在其区块中的位置。
                        x-parser-schema-id: <anonymous-schema-10>
                      swapIndex:
                        type: integer
                        description: 兑换在其交易中的位置。
                        x-parser-schema-id: <anonymous-schema-11>
                      time:
                        type: integer
                        description: >-
                          区块时间，Unix 毫秒。许多成交时间相同：请按 `slot`、`txIndex` 和
                          `swapIndex` 排序。
                        x-parser-schema-id: <anonymous-schema-12>
                      type:
                        type: string
                        description: '`token` 的买入或卖出。'
                        enum:
                          - buy
                          - sell
                        x-parser-schema-id: <anonymous-schema-13>
                      wallet:
                        type: string
                        description: 交易者：`owner`；当 owner 是程序金库时为 `feePayer`。
                        x-parser-schema-id: <anonymous-schema-14>
                      owner:
                        type: string
                        description: 代币余额发生变化的账户。
                        x-parser-schema-id: <anonymous-schema-15>
                      feePayer:
                        type: string
                        description: 签名并支付交易手续费的账户。在代付和路由成交中与 `owner` 不同。
                        x-parser-schema-id: <anonymous-schema-16>
                      token:
                        type: string
                        description: 所交易代币的 mint。其元数据在 `tokens` 中。
                        x-parser-schema-id: <anonymous-schema-17>
                      amount:
                        type: number
                        description: '`token` 的数量，以完整代币为单位。'
                        x-parser-schema-id: <anonymous-schema-18>
                      priceUsd:
                        type: *ref_2
                        description: 成交时 `token` 的美元价格。无法定价时为 null。
                        x-parser-schema-id: <anonymous-schema-19>
                      priceSol:
                        type: *ref_3
                        description: 成交时 `token` 的 SOL 价格。
                        x-parser-schema-id: <anonymous-schema-20>
                      marketCapUsd:
                        type: *ref_4
                        description: '`priceUsd` 乘以代币当前供应量。任一未知时为 null。'
                        x-parser-schema-id: <anonymous-schema-21>
                      quoteToken:
                        type: string
                        description: 兑换另一侧的 mint。其元数据在 `tokens` 中。
                        x-parser-schema-id: <anonymous-schema-22>
                      quoteAmount:
                        type: number
                        description: '`quoteToken` 的数量，以完整代币为单位。'
                        x-parser-schema-id: <anonymous-schema-23>
                      quotePriceUsd:
                        type: *ref_5
                        description: 成交时 `quoteToken` 的美元价格。
                        x-parser-schema-id: <anonymous-schema-24>
                      volumeUsd:
                        type: number
                        description: 成交的美元价值。无法定价时为 0。
                        x-parser-schema-id: <anonymous-schema-25>
                      volumeSol:
                        type: *ref_6
                        description: 成交的 SOL 价值。
                        x-parser-schema-id: <anonymous-schema-26>
                      solPriceUsd:
                        type: *ref_7
                        description: 成交时 SOL 的美元价格。
                        x-parser-schema-id: <anonymous-schema-27>
                      program:
                        type: string
                        description: 执行兑换的程序，例如 `pumpfun-amm`、`meteora-dlmm` 或 `jupiter`。
                        x-parser-schema-id: <anonymous-schema-28>
                      platform:
                        type: *ref_8
                        description: 成交所经过的交易应用，例如 `axiom`、`photon` 或 `gmgn`（已知时）。
                        x-parser-schema-id: <anonymous-schema-29>
                      pools:
                        type: array
                        items:
                          type: string
                          x-parser-schema-id: <anonymous-schema-31>
                        description: 兑换依次经过的池。
                        x-parser-schema-id: <anonymous-schema-30>
                      roundTrip:
                        type: boolean
                        description: 同一交易还在同一池中反向交易了该代币。
                        x-parser-schema-id: <anonymous-schema-32>
                      relayed:
                        type: boolean
                        description: 交易手续费由 `owner` 以外的账户支付。
                        x-parser-schema-id: <anonymous-schema-33>
                      priceEstimated:
                        type: boolean
                        description: 通过另一代币的美元价格定价，而非通过 SOL 或稳定币一侧，因此精度较低。
                        x-parser-schema-id: <anonymous-schema-34>
                      noPool:
                        type: boolean
                        description: 无法识别池。`pools` 可能为空。
                        x-parser-schema-id: <anonymous-schema-35>
                      transferFee:
                        type: boolean
                        description: 此次兑换预扣了 Token-2022 转账手续费。
                        x-parser-schema-id: <anonymous-schema-36>
                      from: &ref_9
                        type: object
                        description: 兑换的一侧，含精确数量。
                        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: 以完整代币为单位。
                            x-parser-schema-id: <anonymous-schema-39>
                          amountRaw:
                            type: string
                            description: 以基础单位计，字符串格式。
                            x-parser-schema-id: <anonymous-schema-40>
                          priceUsd:
                            type: *ref_0
                            description: 成交时该 mint 的美元价格。没有价格时为 null。
                            x-parser-schema-id: <anonymous-schema-41>
                          residualRaw:
                            type: string
                            description: 同一交易中该 mint 在兑换之外的其他变动，例如租金、小费或平台手续费。以基础单位计，字符串格式。
                            x-parser-schema-id: <anonymous-schema-42>
                          walletChangeRaw:
                            type: string
                            description: >-
                              owner 在整笔交易中该 mint 的余额变化，在 `from`
                              上为负。包含租金和小费，不含网络手续费。对于 SOL，lamports 与 wrapped SOL
                              合并计算。以基础单位计，字符串格式。
                            x-parser-schema-id: <anonymous-schema-43>
                        x-parser-schema-id: TradeLegV2
                      to: *ref_9
                      fees:
                        type: object
                        description: 交易的费用。
                        required:
                          - txLamports
                          - priorityLamports
                          - signatures
                          - tipLamports
                          - tipService
                          - platformFeeRaw
                          - platformFeeMint
                          - platformFeeApp
                          - totalUsd
                        properties:
                          txLamports:
                            type: integer
                            description: 网络手续费（lamports），含优先费。
                            x-parser-schema-id: <anonymous-schema-44>
                          priorityLamports:
                            type: integer
                            description: 优先费（lamports）。
                            x-parser-schema-id: <anonymous-schema-45>
                          signatures:
                            type: integer
                            description: 交易上的签名数量。
                            x-parser-schema-id: <anonymous-schema-46>
                          tipLamports:
                            type: integer
                            description: 支付给落地服务的小费（lamports）。
                            x-parser-schema-id: <anonymous-schema-47>
                          tipService:
                            type: *ref_10
                            description: 收取小费的落地服务，例如 `jito` 或 `helius-sender`。
                            x-parser-schema-id: <anonymous-schema-48>
                          platformFeeRaw:
                            type: string
                            description: >-
                              支付给交易应用的手续费，以 `platformFeeMint` 的基础单位计，字符串格式。未发现时为
                              `0`。
                            x-parser-schema-id: <anonymous-schema-49>
                          platformFeeMint:
                            type: *ref_11
                            description: 支付平台手续费所用的 mint。
                            x-parser-schema-id: <anonymous-schema-50>
                          platformFeeApp:
                            type: *ref_12
                            description: 收取平台手续费的应用，例如 `axiom` 或 `fomo`。未发现时为 null。
                            x-parser-schema-id: <anonymous-schema-51>
                          totalUsd:
                            type: *ref_13
                            description: 网络手续费、小费和平台手续费的美元合计。以在此成交中没有价格的 mint 支付的平台手续费不计入。
                            x-parser-schema-id: <anonymous-schema-52>
                        x-parser-schema-id: TradeFeesV2
                      compute:
                        type: object
                        required:
                          - unitsConsumed
                          - unitLimit
                          - unitPriceMicroLamports
                        properties:
                          unitsConsumed:
                            type: integer
                            description: 交易消耗的计算单元。
                            x-parser-schema-id: <anonymous-schema-53>
                          unitLimit:
                            type: *ref_14
                            description: 交易设置的计算单元上限。未设置时为 null。
                            x-parser-schema-id: <anonymous-schema-54>
                          unitPriceMicroLamports:
                            type: *ref_15
                            description: 计算单元价格（micro-lamports）。已支付优先费但价格未知时为 null。
                            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: '`program` 中程序的地址。'
                            x-parser-schema-id: <anonymous-schema-56>
                          router:
                            type: *ref_17
                            description: 兑换经过的路由器（如有）。
                            x-parser-schema-id: <anonymous-schema-57>
                          priceMint:
                            type: *ref_18
                            description: 推导成交价格所依据的 mint。
                            x-parser-schema-id: <anonymous-schema-58>
                          instructionIndex:
                            type: integer
                            description: 包含该兑换的顶层指令索引。
                            x-parser-schema-id: <anonymous-schema-59>
                          txPrograms:
                            type: array
                            items:
                              type: string
                              x-parser-schema-id: <anonymous-schema-61>
                            description: 交易调用的所有程序。
                            x-parser-schema-id: <anonymous-schema-60>
                        x-parser-schema-id: TradeRouteV2
                    x-parser-schema-id: TradeV2
                  description: 最新的在前。
                  x-parser-schema-id: <anonymous-schema-7>
                tokens:
                  type: object
                  additionalProperties:
                    type: object
                    description: 代币元数据，为请求时的当前值。
                    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: 当前供应量，以完整代币为单位。
                        x-parser-schema-id: <anonymous-schema-67>
                      uri:
                        type:
                          - string
                          - 'null'
                        description: 元数据 URI。
                        x-parser-schema-id: <anonymous-schema-68>
                      description:
                        type:
                          - string
                          - 'null'
                        description: 最多 2,000 个字符。
                        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: '`trades` 中的每个 mint 各出现一次，以 mint 地址为键。'
                  x-parser-schema-id: <anonymous-schema-62>
                pools:
                  type: object
                  additionalProperties:
                    type: object
                    description: 池的当前状态，而非成交时的状态。
                    required:
                      - market
                      - tokenAddress
                      - quoteToken
                      - liquidityUsd
                      - lpBurn
                      - createdAt
                    properties:
                      market:
                        type:
                          - string
                          - 'null'
                        description: 池所在的 DEX。
                        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: 已销毁 LP 代币的百分比。
                        x-parser-schema-id: <anonymous-schema-80>
                      createdAt:
                        type:
                          - integer
                          - 'null'
                        description: Unix 毫秒。
                        x-parser-schema-id: <anonymous-schema-81>
                    x-parser-schema-id: TradePoolV2
                  description: '`trades` 中的池，以池地址为键。'
                  x-parser-schema-id: <anonymous-schema-75>
                wallets:
                  type: object
                  additionalProperties:
                    type: object
                    description: >-
                      关于钱包的已知信息：KOL 资料、交易平台、开发者或池标签、机器人以及 SNS
                      名称。只返回已知字段。标签为当前值，而非成交时的快照。
                    properties:
                      type:
                        type: string
                        description: 用于单徽章界面的主标签，例如 `kol`、`bot`、`pool`、`developer` 或平台标签。
                        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 时间戳（秒）。
                            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: 中心化交易所热钱包标签（已知时）。
                        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: 人工整理的漏洞利用/诈骗钱包标签（已知时）。
                        properties:
                          label:
                            type:
                              - string
                              - 'null'
                            x-parser-schema-id: <anonymous-schema-112>
                        x-parser-schema-id: <anonymous-schema-111>
                      spamDusting:
                        type: object
                        description: 人工整理的垃圾粉尘攻击钱包标签（已知时）。
                        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: '`trades` 中的已知钱包，以每笔成交的 `wallet` 字段为键。'
                  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 密钥。将 Datastream 密钥放在连接 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.