{"uid":"cap_Yq6or5DkgTlB407F-BCY5","slug":"agent402-defi-dex-volume-c6f77c16","name":"Agent402 DeFi DEX Volume","description":"Decentralized exchanges ranked by 24h spot volume with 7d, 30d, 1y and all-time volume, change, the chains each trades on and sector totals. Use it when an agent needs to know where onchain spot volume is happening or how a DEX's share is moving.","url":"https://agent402.tools/api/defi-dex-volume","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"type":{"type":"string","description":"Row type: \"protocol\" (default), \"chain\" (chain-level rows such as network gas fees), or \"all\"."},"chain":{"type":"string","description":"Optional chain scope as DefiLlama names it (Ethereum, Base, Solana, Arbitrum, BSC, OP Mainnet...). Case-insensitive; common aliases accepted. Omit for all chains."},"limit":{"type":"number","description":"Rows to return (default 25, max 100)."},"search":{"type":"string","description":"Optional name/slug substring filter (case-insensitive)."},"category":{"type":"string","description":"Optional category filter (Dexs, Lending, Derivatives, Liquid Staking, ...). Case-insensitive exact match."}}},"responseSchema":{"type":"json","example":{"dexs":[{"name":"Aerodrome Slipstream","rank":1,"slug":"aerodrome-slipstream","chains":["Base"],"category":"Dexs","chainCount":1,"total1yUsd":250000000000,"total7dUsd":4500000000,"change1dPct":-2.5,"change1mPct":9.8,"change7dPct":3.9,"total24hUsd":600000000,"total30dUsd":20000000000,"protocolType":"protocol","totalAllTimeUsd":400000000000}],"unit":"USD","chain":"Base","count":1,"cached":true,"source":"defillama-dexs","totals":{"total7dUsd":9000000000,"change1dPct":-3.1,"change1mPct":11,"change7dPct":4.2,"total24hUsd":1200000000,"total30dUsd":40000000000},"matched":60,"fetchedAt":"2026-08-22T12:00:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Mk9wP0_wxO3kCG74ruTjq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches ranked DEX and DeFi protocol trading volume data across chains, with 24h/7d/30d/1y metrics and percentage changes, sourced from DefiLlama.","exampleAgentPrompt":"What are the top 10 DEXes on Base by 24-hour volume right now, including their 7-day and 30-day volume figures and recent percentage changes?","exampleUseCases":[{"title":"Top DEXes on a specific chain","prompt":"Show me the top 15 decentralized exchanges on Arbitrum ranked by 24-hour volume, including their 7-day volume and month-over-month percentage change."},{"title":"Lending protocol volume research","prompt":"What are the top 20 lending protocols by total volume across all chains? I want to see their 7-day and 30-day figures and which chains they operate on."},{"title":"Trending DEX discovery by category","prompt":"Which derivatives DEX protocols have the highest trading volume on Ethereum right now? Give me the top 10 with their 1-day and 7-day percentage changes so I can spot what's trending."}],"resultDescription":"A JSON object containing an array of ranked DeFi protocol/DEX entries, each with name, slug, chains, category, chain count, and volume figures for 24h, 7d, 30d, and 1y in USD, plus percentage changes for 1d, 7d, and 1m. Also includes aggregate totals, matched count, source attribution (DefiLlama), chain scope, and a fetchedAt timestamp.","failureModes":["Invalid chain name returns empty results or error — use DefiLlama-style chain names like 'OP Mainnet' not 'Optimism'","Limit exceeding 100 may be clamped or rejected","Unknown category string returns no results — category must match DefiLlama taxonomy exactly (case-insensitive)","Data may be cached and slightly delayed — fetchedAt timestamp indicates freshness","Network or upstream DefiLlama outage may result in stale or failed response"],"whenToPreferThis":"Use this endpoint when you need structured, ranked DEX or DeFi protocol volume data with multi-timeframe metrics (24h, 7d, 30d, 1y) and trend percentages, especially when filtering by chain or category. It's ideal over raw DefiLlama API access when you want pay-per-call pricing with no API key, or when building agent workflows that need clean, ranked volume snapshots. Prefer it over general crypto price endpoints when the question is about protocol-level trading activity rather than asset prices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:51:50.391Z","isFirstParty":false}