{"uid":"cap_CGfEwlUutMuSOZPo6BobT","slug":"dex-depth-slippage-calculator-77e5ae2d","name":"DEX Depth & Slippage Calculator","description":"Estimated output, price impact and minimum output for a swap in one DEX pair, using the pair's reserves from DexScreener and a constant-product (x*y=k) model with a fee. Exact for constant-product pools (for example Aerodrome volatile pools, Uniswap V2 style); for concentrated-liquidity pools (labelled v3 or v4) it is only an approximation. Raydium is not covered.","url":"https://api.fadeandco.workers.dev/api/agent-intel/dex-depth-slippage-calculator?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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","amount"],"properties":{"pair":{"type":"string","description":"Pair (pool) address"},"side":{"type":"string","description":"sell = you give the base token; buy = you give the quote token (default sell)"},"chain":{"type":"string","description":"DexScreener chain name, e.g. base, ethereum, arbitrum (default base)"},"amount":{"type":"string","description":"Amount you give, in that token's units (positive number)"},"feePct":{"type":"string","description":"Pool fee in percent, 0 to 5 (default 0.3)"},"slippagePct":{"type":"string","description":"Your tolerance in percent, 0 to 50 (default 0.5)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"dex":"aerodrome","pair":"0x6cdcb1c4a4d1c3c6d054b27ac5b77e89eafb971d","side":"sell","chain":"base","model":"constant-product x*y=k (exact for V2-style pools)","feePct":0.3,"source":"https://api.dexscreener.com/latest/dex/pairs/base/0x6cdcb1c4a4d1c3c6d054b27ac5b77e89eafb971d","spotOut":784.33261888,"amountIn":1000,"reserves":{"base":7324900,"quote":5745158},"checkedAt":"2026-10-23T09:35:18.273Z","baseSymbol":"AERO","quoteSymbol":"USDC","slippagePct":0.5,"estimatedOut":781.87319942,"priceImpactPct":0.3136,"minOutAtSlippage":777.96383342}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EUhZE7YaW5F3S24_ivJ0t","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates estimated output, price impact, and minimum output for a token swap on a single DEX pair using constant-product (x*y=k) math with reserves fetched from DexScreener.","exampleAgentPrompt":"Using the constant-product slippage calculator, estimate how much USDC I'd get selling 1000 AERO on the Aerodrome pool at 0x6cdcb1c4a4d1c3c6d054b27ac5b77e89eafb971d on Base, with a 0.3% fee and 0.5% slippage tolerance.","exampleUseCases":[{"title":"Pre-trade slippage check for large DeFi swap","prompt":"Before I buy 50,000 USDC worth of tokens on that Aerodrome pool on Base (address 0x6cdcb1c4a4d1c3c6d054b27ac5b77e89eafb971d), can you estimate the price impact and how much I'd actually receive? Use a 0.3% fee and 1% slippage tolerance."},{"title":"Arbitrage profitability screening","prompt":"I'm looking at arbitrage on an Ethereum Uniswap V2 pool at 0xabc123...def. If I sell 5000 of the base token, what's the estimated output, price impact, and minimum I'd receive with 0.1% slippage? Fee is 0.3%."},{"title":"Automated DeFi bot trade sizing","prompt":"My trading bot needs to know: if it sells 200 tokens into the Arbitrum pool 0xdeadbeef...cafe with a 0.05% fee and 0.25% slippage, what's the estimated output and minimum guaranteed amount using the x*y=k model?"}],"resultDescription":"Returns a JSON object with: DEX name, pair address, chain, trade side, AMM model description, fee percentage, slippage tolerance, amount in, spot output (no fee/impact), estimated output after fee and price impact, price impact percentage, minimum output at the specified slippage, base and quote token symbols, pool reserves, data source URL, and timestamp.","failureModes":["Pair address not found on DexScreener — returns error or empty reserves","Concentrated-liquidity (V3/V4) pools return only an approximation, not exact output","Raydium pools are explicitly not supported","Invalid chain name causes lookup failure","Amount of zero or negative triggers validation error","Slippage or fee out of allowed range (0–50% / 0–5%) rejected"],"whenToPreferThis":"Choose this endpoint when you need a quick, inexpensive off-chain estimate of swap output, price impact, and minimum received for a constant-product AMM pair on EVM chains (Base, Ethereum, Arbitrum, etc.) without connecting to an RPC node. It is ideal for pre-trade analysis, bot trade sizing, and slippage checks on Uniswap V2-style and Aerodrome volatile pools. Avoid it for exact quotes on concentrated-liquidity (V3/V4) pools or Raydium, where the x*y=k model is only an approximation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:33:59.951Z","isFirstParty":false,"canonicalSlug":"dex-depth-slippage-calculator-77e5ae2d"}