{"uid":"cap_XY67nUWwiWrUw8kOJWqLS","slug":"polygon-dex-slippage-price-impact-simulator-c42c2904","name":"Polygon DEX Slippage & Price Impact Simulator","description":"What a trade size actually executes at on Polygon PoS, simulated against live reserves. Returns best (venue, amountOut, executionPrice, priceImpactBps, feeBps, totalCostBps), routingGain, venues[]. Requires ?pair=SYM/SYM AND ?amountUsd=25000 (or ?amountIn=). pair alone = 400 missing_amount. Errors: 400 bad_pair|missing_amount|bad_amount, 404 no_pools|no_quote|cannot_size_in_usd, 502 upstream_read_failed. Spot price without a size is /price. Chain-pinned; bare /slippage = BSC.","url":"https://x402.donnyautomation.com/polygon/slippage","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","amountUsd"],"properties":{"pair":{"type":"string","description":"Token pair as SYM/SYM on Polygon PoS (e.g. WMATIC/USDC)."},"amountIn":{"type":"string","description":"Trade size denominated in the FIRST pair symbol instead of USD. An alternative to amountUsd; supplying either one is enough."},"amountUsd":{"type":"string","description":"Trade size in USD, e.g. 10000. Required unless amountIn is given instead."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ts":"2026-07-31T00:00:00.000Z","chainId":137,"network":"polygon"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EB1Tak9ueng3b3K-rWfdS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Simulates a token swap against live AMM reserves on Polygon PoS across QuickSwap, SushiSwap, and Uniswap v3 to return actual execution price, amount out, price impact in basis points, pool fee, and best venue for a given trade size.","exampleAgentPrompt":"Before I swap 10,000 USDC for WMATIC on Polygon, can you simulate the trade and tell me the actual amount I'd receive, the price impact in basis points, and which DEX — QuickSwap, SushiSwap, or Uniswap v3 — gives the best execution?","exampleUseCases":[{"title":"Pre-trade slippage check for trading bot","prompt":"I'm about to execute a large WMATIC/USDC swap on Polygon — can you simulate it against live pool reserves and tell me the price impact in bps, how much I'll actually get out, and whether QuickSwap, SushiSwap, or Uniswap v3 gives the best fill?"},{"title":"DEX aggregator venue routing decision","prompt":"My aggregator needs to decide where to route a WETH/USDC trade on Polygon — simulate the swap across all three DEXs and tell me which venue minimizes slippage and what I save by picking the optimal route over the best-quoted price."},{"title":"Thin market liquidity pre-trade validation","prompt":"Before I send a big MATIC/DAI order on Polygon, check the price impact and slippage so I know if the market is deep enough — I want the actual amount out and the impact in basis points, not just the spot price."}],"resultDescription":"Returns the best execution venue (QuickSwap, SushiSwap, or Uniswap v3), the actual token amount out for the specified trade size, price impact expressed in basis points, the pool fee separately, and the savings achieved by optimal routing versus simply picking the best-quoted spot price.","failureModes":["Unknown or unsupported token pair symbol returns an error — use correct Polygon PoS ticker symbols (e.g. WMATIC/USDC not MATIC/USD)","Pair with no liquidity on any of the three DEXs returns no result or zero liquidity error","Network congestion or RPC issues may cause stale or unavailable reserve data","Malformed pair string (wrong delimiter or extra spaces) returns a validation error"],"whenToPreferThis":"Choose this endpoint when you need pre-trade execution simulation specifically on Polygon PoS across QuickSwap, SushiSwap, and Uniswap v3 simultaneously. It is ideal for trading bots, DEX aggregators, and smart order routers that need to know actual amounts out and price impact in basis points — not just spot prices — before committing a trade. Prefer this over generic price feeds when trade size matters and slippage is a key risk factor.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:51:19.719Z","isFirstParty":false}