# AMM V3 Amount In Range Lite

> AMM V3 Amount In Range Lite is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Estimates the output amount for a concentrated liquidity (V3) AMM swap using constant-product math, assuming price stays within a specified range, without any on-chain calls.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/amm-v3-amount-in-range
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amm-v3-amount-in-range-lite-fa489534
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3ToO7yxD4DB2ydSXOQIYY

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 amm-v3-amount-in-range-lite-fa489534 -d '<json body>'
```

Example prompt: Estimate my swap output using constant-product V3 AMM math: I want to trade 500 tokens in, with a pool reserve_in of 100000 and reserve_out of 200000 — give me the approximate amount_out assuming price stays in range.

## When to prefer this

Choose this endpoint when you need a fast, deterministic, offline estimate of V3 concentrated liquidity swap output and have no need for live on-chain state or RPC access. It is ideal for pre-trade sizing, backtesting, or advisory UI displays where exactness is not critical and latency or RPC cost matters. Prefer alternatives (live on-chain quoters) when the trade is large relative to pool liquidity, when precision is critical for execution, or when price is likely to breach the assumed range.

## Known failure modes

- Missing required fields (amount_in, reserve_in, reserve_out) result in a validation error
- Zero or negative reserve values may produce undefined or infinite results
- If price actually moves out of range during the swap, the estimate will be inaccurate — the endpoint does not account for partial range fills
- Payment failure over x402 protocol results in no computation returned

## How this service works

Lite constant-product amount when price stays in a range. Call when estimating concentrated LP swaps without on-chain state. Returns amount_out approx and note as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a deterministic JSON object containing amount_out (the approximate output token quantity for the swap) and a note clarifying that the result is advisory only, computed purely from local constant-product math with no on-chain data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount_in": {
   "type": "number",
   "description": "Trade size in input asset units"
  },
  "reserve_in": {
   "type": "number",
   "description": "Pool reserve of input asset"
  },
  "reserve_out": {
   "type": "number",
   "description": "Pool reserve of output asset"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "cpmm_lite_not_full_v3",
  "schema": "delx/util-amm-v3-amount-in-range/v1",
  "amount_out": 19.8019801980198
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amm-v3-amount-in-range-lite-fa489534/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
