{"uid":"cap_TjqHl_YKn4A630vjKCR6t","slug":"defillama-dex-summary-ae88686d","name":"DefiLlama DEX Summary","description":"DEX summary by DefiLlama — trading volume and history for one decentralized exchange by protocol slug.","url":"https://defillama.use.x402atlas.com/dex-summary","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":["protocol"],"properties":{"dataType":{"type":"string","maxLength":200,"description":"Optional volume metric to return (e.g. dailyVolume, totalVolume)"},"protocol":{"type":"string","pattern":"^[^/?#]+$","maxLength":100,"minLength":1,"description":"DEX protocol slug (e.g. uniswap, pancakeswap)"},"excludeTotalDataChart":{"type":"string","maxLength":200,"description":"Optional; set true to omit the aggregate volume time series"},"excludeTotalDataChartBreakdown":{"type":"string","maxLength":200,"description":"Optional; set true to omit the per-chain volume breakdown series"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["queried_at","data"],"properties":{"data":{"type":"object","properties":{"name":{"type":"string","description":"Protocol display name"},"chains":{"type":"array","items":{"type":"string"},"description":"Chains this protocol runs on"},"total24h":{"type":"number","description":"24h volume in USD"},"totalDataChart":{"type":"array","description":"Volume time series (omitted if excludeTotalDataChart=true)"}},"description":"Raw DefiLlama DEX summary payload","additionalProperties":true},"queried_at":{"type":"string","format":"date-time","description":"When this bridge fetched the upstream data"}}}}}}},"responseSchema":{"type":"json","example":{"data":{"name":"Uniswap","chains":["Ethereum"],"total24h":1230000000,"totalDataChart":[]},"queried_at":"2026-07-01T12:00:00Z"}},"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_HRgC7pyEpzabOFdM-U35G","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":"Returns trading volume metrics and historical volume data for a single decentralized exchange identified by its protocol slug.","exampleAgentPrompt":"Pull the DEX summary for Uniswap from DefiLlama — I want the daily volume and the full volume history, but skip the per-chain breakdown.","exampleUseCases":[{"title":"Compare DEX trading volume trends","prompt":"Grab the full historical trading volume for SushiSwap from DefiLlama, including the time-series chart data, so I can see how its volume has changed over the past year."},{"title":"Check PancakeSwap daily volume","prompt":"Pull up PancakeSwap's current daily and total trading volume from DefiLlama — no need for the historical chart data, just the top-level volume metrics."},{"title":"Analyze Curve Finance chain breakdown","prompt":"Fetch the volume data for Curve Finance from DefiLlama and make sure to include the per-chain breakdown — I want to see which chains are driving the most trading activity."}],"resultDescription":"Returns trading volume metrics for the specified DEX protocol, including aggregate volume time series and optionally a per-chain volume breakdown. Volume data may include dailyVolume, totalVolume, and historical chart data depending on query parameters.","failureModes":["Unknown protocol slug returns 404 or empty response","Invalid dataType parameter may return no data or an error","Missing required 'protocol' query parameter causes request failure","Rate limiting or payment failure returns 402 or 429","DefiLlama upstream data unavailable causes 5xx error"],"whenToPreferThis":"Use this endpoint when you need volume and trading history for a specific decentralized exchange by its protocol slug. Prefer this over the general DEX list endpoints when you already know the protocol name and want detailed volume metrics for a single DEX. Use the optional flags to control whether time-series chart data is included in the response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:45:16.954Z","isFirstParty":false}