# Base DEX Volume Comparison API

> Base DEX Volume Comparison API is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns real-time 24-hour trading volume per DEX on Base chain (UniswapV3, Aerodrome, BaseSwap, SushiSwap), top pairs by volume, and volume trends

## Facts

- Endpoint: POST https://httpay.xyz/api/dex-volume
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-xyz-5e951bd4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tVG7__JzUnuZrpp0TkPmK

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 httpay-xyz-5e951bd4 -d '<json body>'
```

Example prompt: Compare 24-hour trading volume across UniswapV3, Aerodrome, BaseSwap, and SushiSwap on Base — show me which DEX is leading, the top pairs by volume, and whether volume is trending up or down.

## When to prefer this

Choose this endpoint when you need a side-by-side comparison of multiple DEXes on Base chain specifically, rather than a single DEX or a different chain. It is ideal for portfolio routing decisions, arbitrage analysis, or market research where knowing relative liquidity and activity across Base DEXes matters. Prefer this over generic DeFi dashboards when you need programmatic, real-time data in a structured format.

## Known failure modes

- Upstream DeFiLlama or DexScreener data unavailable — stale or missing volume data
- Payment not processed (x402 payment required) — 402 response with payment instructions
- Rate limit exceeded — too many requests in a short window
- Base chain RPC issues causing data gaps for specific DEXes

## How this service works

Real-time DEX volume comparison on Base: UniswapV3, Aerodrome, BaseSwap, SushiSwap. Returns 24h volume per DEX, top pairs by volume, volume trends. Data from DeFiLlama + DexScreener.

## Output

A structured response containing 24-hour trading volume broken down per DEX (UniswapV3, Aerodrome, BaseSwap, SushiSwap), a ranked list of top trading pairs by volume, and volume trend indicators — all sourced from DeFiLlama and DexScreener.

## Example request

```json
{
 "dex": "uniswapv3",
 "chain": "base",
 "timeframe": "24h"
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "description": "Real-time DEX volume comparison on Base: UniswapV3, Aerodrome, BaseSwap, SushiSwap. Returns 24h volume per DEX, top pairs by volume, volume trends. Data from DeFiLlama + DexScreener."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-xyz-5e951bd4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
