# Delx AMM V3 Amount-In Range Calculator

> Delx AMM V3 Amount-In Range Calculator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Calculates the output token amount for a given input amount using AMM V3 constant-product market maker (CPMM) pool reserve data

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/amm-v3-amount-in-range?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-amm-v3-amount-in-range-calculator-b7b31972
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yxV1Q93N2l86W1rKTdA8j

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 delx-amm-v3-amount-in-range-calculator-b7b31972 -d '<json body>'
```

Example prompt: I want to swap 100 units of token A in a pool where the input reserve is 10000 and the output reserve is 20000 — can you calculate how many tokens I'd get out using the AMM V3 formula?

## When to prefer this

Use this endpoint when you need a fast, cheap, pay-per-call computation of AMM swap output amounts without setting up any infrastructure or accounts. It is ideal for AI agents performing pre-trade simulation, arbitrage sizing, or slippage estimation on V3-style liquidity pools. Note that it uses a CPMM lite approximation, not the full Uniswap V3 concentrated liquidity math, so prefer it for quick estimates rather than precision-critical execution decisions.

## Known failure modes

- Missing required fields (amount_in, reserve_in, reserve_out) result in an error response
- Zero or negative reserve values may cause division errors or undefined results
- Very large or very small amounts may lose precision due to floating point arithmetic
- Payment failure via x402 protocol results in 402 response and no computation

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with the computed output token amount (amount_out) based on the CPMM lite approximation of the V3 AMM formula, along with a schema identifier and a note clarifying the approximation method used (cpmm_lite_not_full_v3).

## 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/delx-amm-v3-amount-in-range-calculator-b7b31972/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
