# DEX Volume Rankings by 24h Trading Volume

> DEX Volume Rankings by 24h Trading Volume is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns a ranked list of decentralized exchanges sorted by 24-hour trading volume, aggregated from DeFiLlama, with total on-chain DEX volume.

## Facts

- Endpoint: GET https://api.x402node.dev/defi/dex-volume
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dex-volume-rankings-by-24h-trading-volume-ab83abb3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XWFVpvRh8ZFY0xUcPT8Zt

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability dex-volume-rankings-by-24h-trading-volume-ab83abb3
```

Example prompt: Which decentralized exchanges are handling the most on-chain trading volume right now, and what's the total DEX volume across all of them?

## When to prefer this

Use this endpoint when you need live, ranked DEX trading volume data that an LLM cannot generate from training data. Prefer this over manual DeFiLlama lookups when building dashboards, market analysis pipelines, or any agent workflow that needs to know where on-chain swap activity is concentrated at this moment. It aggregates multi-source data into a single ranked response, saving multiple API calls.

## Known failure modes

- DeFiLlama upstream API unavailable — returns 5xx or empty data
- Stale data if upstream DeFiLlama feed is delayed
- No parameters accepted; endpoint is fixed-scope so no invalid-param errors
- Payment not processed (x402) — request blocked before data is returned

## How this service works

Ranks decentralized exchanges by 24h trading volume, aggregated from DeFiLlama, revealing where on-chain swap activity is concentrated right now and the total DEX volume. Live aggregated data an LLM cannot produce. dex volume, top decentralized exchanges, onchain trading volume, defi activity

## Output

A ranked list of decentralized exchanges ordered by 24-hour trading volume, each with its name and volume figure, plus an aggregate total DEX volume figure across all tracked exchanges — sourced live from DeFiLlama.

## Request schema (JSON Schema)

```json
{
 "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",
     "properties": {
      "limit": {
       "type": "string",
       "description": "max DEXs, default 15"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dex-volume-rankings-by-24h-trading-volume-ab83abb3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
