# Market DEX Volumes API

> Market DEX Volumes API is a paid API for AI agents from three.ws, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Returns 24-hour decentralized exchange trading volume data aggregated across major DeFi protocols

## Facts

- Endpoint: GET https://three.ws/api/x402/market-dex-volumes?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/market-dex-volumes-api-fa1a44b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jkLPjE1hHnBhO-KdgOa_7

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 market-dex-volumes-api-fa1a44b2
```

Example prompt: What's the total decentralized exchange trading volume over the last 24 hours, and which DeFi protocols like Uniswap V3 are leading by market share?

## When to prefer this

Use this endpoint when you need a quick, aggregated snapshot of 24-hour DEX trading volumes broken down by protocol with market share percentages. Prefer it over raw on-chain queries when you want pre-aggregated, human-readable DeFi volume data without building your own aggregation logic. It is well-suited for dashboards, research reports, or automated DeFi monitoring agents that need periodic volume checks.

## Known failure modes

- Missing or malformed properties parameter may return empty or unexpected results
- Data may be delayed or stale if upstream aggregation sources are unavailable
- Non-200 responses if payment (x402 micropayment) is not correctly attached
- Rate limiting or payment failure returning 402 Payment Required

## How this service works

Make a 3D AI agent from a selfie in 60 seconds. Drop one HTML tag to embed it on any website. Agents think on IBM watsonx.ai (Granite); optionally charge per chat with built-in micropayments.

## Output

Returns a JSON object with the total 24-hour DEX volume (e.g. $9.8B) and an array of protocol entries, each containing the protocol name, URL slug, its individual 24h volume, and percentage share of the total market.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "total24h": 9800000000,
  "protocols": [
   {
    "name": "Uniswap V3",
    "slug": "uniswap-v3",
    "total24h": 1820000000,
    "share_pct": 18.6
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/market-dex-volumes-api-fa1a44b2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from three.ws](https://www.zero.xyz/host/three.ws/llms.txt)
