{"uid":"cap_JMjbUyvTkkzvdUi13aDzT","slug":"bsc-bnb-chain-dex-smart-order-router-arbitrage-spread-api-7da1b070","name":"BSC/BNB Chain DEX Smart Order Router & Arbitrage Spread API","description":"Cheapest venue to buy and richest to sell ONE pair on BSC / BNB Chain across PancakeSwap v2/v3, Biswap, ApeSwap. Returns buyAt and sellAt (venue, price, tvlUsd), midSpreadBps, grossSpreadBps, optimalInput, venuesConsidered. Requires ?pair=SYM/SYM (e.g. WBNB/USDT). 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. Bare = BSC; also /polygon /arbitrum /avalanche /optimism /base.","url":"https://x402.donnyautomation.com/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 (e.g. WBNB/USDT)."}}}},"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":56,"network":"bsc"}},"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_3pMGuSRgzgIh0OTPYPtXf","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 best-execution venue for buying and selling a token pair on BSC/BNB Chain, with cross-DEX spread in bps, fee-adjusted arbitrage spread, and optimal trade size","exampleAgentPrompt":"What's the best DEX to buy WBNB/USDT on BSC right now — check PancakeSwap, Biswap, and ApeSwap and tell me which venue is cheapest to buy on, which pays the most to sell into, the spread in bps, and the optimal trade size.","exampleUseCases":[{"title":"Arbitrage bot opportunity scanner","prompt":"Check the WBNB/USDT pair across all BSC DEXs and tell me the current arbitrage spread in basis points, which venue to buy on, which to sell into, and what trade size maximizes the fee-adjusted profit."},{"title":"Best execution routing for DeFi trade","prompt":"I want to buy CAKE/USDT on BNB Chain — which DEX gives me the best execution price right now, PancakeSwap v2, v3, Biswap, or ApeSwap?"},{"title":"Pre-trade venue selection for trading bot","prompt":"Before my bot executes a sell of BTCB/USDT on BSC, find the venue that pays the most and tell me the spread versus the cheapest buy side so I can decide if it's worth executing."}],"resultDescription":"Returns the optimal buy venue (lowest ask), optimal sell venue (highest bid), the cross-exchange spread in basis points, the fee-adjusted gross arbitrage spread, and the recommended optimal trade size for the requested token pair across PancakeSwap v2/v3, Biswap, and ApeSwap on BSC/BNB Chain.","failureModes":["Unknown or unsupported token pair symbol returns an error or empty result","Pair with no liquidity on any venue may return null venues or zero spread","Malformed pair string (missing slash, wrong ticker) causes validation error","Payment failure (x402 USDC charge not processed) blocks the response","Stale or temporarily unavailable on-chain data may cause delayed or incomplete quotes"],"whenToPreferThis":"Choose this endpoint when you need real-time best-execution routing or cross-DEX arbitrage data specifically on BSC/BNB Chain across PancakeSwap v2, PancakeSwap v3, Biswap, and ApeSwap. Prefer it over generic price APIs when you need the buy/sell venue split, fee-adjusted spread, and optimal trade size in a single call for trading bots or DeFi execution agents targeting BSC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T06:34:30.087Z","isFirstParty":false}