# DEX Volume Rankings by Chain

> DEX Volume Rankings by Chain is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-19).

Returns decentralized exchanges ranked by 24h and 7d traded volume, with market share and 7d change, optionally filtered by blockchain, sourced live from DefiLlama.

## Facts

- Endpoint: POST https://api.vextorium.com/v1/dex-volume?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dex-volume-rankings-by-chain-0abab632
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ruCQeMl_qIjyLLD2wTEXc

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-chain-0abab632 -d '<json body>'
```

Example prompt: Show me the top 20 DEXs ranked by 24h trading volume on Base, including their market share and how their volume has changed over the past 7 days.

## When to prefer this

Use this endpoint when you need live, ranked DEX volume data sourced from DefiLlama, especially when you want chain-specific DEX rankings (e.g. who leads on Base, Solana, or Arbitrum) or need 7-day trend data alongside 24h snapshots. Prefer this over general DeFi APIs when you need market share context and volume momentum in a single call.

## Known failure modes

- Invalid chain name returns empty or error response
- Limit value outside 1-50 range rejected by schema validation
- DefiLlama upstream data unavailable causes stale or missing response
- No DEXs found for an obscure or misspelled chain name

## How this service works

558 pay-per-call data APIs for AI agents: Solana and EVM on-chain data, tokenized stocks, DeFi, Hyperliquid, economy and official statistics, FX, validation, web and developer tools. Pay in USDC via x402.

## Output

A JSON object containing an array of DEXs ranked by 24h volume, each with the DEX name, 24h USD volume, 7d USD volume, 24h market share percentage, and 7d percentage change, plus the total 24h volume across all DEXs. Also includes the chain filter applied and a source note crediting DefiLlama.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "Filter by chain, e.g. Base, Solana, Ethereum, Arbitrum (optional)"
  },
  "limit": {
   "type": "integer",
   "maximum": 50,
   "minimum": 1,
   "description": "Number of DEXs (1-50, default 15)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dexs": [
   {
    "dex": "Uniswap V3",
    "change_7d_pct": 1.96,
    "share_24h_pct": 13.2,
    "volume_7d_usd": 9794331637,
    "volume_24h_usd": 1508116970
   },
   {
    "dex": "Uniswap V4",
    "change_7d_pct": -2.06,
    "share_24h_pct": 13.13,
    "volume_7d_usd": 9016970755,
    "volume_24h_usd": 1499990072
   }
  ],
  "note": "Volume traded on each DEX. Source: DefiLlama.",
  "chain": "todas",
  "total_volume_24h_usd": 11422897183
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dex-volume-rankings-by-chain-0abab632/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
