{"uid":"cap_o17lV5LUVT5utKg8Ktb0b","slug":"dex-trading-volume-api-21c82a95","name":"DEX Trading Volume API","description":"Decentralised exchange (DEX) trading volume: total 24h and 7d USD volume with 1d/7d change, plus the top DEXs by 24h volume. Optional `chain` filter scopes the totals and ranking to one chain.","url":"https://crypto.openverbs.com/v1/dex-volume","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":[],"properties":{"chain":{"type":"string","maxLength":50,"minLength":1,"description":"Filter to one chain, e.g. \"Ethereum\", \"Solana\", \"Base\"."},"limit":{"type":"integer","maximum":50,"minimum":1,"description":"How many DEXs to return, ranked by 24h volume (default 10)."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"dexs":[{"name":"Uniswap V4","chains":["Ethereum","Base"],"category":"Dexs","change1dPct":-8.33,"volume7dUsd":10791531695,"volume24hUsd":1423000760}],"chain":null,"count":815,"stale":false,"source":"defillama","total7dUsd":66773074286.62,"change1dPct":18.76,"change7dPct":24.02,"total24hUsd":9607081107.33}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BAhVghNbfYSVhoN0vMzBB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns total 24h and 7d decentralised exchange (DEX) trading volume in USD with period-over-period changes, plus a ranked list of top DEXs by 24h volume, optionally filtered to a single blockchain.","exampleAgentPrompt":"What's the total DEX trading volume over the last 24 hours and 7 days, and show me the top 10 decentralized exchanges by volume on Ethereum?","exampleUseCases":[{"title":"Monitor daily DEX market activity","prompt":"What's the total decentralized exchange trading volume in the last 24 hours and how does it compare to last week? Show me the top 10 DEXs."},{"title":"Chain-specific DEX volume analysis","prompt":"Give me the 24h and 7d DEX trading volume on Solana, and rank the top 5 most active decentralized exchanges on that chain."},{"title":"Crypto market research dashboard","prompt":"Pull the latest DEX volume stats — total 24h and 7-day USD volume with the percentage changes, and list the top 20 DEXs by 24-hour trading volume."}],"resultDescription":"Returns total DEX trading volume in USD for the past 24h and 7d periods, along with 1d and 7d percentage changes, and a ranked list of top DEXs by 24h volume (name, volume, and chain info). If a chain filter is applied, all figures are scoped to that chain only.","failureModes":["Invalid chain name returns an error or empty results","Limit out of range (below 1 or above 50) returns a validation error","Upstream data provider outage may return stale or missing volume data","Malformed request body (wrong bodyType or missing required fields) returns a 400 error","Payment not attached or insufficient funds returns a 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need aggregate DEX trading volume statistics (24h/7d totals with period changes) and a ranked leaderboard of top DEXs. Prefer this over protocol TVL endpoints when the user is asking about trading activity or liquidity flow rather than locked capital. The optional chain filter makes it ideal for single-chain DEX market analysis on networks like Ethereum, Solana, or Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:43:10.913Z","isFirstParty":false}