{"uid":"cap_8rQpmOvAay6j6Os1LjwGL","slug":"agentdata-api-dex-vs-cex-comparison-24883bde","name":"AgentData API — DEX vs CEX Comparison","description":"Pay-per-request crypto market data API for AI agents. 16 endpoints on Base Mainnet via x402 protocol. No accounts, no API keys. USDC micropayments from $0.001. Works with Claude Desktop, ElizaOS, and any MCP client.","url":"https://agentdata-api.com/api/dex-vs-cex","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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"data":{"type":"object","properties":{"ts":{"type":"string"},"data":{"type":"object"}}},"success":{"type":"boolean"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.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_3N90E3TiY7qsFiEDAsyR_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares decentralized exchange (DEX) vs centralized exchange (CEX) trading metrics for a given crypto asset via pay-per-request USDC micropayment","exampleAgentPrompt":"Compare the DEX vs CEX trading volume and liquidity for ETH right now — I want to know what percentage of trading is happening on decentralized exchanges versus centralized ones.","exampleUseCases":[{"title":"Analyze token trading venue distribution","prompt":"Show me where USDC is being traded most — break down how much volume is happening on decentralized exchanges versus places like Binance and Coinbase. I need to understand the on-chain versus off-chain split."},{"title":"Research liquidity across exchange types","prompt":"I'm looking at a new DeFi token and want to compare its liquidity on Uniswap and other DEX platforms against major centralized exchanges. Can you give me a breakdown of where it's actually liquid?"},{"title":"Assess decentralization level for assets","prompt":"For Bitcoin, show me what percentage of trading activity is happening on decentralized exchanges right now versus traditional CEX platforms. I want to understand how decentralized the price discovery really is."}],"resultDescription":"Returns a breakdown of trading activity split between decentralized exchanges (DEX) and centralized exchanges (CEX) for the requested token, including volume figures, ratios, and possibly price or liquidity comparisons across exchange types.","failureModes":["Unknown or unsupported token symbol returns an error or empty result","Payment failure if USDC balance is insufficient for the $0.003 micropayment","Token with no DEX presence returns null DEX metrics","Network errors on Base Mainnet causing payment or data fetch failure","Malformed request body returns 400 or validation error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to understand the on-chain vs off-chain trading split for a cryptocurrency — useful for DeFi research, liquidity analysis, or understanding where price discovery happens. Prefer this over generic price APIs when the specific DEX/CEX comparison is needed rather than just a price quote.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:57:26.673Z","isFirstParty":false}