{"uid":"cap_DbvAg0YlNG2YeqnlIaRQq","slug":"defillama-dex-volumes-by-chain-e6b4716d","name":"DefiLlama DEX Volumes by Chain","description":"DEX volumes for one chain by DefiLlama — decentralized-exchange trading volume on a single chain.","url":"https://defillama.use.x402atlas.com/dexs-chain","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":["chain"],"properties":{"chain":{"type":"string","pattern":"^[^/?#]+$","maxLength":100,"minLength":1,"description":"Chain slug (e.g. ethereum, arbitrum, solana)"},"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 per-chain 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_FPuVxskKVuos5jhh7TV4R","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 decentralized-exchange trading volume data for a single specified blockchain chain, including daily and total volume metrics with optional time-series and per-protocol breakdowns.","exampleAgentPrompt":"Pull the daily DEX trading volume for Arbitrum from DefiLlama, and skip the aggregate time-series chart so I just get the essentials.","exampleUseCases":[{"title":"Monitor Solana DEX trading health","prompt":"Pull the latest DEX trading volume for Solana from DefiLlama, including a per-protocol breakdown so I can see which DEXes are driving the most activity today."},{"title":"Check Ethereum daily exchange volume","prompt":"What's the current daily DEX volume on Ethereum? Grab it from DefiLlama and include the historical time-series so I can spot any recent trends."},{"title":"Analyze Base chain DEX activity","prompt":"I want to see how much trading is happening on Base chain right now — fetch the DEX volume data from DefiLlama with a breakdown by protocol so I know which exchanges are most active."}],"resultDescription":"Returns DEX volume data for the requested chain including volume metrics (dailyVolume, totalVolume), optionally a time-series chart of aggregate volume, and optionally a per-protocol breakdown series showing which DEXes contributed what volume on that chain.","failureModes":["Invalid or unrecognized chain slug returns an error or empty result","Missing required 'chain' query parameter causes a 400-level error","Chain exists but has no tracked DEX data returns empty or null volume fields","Invalid dataType value may return unexpected or empty metrics","Service unavailable or DefiLlama upstream outage returns 5xx error"],"whenToPreferThis":"Use this endpoint when you need DEX trading volume scoped to a single blockchain chain rather than across all chains. Prefer this over the all-DEX-volumes endpoint when chain-level granularity is required, such as comparing activity on one chain, monitoring a specific network's trading health, or filtering per-protocol volume on a given chain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:32:47.998Z","isFirstParty":false}