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

# 代币 - 统计

> 获取代币统计数据

<Note>
  获取代币的聚合交易统计数据，包括多个时间窗口内的交易量、交易笔数、独立交易者数量及价格变化。
</Note>

**相关**: [GraphQL OHLC 与统计](/cn/graphql/examples/ohlc-stats) | MCP: `token_get_stats`


## OpenAPI

````yaml /cn/api-reference/openapi-data-cn.yaml GET /v2/token/{chain}/{tokenAddress}/stats
openapi: 3.1.0
info:
  title: Services API
  description: Services API
  contact:
    name: AI
    email: ai@sx.ai
  license:
    name: MIT
  version: '1.0'
servers:
  - url: https://api.chainstream.io
    description: Production
security:
  - bearer_auth: []
  - api_key_auth: []
tags:
  - name: Blockchain
    description: 区块链相关操作
  - name: Token
    description: 代币相关操作
  - name: Trade
    description: 交易相关操作
  - name: Wallet
    description: 钱包相关操作
  - name: Dex
    description: DEX 相关操作
  - name: Ranking
    description: 排行榜相关操作
  - name: DexPool
    description: DEX 池子相关操作
  - name: Watchlist
    description: 关注列表相关操作
  - name: KYT
    description: KYT 相关操作
  - name: Webhook
    description: Webhook 相关操作
  - name: RedPacket
    description: 红包相关操作
  - name: IPFS
    description: IPFS 相关操作
  - name: DexScreener
    description: DexScreener 相关操作
paths:
  /v2/token/{chain}/{tokenAddress}/stats:
    get:
      tags:
        - Token
      summary: 代币 - 统计
      description: 获取代币统计数据
      operationId: get.stats
      parameters:
        - name: chain
          in: path
          description: 支持网络列表中的链名称
          required: true
          schema:
            $ref: '#/components/schemas/ChainSymbol'
          example: sol
        - name: tokenAddress
          in: path
          description: 代币地址
          required: true
          schema:
            type: string
          example: 6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN
      responses:
        '200':
          description: 获取统计
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenStats'
components:
  schemas:
    ChainSymbol:
      type: string
      description: Supported blockchain chains
      enum:
        - sol
        - eth
        - bsc
    TokenStats:
      type: object
      description: Token statistics with nested time period data
      required:
        - address
        - periods
      properties:
        address:
          type: string
          description: 代币合约地址
          example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
        periods:
          type: object
          description: >-
            Trade statistics grouped by time period (1m, 5m, 15m, 30m, 1h, 4h,
            6h, 24h).

            Each period contains full OHLCV data, trade counts, and
            previous-period comparisons.

            See `TokenTradeStatPeriod` schema for all fields.
          additionalProperties:
            $ref: '#/components/schemas/TokenTradeStatPeriod'
          propertyNames:
            type: string
          example:
            6h:
              buyVolumeInUsd: '12000.00'
              buyers: '120'
              buys: '420'
              closeInUsd: '0.15600000'
              currentLiquidityInUsd: '250000.00'
              highInUsd: '0.15900000'
              lowInUsd: '0.15100000'
              openInUsd: '0.15200000'
              priceChangeRatioInUsd: '0.02631579'
              sellVolumeInUsd: '9800.00'
              sellers: '95'
              sells: '360'
              totalVolumeInUsd: '21800.00'
              traders: '215'
              trades: '780'
    TokenTradeStatPeriod:
      type: object
      description: Single time window trade statistics period
      properties:
        averagePriceInNative:
          type: string
          description: 平均价格（原生代币计）
          example: '0.00005100'
        averagePriceInUsd:
          type: string
          description: 平均价格（USD 计）
          example: '0.15300000'
        buySellRatio:
          type:
            - string
            - 'null'
          description: 买卖比
          example: '1.5510'
        buyVolume:
          type: string
          description: 买入量（代币数量）
          example: '15000000.12345678'
        buyVolumeInNative:
          type: string
          description: 买入量（原生代币计）
          example: '750.50'
        buyVolumeInUsd:
          type: string
          description: 买入量（USD 计）
          example: '45000.00'
        buyers:
          type: string
          description: 独立买方数量
          example: '320'
        buys:
          type: string
          description: 买入交易次数
          example: '1520'
        closeInNative:
          type: string
          description: 收盘价（原生代币计）
          example: '0.00005200'
        closeInUsd:
          type: string
          description: 收盘价（USD 计）
          example: '0.15600000'
        currentLiquidityInUsd:
          type: string
          description: 当前流动性（USD 计）
          example: '250000.00'
        dappProgramCount:
          type: string
          description: DEX 程序数量
          example: '8'
        highInNative:
          type: string
          description: 最高价（原生代币计）
          example: '0.00005300'
        highInUsd:
          type: string
          description: 最高价（USD 计）
          example: '0.15900000'
        liquidityChangeRatio:
          type:
            - string
            - 'null'
          description: 流动性变化率（对比上一周期）
          example: '0.0417'
        lowInNative:
          type: string
          description: 最低价（原生代币计）
          example: '0.00005000'
        lowInUsd:
          type: string
          description: 最低价（USD 计）
          example: '0.15000000'
        openInNative:
          type: string
          description: 开盘价（原生代币计）
          example: '0.00005000'
        openInUsd:
          type: string
          description: 开盘价（USD 计）
          example: '0.15000000'
        poolCount:
          type: string
          description: 流动性池数量
          example: '12'
        prevBuyVolume:
          type: string
          description: 上一周期买入量（代币数量）
          example: '14000000.00'
        prevBuyVolumeInNative:
          type: string
          description: 上一周期买入量（原生代币计）
          example: '700.00'
        prevBuyVolumeInUsd:
          type: string
          description: 上一周期买入量（USD 计）
          example: '42000.00'
        prevBuyers:
          type: string
          description: 上一周期独立买方数量
          example: '300'
        prevBuys:
          type: string
          description: 上一周期买入次数
          example: '1400'
        prevCloseInNative:
          type: string
          description: 上一周期收盘价（原生代币计）
          example: '0.00005100'
        prevCloseInUsd:
          type: string
          description: 上一周期收盘价（USD 计）
          example: '0.15100000'
        prevDappProgramCount:
          type: string
          description: 上一周期 DEX 程序数量
          example: '7'
        prevHighInNative:
          type: string
          description: 上一周期最高价（原生代币计）
          example: '0.00005100'
        prevHighInUsd:
          type: string
          description: 上一周期最高价（USD 计）
          example: '0.15200000'
        prevLiquidityInUsd:
          type: string
          description: 上一周期流动性（USD 计）
          example: '240000.00'
        prevLowInNative:
          type: string
          description: 上一周期最低价（原生代币计）
          example: '0.00004800'
        prevLowInUsd:
          type: string
          description: 上一周期最低价（USD 计）
          example: '0.14500000'
        prevOpenInNative:
          type: string
          description: 上一周期开盘价（原生代币计）
          example: '0.00004900'
        prevOpenInUsd:
          type: string
          description: 上一周期开盘价（USD 计）
          example: '0.14800000'
        prevPoolCount:
          type: string
          description: 上一周期池数量
          example: '10'
        prevSellVolume:
          type: string
          description: 上一周期卖出量（代币数量）
          example: '11000000.00'
        prevSellVolumeInNative:
          type: string
          description: 上一周期卖出量（原生代币计）
          example: '550.00'
        prevSellVolumeInUsd:
          type: string
          description: 上一周期卖出量（USD 计）
          example: '33000.00'
        prevSellers:
          type: string
          description: 上一周期独立卖方数量
          example: '200'
        prevSells:
          type: string
          description: 上一周期卖出次数
          example: '900'
        prevTrades:
          type: string
          description: 上一周期总交易次数
          example: '2300'
        priceChangeRatioInUsd:
          type: string
          description: 价格变化率（USD 计）
          example: '0.04000000'
        sellVolume:
          type: string
          description: 卖出量（代币数量）
          example: '12000000.98765432'
        sellVolumeInNative:
          type: string
          description: 卖出量（原生代币计）
          example: '600.40'
        sellVolumeInUsd:
          type: string
          description: 卖出量（USD 计）
          example: '36000.00'
        sellers:
          type: string
          description: 独立卖方数量
          example: '210'
        sells:
          type: string
          description: 卖出交易次数
          example: '980'
        totalVolumeInNative:
          type: string
          description: 总交易量（原生代币计）
          example: '1350.90'
        totalVolumeInUsd:
          type: string
          description: 总交易量（USD 计）
          example: '81000.00'
        traders:
          type: string
          description: 独立交易者数量
          example: '530'
        trades:
          type: string
          description: 总交易次数
          example: '2500'
        updatedAt:
          type:
            - string
            - 'null'
          description: 最后更新时间戳
          example: '2026-02-09T08:05:12.345Z'
        volumeChangeRatio:
          type:
            - string
            - 'null'
          description: 交易量变化率（对比上一周期）
          example: '0.25'
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    api_key_auth:
      type: apiKey
      in: header
      name: X-API-KEY

````