> ## 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>
  取得該代幣在所有支援 DEX 上的流動性池。回傳池地址、儲備量及以 USD 計價的流動性。
</Note>

**相關**: [GraphQL 流動性池](/zh-Hant/graphql/examples/pools-liquidity) | MCP: `token_get_pools`


## OpenAPI

````yaml /zh-Hant/api-reference/openapi-data-zh-Hant.yaml GET /v2/token/{chain}/{tokenAddress}/pools
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}/pools:
    get:
      tags:
        - Token
      summary: 代幣 - 池子
      description: 取得包含該代幣的所有池子
      operationId: get.pools
      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
        - 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: sortBy
          in: query
          description: 排序欄位（tvlInSol 或 tvlInUsd）
          required: false
          schema:
            oneOf:
              - $ref: '#/components/schemas/PoolSortField'
            default: tvlInUsd
          example: tvlInUsd
        - name: sortDirection
          in: query
          description: 排序方向（asc 或 desc）
          required: false
          schema:
            oneOf:
              - $ref: '#/components/schemas/SortDirection'
            default: desc
          example: desc
        - name: minTvlInSol
          in: query
          description: 最小 TVL（SOL 計）
          required: false
          schema:
            type: string
          example: '100'
        - name: maxTvlInSol
          in: query
          description: 最大 TVL（SOL 計）
          required: false
          schema:
            type: string
          example: '10000'
        - name: minTvlInUsd
          in: query
          description: 最小 TVL（USD 計）
          required: false
          schema:
            type: string
          example: '1000'
        - name: maxTvlInUsd
          in: query
          description: 最大 TVL（USD 計）
          required: false
          schema:
            type: string
          example: '100000'
      responses:
        '200':
          description: 取得池子
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PageResponse_DexPool'
components:
  schemas:
    ChainSymbol:
      type: string
      description: Supported blockchain chains
      enum:
        - sol
        - eth
        - bsc
    PageDirection:
      type: string
      description: Pagination direction
      enum:
        - next
        - prev
    PoolSortField:
      type: string
      description: Pool sort field
      enum:
        - tvlInSol
        - tvlInUsd
    SortDirection:
      type: string
      description: 'Sort direction (case-insensitive: accepts "asc"/"ASC"/"Asc" etc.)'
      enum:
        - asc
        - desc
    PageResponse_DexPool:
      type: object
      description: Generic pagination response
      required:
        - data
      properties:
        data:
          type: array
          items:
            type: object
            description: DexPool
            required:
              - poolAddress
              - chain
              - tokenAAddress
              - tokenBAddress
            properties:
              chain:
                type: string
                description: Chain
                example: sol
              createdBlockTimestamp:
                type:
                  - string
                  - 'null'
                description: Creation block timestamp
              creatorAddress:
                type:
                  - string
                  - 'null'
                description: Pool creator / initialize signer
              factoryAddress:
                type:
                  - string
                  - 'null'
                description: Factory contract address
              feeRate:
                type:
                  - string
                  - 'null'
                description: Fee rate
              image:
                type:
                  - string
                  - 'null'
                description: Image URL
              initialTvlInNative:
                type:
                  - string
                  - 'null'
                description: Initial TVL in native token
              initialTvlInUsd:
                type:
                  - string
                  - 'null'
                description: Initial TVL in USD
              liquidityModel:
                type:
                  - integer
                  - 'null'
                format: int32
                description: Liquidity model
                minimum: 0
              poolAddress:
                type: string
                description: Pool address
                example: 58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2
              programAddress:
                type:
                  - string
                  - 'null'
                description: DEX program address
                example: 675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8
              protocolFamily:
                type:
                  - string
                  - 'null'
                description: Protocol family
                example: raydium
              protocolName:
                type:
                  - string
                  - 'null'
                description: Protocol name
              tickSpacing:
                type:
                  - integer
                  - 'null'
                format: int64
                description: Tick spacing
              tokenAAddress:
                type: string
                description: Token A address
                example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
              tokenALiquidity:
                oneOf:
                  - type: 'null'
                  - $ref: '#/components/schemas/DexPoolTokenLiquidity'
                    description: Token A liquidity
              tokenBAddress:
                type: string
                description: Token B address
                example: So11111111111111111111111111111111111111112
              tokenBLiquidity:
                oneOf:
                  - type: 'null'
                  - $ref: '#/components/schemas/DexPoolTokenLiquidity'
                    description: Token B liquidity
              tokenCount:
                type:
                  - integer
                  - 'null'
                format: int32
                description: Token count
              tvlInSol:
                type:
                  - string
                  - 'null'
                description: TVL in native token
                example: '1000000.45'
              tvlInUsd:
                type:
                  - string
                  - 'null'
                description: TVL in USD
                example: '1000000.45'
              type:
                type:
                  - integer
                  - 'null'
                format: int32
                description: Pool type
                minimum: 0
              version:
                type:
                  - integer
                  - 'null'
                format: int32
                description: Pool version
                minimum: 0
          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
    DexPoolTokenLiquidity:
      type: object
      description: DexPool token liquidity
      required:
        - tokenAddress
        - decimals
        - vaultAmount
        - amountInUsd
        - amountInNative
        - priceUsd
        - priceNative
      properties:
        amountInNative:
          type: string
          description: Amount in native token
          example: '5000.123'
        amountInUsd:
          type: string
          description: Amount in USD
          example: '1000000.45'
        decimals:
          type: integer
          format: int32
          description: Token decimals
          example: 6
        initialAmountInNative:
          type:
            - string
            - 'null'
          description: Initial amount in native token
        initialAmountInUsd:
          type:
            - string
            - 'null'
          description: Initial amount in USD
        initialVaultAmount:
          type:
            - string
            - 'null'
          description: Initial vault amount
        priceNative:
          type: string
          description: Price in native token
          example: '0.005'
        priceUsd:
          type: string
          description: Price in USD
          example: '1.0001'
        tokenAddress:
          type: string
          description: Token address
          example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
        vaultAddress:
          type:
            - string
            - 'null'
          description: Vault address
        vaultAmount:
          type: string
          description: Vault amount
          example: '1000000000000'
        vaultOwnerAddress:
          type:
            - string
            - 'null'
          description: Vault owner address
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    api_key_auth:
      type: apiKey
      in: header
      name: X-API-KEY

````