{"uid":"cap_3ToO7yxD4DB2ydSXOQIYY","slug":"amm-v3-amount-in-range-lite-fa489534","name":"AMM V3 Amount In Range Lite","description":"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.","url":"https://api.delx.ai/api/v1/x402/amm-v3-amount-in-range","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":{"type":"json","example":{"note":"cpmm_lite_not_full_v3","schema":"delx/util-amm-v3-amount-in-range/v1","amount_out":19.8019801980198}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zDxy4x5XBSTIEbMhdOp86","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Pre-trade slippage estimation for LP","prompt":"I'm about to swap 1000 USDC into ETH in a concentrated liquidity pool that has 500000 USDC in reserve and 250 ETH in reserve — can you estimate how much ETH I'd get back using offline V3 constant-product math?"},{"title":"Backtesting concentrated LP strategy","prompt":"For my backtest, calculate the approximate swap output if I put in 200 units with a pool reserve_in of 80000 and reserve_out of 160000, assuming price doesn't leave the liquidity range."},{"title":"Comparing swap sizes for position sizing","prompt":"I'm sizing a trade and need to compare outcomes: estimate the amount_out for swapping 50, 100, and 250 tokens into a pool with 10000 reserve_in and 20000 reserve_out using your V3 in-range constant-product formula."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:50.531Z","isFirstParty":false}