# DEX Trading Volume by Protocol (24h/7d, All or Single Chain)

> DEX Trading Volume by Protocol (24h/7d, All or Single Chain) is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-29).

Returns 24-hour and 7-day DEX trading volume ranked by protocol, optionally filtered to a specific blockchain.

## Facts

- Endpoint: POST https://twin.unykorn.org/defi/dex-volume?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dex-trading-volume-by-protocol-24h-7d-all-or-single-chain-d41b8482
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__KgA2lovsbZXkf-XLe5q-

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-by-protocol-24h-7d-all-or-single-chain-d41b8482 -d '<json body>'
```

Example prompt: Show me the top 20 DEX protocols ranked by 24h and 7d trading volume on Ethereum — I want to see which ones are most active right now.

## When to prefer this

Choose this endpoint when you need a ranked, multi-protocol view of DEX trading activity — especially when comparing protocols head-to-head or monitoring volume trends across 24h and 7d windows. Prefer it over CEX volume endpoints when you specifically need on-chain decentralized exchange data. Use the chain filter when you only care about a specific L1 or L2 ecosystem.

## Known failure modes

- Invalid chain name returns empty results or error — chain identifiers must match supported chain names
- Limit out of range (>100 or <1) returns a validation error
- Payment failure (x402) if USDC balance is insufficient
- Upstream data lag may cause stale volume figures during off-hours
- No data for obscure or unsupported chains

## How this service works

DEX trading volume: 24h/7d by protocol, all chains or one chain — Genesis402 / UnyKorn Operator Network

## Output

Returns a ranked list of DEX protocols with their 24-hour and 7-day trading volumes, optionally scoped to a single blockchain. Each row includes the protocol name, chain(s), and volume figures, up to the specified limit (default 20, max 100).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "chain": {
     "type": "string",
     "description": "optional: chain name"
    },
    "limit": {
     "type": "integer",
     "maximum": 100,
     "minimum": 1,
     "description": "optional: max rows (default 20, max 100)"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dex-trading-volume-by-protocol-24h-7d-all-or-single-chain-d41b8482/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
