# DEX Trading Volume API

> DEX Trading Volume API is a paid API for AI agents from crypto.openverbs.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Returns total 24h and 7d decentralised exchange (DEX) trading volume in USD with period-over-period changes, plus a ranked list of top DEXs by 24h volume, optionally filtered to a single blockchain.

## Facts

- Endpoint: POST https://crypto.openverbs.com/v1/dex-volume
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dex-trading-volume-api-21c82a95
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o17lV5LUVT5utKg8Ktb0b

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-api-21c82a95 -d '<json body>'
```

Example prompt: What's the total DEX trading volume over the last 24 hours and 7 days, and show me the top 10 decentralized exchanges by volume on Ethereum?

## When to prefer this

Use this endpoint when you need aggregate DEX trading volume statistics (24h/7d totals with period changes) and a ranked leaderboard of top DEXs. Prefer this over protocol TVL endpoints when the user is asking about trading activity or liquidity flow rather than locked capital. The optional chain filter makes it ideal for single-chain DEX market analysis on networks like Ethereum, Solana, or Base.

## Known failure modes

- Invalid chain name returns an error or empty results
- Limit out of range (below 1 or above 50) returns a validation error
- Upstream data provider outage may return stale or missing volume data
- Malformed request body (wrong bodyType or missing required fields) returns a 400 error
- Payment not attached or insufficient funds returns a 402 Payment Required

## How this service works

Decentralised exchange (DEX) trading volume: total 24h and 7d USD volume with 1d/7d change, plus the top DEXs by 24h volume. Optional `chain` filter scopes the totals and ranking to one chain.

## Output

Returns total DEX trading volume in USD for the past 24h and 7d periods, along with 1d and 7d percentage changes, and a ranked list of top DEXs by 24h volume (name, volume, and chain info). If a chain filter is applied, all figures are scoped to that chain only.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "minimum": 1,
       "maximum": 50,
       "description": "How many DEXs to return, ranked by 24h volume (default 10)."
      },
      "chain": {
       "type": "string",
       "minLength": 1,
       "maxLength": 50,
       "description": "Filter to one chain, e.g. \"Ethereum\", \"Solana\", \"Base\"."
      }
     },
     "required": [],
     "additionalProperties": false
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dexs": [
   {
    "name": "Uniswap V4",
    "chains": [
     "Ethereum",
     "Base"
    ],
    "category": "Dexs",
    "change1dPct": -8.33,
    "volume7dUsd": 10791531695,
    "volume24hUsd": 1423000760
   }
  ],
  "chain": null,
  "count": 815,
  "stale": false,
  "source": "defillama",
  "total7dUsd": 66773074286.62,
  "change1dPct": 18.76,
  "change7dPct": 24.02,
  "total24hUsd": 9607081107.33
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dex-trading-volume-api-21c82a95/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from crypto.openverbs.com](https://www.zero.xyz/host/crypto.openverbs.com/llms.txt)
