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

# Current Uniswap reserves

> Returns the latest known token reserves for a Uniswap pool.

```bash theme={null}
curl "https://staging-api.struct.to/v1/uniswap/pools/{pool}/reserves?chain=base&chain_id=8453&protocol=v4&fields=short" \
  -H "X-API-Key: YOUR_API_KEY"
```

```json Response (Long) theme={null}
{
  "pool_id": "0x1111111111111111111111111111111111111111111111111111111111111111",
  "block": 22100000,
  "reserves": {
    "reserve0": "934064700000000000000",
    "reserve1": "2322765870000",
    "reserve0_decimal": "934.0647",
    "reserve1_decimal": "2322765.87",
    "reserve0_usd": "2310871.22",
    "reserve1_usd": "2322765.87",
    "reserves_usd": "4633637.09",
    "currency0_decimals": 18,
    "currency1_decimals": 6,
    "currency0_price_usd": "2474.05",
    "currency1_price_usd": "1.00"
  }
}
```

```jsonc Response (Short) theme={null}
{
  "p": "0x1111111111111111111111111111111111111111111111111111111111111111",
  "b": 22100000,
  "r": {
    "r0": "934064700000000000000",
    "r1": "2322765870000",
    "d0": "934.0647",
    "d1": "2322765.87",
    "u0": "2310871.22",
    "u1": "2322765.87",
    "ru": "4633637.09",
    "c0": 18,
    "c1": 6,
    "p0": "2474.05",
    "p1": "1.00"
  }
}
```


## OpenAPI

````yaml onchain-openapi.json GET /uniswap/pools/{pool}/reserves
openapi: 3.1.0
info:
  title: Struct On-chain API
  description: >-
    RESTful API for token market data, discovery, holders, audits, and trader
    analytics across supported chains. Pass `fields=short` or header
    `x-field-names: short` for abbreviated keys. HTTP defaults to `long`. Token
    candlesticks, token trades and wallet batch trades also support
    `fields=array` for typed positional rows.
  version: 1.0.0
servers:
  - url: https://staging-api.struct.to/v1
    description: Staging
security:
  - ApiKey: []
paths:
  /uniswap/pools/{pool}/reserves:
    get:
      tags:
        - Uniswap
      summary: Current Uniswap reserves
      description: Returns the latest known token reserves for a Uniswap pool.
      operationId: get_uniswap_pool_reserves
      parameters:
        - name: chain
          in: query
          description: Chain name. Required unless `chain_id` is provided.
          required: false
          schema:
            type: string
          example: base
        - name: chain_id
          in: query
          description: Chain id. Required unless `chain` is provided. Use `-1` for Solana.
          required: false
          schema:
            type: integer
            format: int64
          example: 8453
        - name: pool
          in: path
          description: 'Pool identifier: a Uniswap V3 pool address or a 32-byte V4 pool id.'
          required: true
          schema:
            type: string
        - name: protocol
          in: query
          description: 'Uniswap version: v3 or v4. Omit to infer from the pool identifier.'
          required: false
          schema:
            $ref: '#/components/schemas/UniswapProtocol'
          example: v4
        - name: x-field-names
          in: header
          required: false
          description: >-
            Select long (full) or short (abbreviated) field names. HTTP defaults
            to `long`. Takes precedence over `fields`. See [Response
            Format](/api-reference/response-format#long-and-short-field-names).
          schema:
            type: string
            enum:
              - long
              - short
            default: long
          example: short
        - name: fields
          in: query
          required: false
          description: >-
            Same as `x-field-names`. Use `long` or `short`. HTTP defaults to
            `long`. Ignored when the header is set. `field_names` is accepted as
            an alias.
          schema:
            type: string
            enum:
              - long
              - short
            default: long
          example: short
      responses:
        '200':
          description: Current Uniswap pool reserves
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V4ReserveResponse'
              examples:
                long:
                  summary: Response (Long)
                  value:
                    pool_id: >-
                      0x1111111111111111111111111111111111111111111111111111111111111111
                    block: 22100000
                    reserves:
                      reserve0: '934064700000000000000'
                      reserve1: '2322765870000'
                      reserve0_decimal: '934.0647'
                      reserve1_decimal: '2322765.87'
                      reserve0_usd: '2310871.22'
                      reserve1_usd: '2322765.87'
                      reserves_usd: '4633637.09'
                      currency0_decimals: 18
                      currency1_decimals: 6
                      currency0_price_usd: '2474.05'
                      currency1_price_usd: '1.00'
                short:
                  summary: Response (Short)
                  value:
                    p: >-
                      0x1111111111111111111111111111111111111111111111111111111111111111
                    b: 22100000
                    r:
                      r0: '934064700000000000000'
                      r1: '2322765870000'
                      d0: '934.0647'
                      d1: '2322765.87'
                      u0: '2310871.22'
                      u1: '2322765.87'
                      ru: '4633637.09'
                      c0: 18
                      c1: 6
                      p0: '2474.05'
                      p1: '1.00'
        '400':
          description: Validation error, usually invalid chain or pool.
        '503':
          description: Uniswap data is unavailable for the requested chain.
components:
  schemas:
    UniswapProtocol:
      type: string
      description: 'Uniswap version: v3 or v4.'
      enum:
        - v3
        - v4
    V4ReserveResponse:
      type: object
      properties:
        pool_id:
          type:
            - string
            - 'null'
        block:
          type:
            - integer
            - 'null'
          format: int64
          minimum: 0
        reserves:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/V4ReserveData'
    V4ReserveData:
      type: object
      required:
        - reserve0
        - reserve1
      properties:
        reserve0:
          type: string
        reserve1:
          type: string
        reserve0_decimal:
          type:
            - string
            - 'null'
        reserve1_decimal:
          type:
            - string
            - 'null'
        reserve0_usd:
          type:
            - string
            - 'null'
        reserve1_usd:
          type:
            - string
            - 'null'
        reserves_usd:
          type:
            - string
            - 'null'
        currency0_decimals:
          type:
            - integer
            - 'null'
          format: int32
          minimum: 0
        currency1_decimals:
          type:
            - integer
            - 'null'
          format: int32
          minimum: 0
        currency0_price_usd:
          type:
            - string
            - 'null'
        currency1_price_usd:
          type:
            - string
            - 'null'
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: Secret API key (`sk_*`) or JWT public key (`pk_jwt_*`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.