{"uid":"cap_Gvt1UlqiJ2FHKPkVidT1L","slug":"polygon-dex-best-execution-router-ca1341ab","name":"Polygon DEX Best Execution Router","description":"Cheapest venue to buy and richest to sell ONE pair on Polygon PoS across QuickSwap, SushiSwap and Uniswap v3. Returns buyAt and sellAt (venue, price, tvlUsd), midSpreadBps, grossSpreadBps, optimalInput, venuesConsidered. Requires ?pair=SYM/SYM (e.g. WMATIC/USDC). Errors: 400 bad_pair, 404 not_routable, 502 upstream_read_failed. Ranks venues for one pair; to rank EVERY pair use /scan. Execution at a size is /slippage. Chain-pinned; bare /route = BSC.","url":"https://x402.donnyautomation.com/polygon/route","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"],"properties":{"pair":{"type":"string","description":"Token pair as SYM/SYM on Polygon PoS (e.g. WMATIC/USDC)."}}}},"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_FwqIAVK8jks9-Y9k9MXzS","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":"Returns the optimal buy and sell venues across QuickSwap, SushiSwap, and Uniswap v3 on Polygon PoS, including cross-exchange spread in basis points, fee-adjusted arbitrage spread, and optimal trade size for a given token pair.","exampleAgentPrompt":"Check which DEX on Polygon gives me the best execution for buying WMATIC with USDC right now — I want to know the cheapest buy venue, the best sell venue, the spread in basis points, and the optimal trade size for the WMATIC/USDC pair.","exampleUseCases":[{"title":"Arbitrage bot opportunity detection","prompt":"Is there a profitable arbitrage opportunity right now for WMATIC/USDC across Polygon DEXs? Tell me the spread in bps, which venue to buy on, which to sell into, and what the optimal trade size would be."},{"title":"Best execution for a large token swap","prompt":"I want to swap a big chunk of USDC into WETH on Polygon — which DEX gives me the best buy price right now and what's the fee-adjusted spread I should expect?"},{"title":"Real-time DEX price comparison for trading agent","prompt":"Before I execute this WMATIC/USDC trade on Polygon, compare prices live across QuickSwap, SushiSwap, and Uniswap v3 and tell me which venue is cheapest to buy on and which pays the most to sell into."}],"resultDescription":"Returns the best buy venue (e.g. QuickSwap), the best sell venue, the cross-exchange spread in basis points, a fee-adjusted gross arbitrage spread, and the optimal trade size for the specified Polygon PoS token pair. Data is sourced live from QuickSwap, SushiSwap, and Uniswap v3 on-chain state.","failureModes":["Unsupported token pair returns an error or empty result","Highly illiquid pairs may return unreliable spread estimates","Network congestion on Polygon may cause stale price data","Malformed pair symbol (e.g. missing slash or wrong ticker) returns a validation error","Payment failure (insufficient USDC balance for x402 micropayment) blocks the call"],"whenToPreferThis":"Choose this endpoint when you need real-time best-execution routing specifically on Polygon PoS across QuickSwap, SushiSwap, and Uniswap v3. Prefer it over generic price feeds when you need cross-DEX spread analysis, fee-adjusted arbitrage metrics, and optimal trade sizing in a single call. Use the Arbitrum or Base sibling endpoints for those respective chains instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:44:59.779Z","isFirstParty":false}