{"uid":"cap_29KYnyOJCex6HBDfdnykX","slug":"x402-deployer-x402-deployer-workers-dev-4d3a4f7d","name":"Cross-Exchange Arbitrage Spread Calculator","description":"Cross-exchange arbitrage spread / max-min price / CEX price dispersion / spread % calculator. For any CoinGecko-listed coin, pulls every tracked exchange ticker, computes the lowest and highest USD-converted prices, the spread %, and identifies which exchanges sit at each extreme plus the highest-volume venue. Filters out stale or anomalous tickers.","url":"https://x402-deployer.x402-deployer.workers.dev/arbitrage-spread","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["coingecko_id"],"properties":{"target":{"type":"string","description":"Quote currency to filter for (e.g. 'USDT'). Optional — converted USD prices are used regardless."},"coingecko_id":{"type":"string","description":"CoinGecko coin id (e.g. 'ethereum', 'bitcoin')."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"source":{"type":"string"},"spread_pct":{"type":"number"},"coingecko_id":{"type":"string"},"ticker_count":{"type":"integer"},"max_price_usd":{"type":"number"},"min_price_usd":{"type":"number"},"top_volume_usd":{"type":"integer"},"lowest_price_exchange":{"type":"string"},"highest_price_exchange":{"type":"string"},"top_exchange_by_volume":{"type":"string"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"body":{"coingecko_id":"ethereum"},"type":"http","method":"POST","bodyType":"json"}},"response":{"source":"coingecko","spread_pct":0.439,"coingecko_id":"ethereum","ticker_count":100,"max_price_usd":1734.36,"min_price_usd":1726.78,"sample_tickers":[{"pair":"ETH/USDT","exchange":"Binance","price_usd":1731.68,"volume_usd":589678987,"trust_score":null},{"pair":"ETH/USDT","exchange":"OKX","price_usd":1731.37,"volume_usd":239329424,"trust_score":null},{"pair":"ETH/USDT","exchange":"Bitget","price_usd":1731.99,"volume_usd":222157293,"trust_score":null},{"pair":"ETH/USD","exchange":"Coinbase Exchange","price_usd":1731.78,"volume_usd":208784951,"trust_score":null},{"pair":"ETH/USDT","exchange":"Gate","price_usd":1732.12,"volume_usd":464657414,"trust_score":null},{"pair":"ETH/USDC","exchange":"Binance","price_usd":1731.57,"volume_usd":300068400,"trust_score":null},{"pair":"ETH/USDT","exchange":"Bybit","price_usd":1730.92,"volume_usd":215386773,"trust_score":null},{"pair":"ETH/USDT","exchange":"MEXC","price_usd":1731.73,"volume_usd":360399719,"trust_score":null},{"pair":"ETH/USD","exchange":"Kraken","price_usd":1731.68,"volume_usd":40130121,"trust_score":null},{"pair":"ETH/USDT","exchange":"KuCoin","price_usd":1731.04,"volume_usd":258676592,"trust_score":null}],"top_volume_usd":633922972,"lowest_price_exchange":"DIFX","highest_price_exchange":"Binance","top_exchange_by_volume":"DIFX"}},"exampleRequest":{"coingecko_id":"ethereum"},"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hnzYdRP9yKgod1m3BrQLT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the price spread, min/max prices, and spread percentage across all CoinGecko-tracked exchanges for any listed coin, identifying venues at each price extreme and the highest-volume exchange.","exampleAgentPrompt":"What's the current arbitrage spread for Solana across all tracked exchanges — give me the cheapest and most expensive venues, the spread percentage, and which exchange has the highest volume?","exampleUseCases":null,"resultDescription":"Returns the lowest and highest USD-converted prices for the coin across all active CoinGecko-tracked exchange tickers, the computed spread percentage, the exchange names sitting at each price extreme, the highest-volume venue, and a filtered list of tickers used (stale or anomalous tickers excluded).","failureModes":["Coin ID not found on CoinGecko — returns error indicating unknown coin","No valid tickers available after filtering stale/anomalous data — returns empty or insufficient data error","CoinGecko API rate limit or upstream outage — returns 5xx or timeout","Coin has very few tracked exchanges — spread may be computed from limited data","Non-USD base pairs may introduce conversion inaccuracies"],"whenToPreferThis":"Use this endpoint when you need cross-exchange price dispersion or arbitrage spread analysis for any CoinGecko-listed coin. It automatically handles ticker filtering, USD conversion, and venue identification in a single call — ideal for agents that need structured arbitrage intelligence without managing raw CoinGecko ticker data themselves. Prefer over raw CoinGecko API when you need the spread computation done for you rather than raw tick data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:44:29.549Z","isFirstParty":false}