{"uid":"cap_jFQKoQYXN1IhF93ezUUIy","slug":"defillama-dex-volumes-0814a046","name":"DefiLlama DEX Volumes","description":"DEX volumes by DefiLlama — all decentralized exchanges with trading-volume summaries and charts.","url":"https://defillama.use.x402atlas.com/dexs","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":{"dataType":{"type":"string","maxLength":200,"description":"Optional volume metric to return (e.g. dailyVolume, totalVolume)"},"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-protocol 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":{"protocols":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"chains":{"type":"array","items":{"type":"string"}},"total24h":{"type":"number","description":"24h volume in USD"}}}},"totalDataChart":{"type":"array","description":"Aggregate volume time series (omitted if excludeTotalDataChart=true)"}},"description":"Raw DefiLlama DEX overview payload","additionalProperties":true},"queried_at":{"type":"string","format":"date-time","description":"When this bridge fetched the upstream data"}}}}}}},"responseSchema":{"type":"json","example":{"data":{"protocols":[{"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_TOfezWD-lDEkJA8ju5gJB","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 summaries and charts for all decentralized exchanges tracked by DefiLlama, with optional metric and chart filtering.","exampleAgentPrompt":"Pull the daily DEX trading volumes from DefiLlama for all decentralized exchanges — skip the aggregate time series chart but include the per-protocol breakdown.","exampleUseCases":[{"title":"Compare top DEX trading volumes","prompt":"Show me which decentralized exchanges have the highest trading volume right now — I want a full breakdown by protocol so I can see who's leading the market."},{"title":"Aggregate DEX volume chart over time","prompt":"Pull me a time series chart of total DEX trading volume across all DefiLlama-tracked exchanges so I can spot trends over the past few months."},{"title":"DeFi market-wide volume snapshot","prompt":"Give me a snapshot of current trading activity across all decentralized exchanges — daily and total volume numbers for each protocol, no charts needed."}],"resultDescription":"A list of all tracked decentralized exchanges with their trading-volume metrics (e.g. dailyVolume, totalVolume), optionally including an aggregate volume time series and/or a per-protocol volume breakdown series, as JSON.","failureModes":["Invalid dataType value returns an error or empty result","Payment not included or insufficient USDC triggers 402 response","excludeTotalDataChart or excludeTotalDataChartBreakdown passed as non-string may be ignored","Upstream DefiLlama data unavailability may cause stale or empty response"],"whenToPreferThis":"Use this endpoint when you need a comprehensive overview of trading volumes across all decentralized exchanges tracked by DefiLlama, especially when you want both aggregate and per-protocol volume data in a single call. Prefer this over individual DEX APIs when you need cross-DEX comparisons or a market-wide view.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:43:10.971Z","isFirstParty":false}