{"uid":"cap_yxV1Q93N2l86W1rKTdA8j","slug":"delx-amm-v3-amount-in-range-calculator-b7b31972","name":"Delx AMM V3 Amount-In Range Calculator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/amm-v3-amount-in-range?utm_source=zero.xyz","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_odk4tHytnU7tQNtXrGT0S","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":"Calculates the output token amount for a given input amount using AMM V3 constant-product market maker (CPMM) pool reserve data","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Pre-trade swap output estimation","prompt":"Before I execute a swap, can you tell me how much USDC I'd get out if I put in 500 units of ETH, given the pool has 80000 ETH in reserve and 160000 USDC in reserve?"},{"title":"Slippage impact analysis for large trade","prompt":"I'm thinking of trading 5000 units into a pool with 50000 input reserve and 50000 output reserve — can you compute the output amount so I can see how much slippage I'm taking?"},{"title":"Arbitrage opportunity sizing","prompt":"There's a V3 pool with 12000 input tokens and 9500 output tokens in reserve. If I put in 300 input tokens, what's my expected output so I can check if this arbitrage is profitable?"}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:29:35.353Z","isFirstParty":false,"canonicalSlug":"delx-amm-v3-amount-in-range-calculator-b7b31972"}