{"uid":"cap_YHsazEVJkzyglFWuye1Hk","slug":"bsc-token-spot-price-bep-20-erc-20-x402-donnyautomation-com-9c7ad451","name":"BSC Token Spot Price (BEP-20/ERC-20) — x402.donnyautomation.com","description":"Spot token price in USD on BSC / BNB Chain, read from PancakeSwap v2/v3, Biswap, ApeSwap pools at call time. Returns priceUsd, the routed pair, backing liquidityUsd, confidence and blockNumber. Requires ?symbol=TICKER (e.g. CAKE) or ?token=0xADDRESS. Errors: 400 missing_symbol|unknown_token, 404 no_reliable_price when pools are too thin, 502 upstream_read_failed. Depth is /liquidity; a size-aware quote is /slippage. Bare = BSC; also /polygon /arbitrum /avalanche /optimism /base.","url":"https://x402.donnyautomation.com/price","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":["symbol"],"properties":{"symbol":{"type":"string","description":"BEP-20 token symbol on BSC (e.g. CAKE, WBNB, BTCB, ETH, LINK, BSW)."}}}},"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_q1vuNIPNm8yLsZsTtcARZ","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 live USD spot price of any BEP-20 token on BNB Chain (BSC) by ticker symbol, along with the DEX pair used, USD liquidity depth, and a confidence rating.","exampleAgentPrompt":"What's the live USD price of CAKE on BSC right now — and how confident is that quote given the pool liquidity?","exampleUseCases":[{"title":"Trading bot entry price check","prompt":"Before my trading bot buys BTCB on BNB Chain, fetch the current live USD spot price and tell me how deep the liquidity pool is backing that quote — I need to know if it's a reliable number."},{"title":"DeFi portfolio valuation","prompt":"I need the real-time USD prices of WBNB, CAKE, and BSW on BinanceSmartChain so I can update the current value of my DeFi portfolio — fetch each one and flag any with thin liquidity."},{"title":"Price oracle sanity check","prompt":"Our on-chain oracle just reported LINK at $8.50 on BSC — can you pull the live DEX spot price for LINK on BNB Chain so I can see whether that matches the current market and how confident the quote is?"}],"resultDescription":"Returns a JSON object containing priceUsd (the current USD price of the token), the DEX trading pair through which it was priced, the USD liquidity backing that price quote, and a confidence rating indicating how reliable the price is given pool depth.","failureModes":["Unknown or unrecognized token symbol returns an error or empty result","Token exists but has zero or negligible DEX liquidity, resulting in low confidence rating","Misspelled ticker symbol returns no match","Token only exists on another chain (e.g. Ethereum mainnet, not BSC) and cannot be found on BNB Chain DEXs","Transient DEX data unavailability may return stale or failed response","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need real-time USD prices for tokens on BNB Chain / BSC specifically, especially when you need liquidity depth and confidence signals alongside the price (not just a raw number). Prefer this over CEX price feeds when you need onchain DEX prices for DeFi agents, trading bots, or price oracle validation. Use the sibling Base/Arbitrum/Polygon endpoints for tokens on those chains instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:55:54.577Z","isFirstParty":false}