# DEX Trading Volume Rankings by Protocol

> DEX Trading Volume Rankings by Protocol is a paid API for AI agents from crypto.apitoll.cloud, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns decentralized exchange trading volumes ranked by protocol, with 24h and 7d USD volume, percent changes, and supported chains, optionally filtered to one blockchain.

## Facts

- Endpoint: GET https://crypto.apitoll.cloud/v1/crypto/dex
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dex-trading-volume-rankings-by-protocol-a3578f99
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FpcTYdxmoa0YpV47fvr-J

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-trading-volume-rankings-by-protocol-a3578f99
```

Example prompt: Can you show me the top 20 decentralized exchanges ranked by trading volume on the Base chain, including their 24-hour and 7-day USD volumes and how much those volumes have changed?

## When to prefer this

Use this endpoint when you need protocol-level DEX volume rankings across all chains or a specific chain, with percent-change context over 1d/7d windows. Prefer this over general crypto market endpoints when the focus is specifically on decentralized trading activity and protocol comparison rather than token prices or DeFi TVL.

## Known failure modes

- Invalid chain name returns empty results or an error — must use supported chain slugs like 'ethereum', 'base', 'solana', 'arbitrum'
- Limit value outside 1–100 range is rejected
- DefiLlama upstream outage may cause stale or missing data
- Payment failure (x402) returns 402 status before data is served

## How this service works

Decentralized exchange (DEX) trading volume ranked by protocol: 24-hour and 7-day volume in USD with 1d/7d change, plus the chains each DEX runs on. Pass ?chain=base to scope to one chain. See where on-chain trading is happening across Uniswap, Curve, Raydium, PancakeSwap and more. Sourced from DefiLlama.

## Output

A JSON array of DEX protocols ranked by volume, each with protocol name, 24h USD volume, 7d USD volume, 1-day and 7-day percent changes, and the list of chains each DEX operates on. Also includes aggregate totals (total24hUsd, total7dUsd), the chain filter applied, the count of results, and source attribution (DefiLlama).

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "chain": "ethereum",
   "limit": 10
  }
 }
}
```

## 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": {
      "chain": {
       "type": "string",
       "description": "Scope to one chain (case-insensitive): ethereum, base, solana, arbitrum… Omit for all chains."
      },
      "limit": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "description": "Max DEXs returned (1–100, default 20)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "dexs": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "name": {
          "type": "string"
         },
         "chains": {
          "type": "array",
          "items": {
           "type": "string"
          }
         },
         "change1dPct": {
          "type": "number"
         },
         "change7dPct": {
          "type": "number"
         },
         "volume7dUsd": {
          "type": "number"
         },
         "volume24hUsd": {
          "type": "number"
         }
        }
       }
      },
      "chain": {
       "type": "string"
      },
      "count": {
       "type": "number"
      },
      "source": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        }
       }
      },
      "total7dUsd": {
       "type": "number"
      },
      "total24hUsd": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dexs": [
   {
    "name": "Uniswap",
    "chains": [
     "Base"
    ],
    "change1dPct": -3.2,
    "change7dPct": 12.1,
    "volume7dUsd": 900000000,
    "volume24hUsd": 120000000
   }
  ],
  "chain": "base",
  "count": 1,
  "source": {
   "name": "DefiLlama"
  },
  "total7dUsd": 1800000000,
  "total24hUsd": 250000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dex-trading-volume-rankings-by-protocol-a3578f99/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from crypto.apitoll.cloud](https://www.zero.xyz/host/crypto.apitoll.cloud/llms.txt)
