# OP Mainnet AMM Pool Reserves & Live Pool State API

> OP Mainnet AMM Pool Reserves & Live Pool State API is a paid API for AI agents from x402.donnyautomation.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns raw AMM pool reserves, mid price, fee tier, and USD TVL for a token pair across SushiSwap and Uniswap v3 fee tiers on Optimism (OP Mainnet) at the current block.

## Facts

- Endpoint: GET https://x402.donnyautomation.com/optimism/reserves
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/op-mainnet-amm-pool-reserves-live-pool-state-api-592c14b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Bi8TafgcYFEYaheLrJ7E8

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability op-mainnet-amm-pool-reserves-live-pool-state-api-592c14b2
```

Example prompt: Pull the raw AMM pool reserves and live pool state for WETH/USDC across SushiSwap and Uniswap v3 fee tiers on OP Mainnet — I need the mid price, fee tiers in bps, and USD TVL per venue so I can compute my own slippage estimates.

## When to prefer this

Choose this endpoint when you need the raw underlying pool state on Optimism (OP Mainnet) specifically — reserve amounts, tick data, mid price, fee tier, and TVL — to perform your own quote, price impact, slippage, or arbitrage calculations. Prefer this over higher-level best-execution or price endpoints when you need the foundational on-chain numbers rather than a pre-computed recommendation. Use the sibling Arbitrum or Polygon reserves endpoints for those respective chains.

## Known failure modes

- Unsupported or unrecognized token pair symbol returns an error or empty result
- Pair with no liquidity on OP Mainnet returns empty venue list
- Malformed pair string (missing slash, wrong format) returns validation error
- Network congestion on Optimism may cause stale or delayed block data
- Token contract not deployed on OP Mainnet returns not-found error

## How this service works

Raw AMM pool state for a pair on OP Mainnet: v2 reserves and v3 concentrated liquidity across SushiSwap and Uniswap v3 fee tiers. Returns pools[] with venue, surface, feeBps, reserveA, reserveB, price and tvlUsd at a stated blockNumber. Requires ?pair=SYM/SYM (e.g. WETH/USDC). Errors: 400 bad_pair, 404 no_pools, 502 upstream_read_failed. For USD depth already computed use /liquidity. This is the underlying numbers. Chain-pinned; bare /reserves = BSC.

## Output

Returns per-venue pool data for the requested token pair on OP Mainnet including: token reserve amounts for both assets, pool mid price in quote terms, fee tier expressed in basis points, USD total value locked (TVL), pool type (constant-product or concentrated liquidity), and the block number at which the snapshot was taken — across SushiSwap and Uniswap v3 fee tiers (0.05%, 0.3%, 1%).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "pair"
     ],
     "properties": {
      "pair": {
       "type": "string",
       "description": "Token pair as SYM/SYM on OP Mainnet (e.g. WETH/USDC)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ts": "2026-07-31T00:00:00.000Z",
  "chainId": 10,
  "network": "optimism"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/op-mainnet-amm-pool-reserves-live-pool-state-api-592c14b2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.donnyautomation.com](https://www.zero.xyz/host/x402.donnyautomation.com/llms.txt)
