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

# DEX プール - 流動性スナップショット

> 特定のプールの過去の流動性スナップショットを取得。時間パラメータが指定された場合、その時刻以前の最も近いスナップショットを返します



## OpenAPI

````yaml /jp/api-reference/openapi-data-jp.yaml GET /v2/dexpools/{chain}/{poolAddress}/snapshots
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/dexpools/{chain}/{poolAddress}/snapshots:
    get:
      tags:
        - DexPool
      summary: DEX プール - 流動性スナップショット
      description: 特定のプールの過去の流動性スナップショットを取得。時間パラメータが指定された場合、その時刻以前の最も近いスナップショットを返します
      operationId: get.dexpool.snapshots
      parameters:
        - name: chain
          in: path
          description: サポートされているネットワークに記載されているチェーン名
          required: true
          schema:
            $ref: '#/components/schemas/ChainSymbol'
          example: sol
        - name: poolAddress
          in: path
          description: プールアドレス
          required: true
          schema:
            type: string
          example: 58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2
        - 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: 1705312800000
      responses:
        '200':
          description: 成功レスポンス
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PageResponse_DexPoolSnapshot'
components:
  schemas:
    ChainSymbol:
      type: string
      description: Supported blockchain chains
      enum:
        - sol
        - eth
        - bsc
    PageDirection:
      type: string
      description: Pagination direction
      enum:
        - next
        - prev
    PageResponse_DexPoolSnapshot:
      type: object
      description: Generic pagination response
      required:
        - data
      properties:
        data:
          type: array
          items:
            type: object
            description: DexPool liquidity snapshot
            required:
              - poolAddress
              - snapshotTime
              - tvlInUsd
              - tvlInNative
              - tokenA
              - tokenB
              - blockHeight
              - blockTimestamp
            properties:
              blockHeight:
                type: integer
                format: int64
                description: Block height
              blockSlot:
                type:
                  - integer
                  - 'null'
                format: int64
                description: Block slot (optional)
              blockTimestamp:
                type: integer
                format: int64
                description: Block timestamp (ms)
              poolAddress:
                type: string
                description: Pool address
              snapshotTime:
                type: integer
                format: int64
                description: Snapshot timestamp (ms)
              tokenA:
                $ref: '#/components/schemas/DexPoolTokenSnapshot'
                description: Token A snapshot
              tokenB:
                $ref: '#/components/schemas/DexPoolTokenSnapshot'
                description: Token B snapshot
              tvlInNative:
                type: string
                description: TVL in native token
              tvlInUsd:
                type: string
                description: TVL in USD
            example:
              blockHeight: 123456789
              blockSlot: 123456789
              blockTimestamp: 1705312800000
              poolAddress: 58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2
              snapshotTime: 1705312800000
              tokenA:
                amountInNative: '5000.123'
                amountInUsd: '1000000.45'
                decimals: 6
                priceNative: '0.005'
                priceUsd: '1.0001'
                tokenAddress: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
                vaultAmount: '1000000000000'
              tokenB:
                amountInNative: '5000.123'
                amountInUsd: '1000000.45'
                decimals: 6
                priceNative: '0.005'
                priceUsd: '1.0001'
                tokenAddress: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
                vaultAmount: '1000000000000'
              tvlInNative: '5000'
              tvlInUsd: '1000000.45'
          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
    DexPoolTokenSnapshot:
      type: object
      description: DexPool token snapshot
      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
        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
        vaultAmount:
          type: string
          description: Vault amount
          example: '1000000000000'
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    api_key_auth:
      type: apiKey
      in: header
      name: X-API-KEY

````