Agent402 / tools / defi-dex-volume

DEX volume by protocol

$0.003 per call · USDC via x402 · POST /api/defi-dex-volume

Decentralized 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.

TRY IN PLAYGROUND →

Input

FieldTypeDescription
chainstringOptional chain scope as DefiLlama names it (Ethereum, Base, Solana, Arbitrum, BSC, OP Mainnet...). Case-insensitive; common aliases accepted. Omit for all chains.
categorystringOptional category filter (Dexs, Lending, Derivatives, Liquid Staking, ...). Case-insensitive exact match.
searchstringOptional name/slug substring filter (case-insensitive).
typestringRow type: "protocol" (default), "chain" (chain-level rows such as network gas fees), or "all".
limitnumberRows 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
  }),
});
Wallet-only. This tool reaches the network/browser/storage, so it is paid in USDC via x402 (no proof-of-work tier).

Related tools

Crypto order book

$0.003 · GET /api/crypto-orderbook

L2 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

$0.003 · GET /api/stablecoin-peg

Live $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)

$0.002 · POST /api/wallet-balance

Look up the native coin balance (ETH/MATIC) plus every ERC-20 holding for a wallet address on Ethereum, Base, Polygon, A…

try in playground →