# DEX Volume Rankings by 24h Trading Volume

> DEX Volume Rankings by 24h Trading Volume is a paid API for AI agents from x402-data-api.sigrunner.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-30).

Returns the top decentralized exchanges ranked by 24-hour trading volume, including 7-day volume, 1-day change, and aggregate market total.

## Facts

- Endpoint: GET https://x402-data-api.sigrunner.workers.dev/defi/dex-volume?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dex-volume-rankings-by-24h-trading-volume-338a88d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HBR12FcOqWl5Fn-WPtQGq

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-338a88d0
```

Example prompt: Pull up the top DEXs by 24-hour trading volume right now — I want to see which exchanges are capturing the most on-chain swap flow, along with the total DeFi market volume for today.

## When to prefer this

Choose this endpoint when an agent needs a ranked, ready-to-use list of top DEXs by trading volume sourced from DefiLlama, without needing to call DefiLlama directly. Ideal for DeFi dashboards, trading routing logic, or market briefings where on-chain swap volume distribution matters. Prefer this over raw DefiLlama calls when operating in a pay-per-call agent environment using x402 micropayments.

## Known failure modes

- Upstream DefiLlama API unavailable — may return 502 or stale data
- Payment not received or x402 challenge not fulfilled — returns 402 with payment instructions
- Optional limit parameter ignored or invalid value causes default response
- Data may be slightly delayed if DefiLlama feed is lagging

## How this service works

Top DEXs by 24h trading volume (DefiLlama): name, 24h/7d volume USD, 1d change, plus market total. No params. Use when an agent needs where on-chain swap volume is flowing.

## Output

Returns a JSON object with a list of top DEXs (each with name, 24h volume in USD, 7d volume in USD, and 1-day percentage change) plus a total24h_usd field representing the aggregate DeFi DEX market volume for the past 24 hours.

## 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"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "total24h_usd",
      "dexs"
     ],
     "properties": {
      "dexs": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "name",
         "volume24h_usd"
        ],
        "properties": {
         "name": {
          "type": "string"
         },
         "volume24h_usd": {
          "type": "integer"
         }
        }
       }
      },
      "total24h_usd": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dexs": [
   {
    "name": "Curve DEX",
    "volume24h_usd": 42754326
   }
  ],
  "total24h_usd": 7102132850
 }
}
```

## More

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