DEX volume by protocol
POST /api/defi-dex-volumeDecentralized exchanges ranked by 24h spot trading volume from DefiLlama's free DEX overview: per-DEX 24h/7d/30d/1y/all-time volume with 1d/7d/30d change, category and chains; optional chain scope (Ethereum, Base, Solana, Arbitrum...), category filter and name search; sector totals and the list of chains with DEX volume. limit up to 100. Keyless public data.
Input
| Field | Type | Description |
|---|---|---|
chain | string | Optional chain scope as DefiLlama names it (Ethereum, Base, Solana, Arbitrum, BSC, OP Mainnet...). Case-insensitive; common aliases accepted. Omit for all chains. |
category | string | Optional category filter (Dexs, Lending, Derivatives, Liquid Staking, ...). Case-insensitive exact match. |
search | string | Optional name/slug substring filter (case-insensitive). |
type | string | Row type: "protocol" (default), "chain" (chain-level rows such as network gas fees), or "all". |
limit | number | Rows to return (default 25, max 100). |
Example output
{
"source": "defillama-dexs",
"fetchedAt": "2026-08-22T12:00:00.000Z",
"cached": true,
"unit": "USD",
"chain": "Base",
"totals": {
"total24hUsd": 1200000000,
"total7dUsd": 9000000000,
"total30dUsd": 40000000000,
"change1dPct": -3.1,
"change7dPct": 4.2,
"change1mPct": 11
},
"matched": 60,
"count": 1,
"dexs": [
{
"rank": 1,
"name": "Aerodrome Slipstream",
"slug": "aerodrome-slipstream",
"category": "Dexs",
"protocolType": "protocol",
"chains": [
"Base"
],
"chainCount": 1,
"total24hUsd": 600000000,
"total7dUsd": 4500000000,
"total30dUsd": 20000000000,
"total1yUsd": 250000000000,
"totalAllTimeUsd": 400000000000,
"change1dPct": -2.5,
"change7dPct": 3.9,
"change1mPct": 9.8
}
]
}
Try it - see the 402 challenge (free)
curl -i -X POST https://agent402.tools/api/defi-dex-volume \
-H "Content-Type: application/json" \
-d '{"chain":"Base","limit":5}'
The response is HTTP 402 Payment Required with exact payment requirements. Any x402 v2 client pays automatically and retries:
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/defi-dex-volume", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"chain": "Base",
"limit": 5
}),
});
Related tools
Crypto order book
GET /api/crypto-orderbookL2 order-book snapshot for a spot pair: best bid/ask, mid price, spread (absolute + %), and the top N aggregated price l…
try in playground →Stablecoin peg monitor
GET /api/stablecoin-pegLive $1-peg deviation for the top USD stablecoins (USDT, USDC, USDS, DAI, USDe, PYUSD, USDD, TUSD, FDUSD by default, or …
try in playground →Wallet balance (native + ERC-20)
POST /api/wallet-balanceLook up the native coin balance (ETH/MATIC) plus every ERC-20 holding for a wallet address on Ethereum, Base, Polygon, A…
try in playground →