# DefiLlama DEX Volumes

> DefiLlama DEX Volumes is a paid API for AI agents from defillama.use.x402atlas.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns trading-volume summaries and charts for all decentralized exchanges tracked by DefiLlama, with optional metric and chart filtering.

## Facts

- Endpoint: GET https://defillama.use.x402atlas.com/dexs
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defillama-dex-volumes-0814a046
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jFQKoQYXN1IhF93ezUUIy

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 defillama-dex-volumes-0814a046
```

Example prompt: Pull the daily DEX trading volumes from DefiLlama for all decentralized exchanges — skip the aggregate time series chart but include the per-protocol breakdown.

## When to prefer this

Use this endpoint when you need a comprehensive overview of trading volumes across all decentralized exchanges tracked by DefiLlama, especially when you want both aggregate and per-protocol volume data in a single call. Prefer this over individual DEX APIs when you need cross-DEX comparisons or a market-wide view.

## Known failure modes

- Invalid dataType value returns an error or empty result
- Payment not included or insufficient USDC triggers 402 response
- excludeTotalDataChart or excludeTotalDataChartBreakdown passed as non-string may be ignored
- Upstream DefiLlama data unavailability may cause stale or empty response

## How this service works

DEX volumes by DefiLlama — all decentralized exchanges with trading-volume summaries and charts.

## Output

A list of all tracked decentralized exchanges with their trading-volume metrics (e.g. dailyVolume, totalVolume), optionally including an aggregate volume time series and/or a per-protocol volume breakdown series, as JSON.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "dataType": {
       "type": "string",
       "maxLength": 200,
       "description": "Optional volume metric to return (e.g. dailyVolume, totalVolume)"
      },
      "excludeTotalDataChart": {
       "type": "string",
       "maxLength": 200,
       "description": "Optional; set true to omit the aggregate volume time series"
      },
      "excludeTotalDataChartBreakdown": {
       "type": "string",
       "maxLength": 200,
       "description": "Optional; set true to omit the per-protocol volume breakdown series"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "queried_at",
      "data"
     ],
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "protocols": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "name": {
            "type": "string"
           },
           "chains": {
            "type": "array",
            "items": {
             "type": "string"
            }
           },
           "total24h": {
            "type": "number",
            "description": "24h volume in USD"
           }
          }
         }
        },
        "totalDataChart": {
         "type": "array",
         "description": "Aggregate volume time series (omitted if excludeTotalDataChart=true)"
        }
       },
       "description": "Raw DefiLlama DEX overview payload",
       "additionalProperties": true
      },
      "queried_at": {
       "type": "string",
       "format": "date-time",
       "description": "When this bridge fetched the upstream data"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "protocols": [
    {
     "name": "Uniswap",
     "chains": [
      "Ethereum"
     ],
     "total24h": 1230000000
    }
   ],
   "totalDataChart": []
  },
  "queried_at": "2026-07-01T12:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defillama-dex-volumes-0814a046/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defillama.use.x402atlas.com](https://www.zero.xyz/host/defillama.use.x402atlas.com/llms.txt)
