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

# 代幣 - 流動性快照

> 取得代幣的歷史流動性快照。如果提供了時間參數，將回傳該時間點之前或當時最近的快照



## OpenAPI

````yaml /zh-Hant/api-reference/openapi-data-zh-Hant.yaml GET /v2/token/{chain}/{tokenAddress}/liquiditySnapshots
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}/liquiditySnapshots:
    get:
      tags:
        - Token
      summary: 代幣 - 流動性快照
      description: 取得代幣的歷史流動性快照。如果提供了時間參數，將回傳該時間點之前或當時最近的快照
      operationId: get.token.liquidity.snapshots
      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: 113FvWQTBC7CXtgSvzfxRSedwVkLbmD8WfAjFrbpump
        - name: cursor
          in: query
          description: 分頁游標
          required: false
          schema:
            type: string
          example: eyJpZCI6IjEyMyJ9
        - name: limit
          in: query
          description: 每頁回傳結果數量
          required: false
          schema:
            type: integer
            format: int64
            default: 20
          example: 20
        - name: direction
          in: query
          description: 分頁方向（next 或 prev）
          required: false
          schema:
            oneOf:
              - $ref: '#/components/schemas/PageDirection'
            default: next
          example: next
        - name: time
          in: query
          description: 流動性快照查詢的目標 Unix 時間戳
          required: false
          schema:
            type: integer
            format: int64
          example: 1770336000000
      responses:
        '200':
          description: 取得流動性快照
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PageResponse_TokenLiquiditySnapshot'
components:
  schemas:
    ChainSymbol:
      type: string
      description: Supported blockchain chains
      enum:
        - sol
        - eth
        - bsc
    PageDirection:
      type: string
      description: Pagination direction
      enum:
        - next
        - prev
    PageResponse_TokenLiquiditySnapshot:
      type: object
      description: Generic pagination response
      required:
        - data
      properties:
        data:
          type: array
          items:
            type: object
            description: Token liquidity snapshot
            required:
              - snapshotTime
              - maxLiquidityPoolAddress
              - maxLiquidityInUsd
              - maxLiquidityInNative
              - totalLiquidityInUsd
              - totalLiquidityInNative
              - poolCount
              - priceUsd
              - priceNative
              - calculatedAt
            properties:
              calculatedAt:
                type: integer
                format: int64
                description: 快照計算時間戳（毫秒）
                example: 1705312800000
              maxLiquidityInNative:
                type: string
                description: 最大池子流動性（原生代幣計）
                example: '5000.123'
              maxLiquidityInUsd:
                type: string
                description: 最大池子流動性（USD 計）
                example: '1000000.45'
              maxLiquidityPoolAddress:
                type: string
                description: 最大流動性池子地址
                example: 58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2
              poolCount:
                type: integer
                format: int64
                description: 活躍流動性池數量
                example: 5
              priceNative:
                type: string
                description: 快照時代幣價格（原生代幣計）
                example: '0.005'
              priceUsd:
                type: string
                description: 快照時代幣價格（USD 計）
                example: '1.0001'
              snapshotTime:
                type: integer
                format: int64
                description: 快照時間戳（毫秒）
                example: 1705312800000
              totalLiquidityInNative:
                type: string
                description: 所有池子總流動性（原生代幣計）
                example: '10000.246'
              totalLiquidityInUsd:
                type: string
                description: 所有池子總流動性（USD 計）
                example: '2000000.90'
          description: Page data
        endCursor:
          type:
            - string
            - 'null'
          description: Cursor for the end of current page
          example: eyJpZCI6ImVuZCJ9
        hasNext:
          type: boolean
          description: Whether there is a next page
          example: false
        hasPrev:
          type: boolean
          description: Whether there is a previous page
          example: false
        startCursor:
          type:
            - string
            - 'null'
          description: Cursor for the start of current page
          example: eyJpZCI6InN0YXJ0In0=
        total:
          type:
            - integer
            - 'null'
          format: int64
          description: >-
            Total number of items matching the query (not just the current
            page).

            When `None`, the caller should treat it as unknown
            (backward-compatible).
          example: 564094
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    api_key_auth:
      type: apiKey
      in: header
      name: X-API-KEY

````