# DefiLlama DEX Summary

> DefiLlama DEX Summary 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 metrics and historical volume data for a single decentralized exchange identified by its protocol slug.

## Facts

- Endpoint: GET https://defillama.use.x402atlas.com/dex-summary
- 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-summary-ae88686d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TjqHl_YKn4A630vjKCR6t

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-summary-ae88686d
```

Example prompt: Pull the DEX summary for Uniswap from DefiLlama — I want the daily volume and the full volume history, but skip the per-chain breakdown.

## When to prefer this

Use this endpoint when you need volume and trading history for a specific decentralized exchange by its protocol slug. Prefer this over the general DEX list endpoints when you already know the protocol name and want detailed volume metrics for a single DEX. Use the optional flags to control whether time-series chart data is included in the response.

## Known failure modes

- Unknown protocol slug returns 404 or empty response
- Invalid dataType parameter may return no data or an error
- Missing required 'protocol' query parameter causes request failure
- Rate limiting or payment failure returns 402 or 429
- DefiLlama upstream data unavailable causes 5xx error

## How this service works

DEX summary by DefiLlama — trading volume and history for one decentralized exchange by protocol slug.

## Output

Returns trading volume metrics for the specified DEX protocol, including aggregate volume time series and optionally a per-chain volume breakdown. Volume data may include dailyVolume, totalVolume, and historical chart data depending on query parameters.

## 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",
     "required": [
      "protocol"
     ],
     "properties": {
      "dataType": {
       "type": "string",
       "maxLength": 200,
       "description": "Optional volume metric to return (e.g. dailyVolume, totalVolume)"
      },
      "protocol": {
       "type": "string",
       "pattern": "^[^/?#]+$",
       "maxLength": 100,
       "minLength": 1,
       "description": "DEX protocol slug (e.g. uniswap, pancakeswap)"
      },
      "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-chain 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": {
        "name": {
         "type": "string",
         "description": "Protocol display name"
        },
        "chains": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "description": "Chains this protocol runs on"
        },
        "total24h": {
         "type": "number",
         "description": "24h volume in USD"
        },
        "totalDataChart": {
         "type": "array",
         "description": "Volume time series (omitted if excludeTotalDataChart=true)"
        }
       },
       "description": "Raw DefiLlama DEX summary 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": {
   "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-summary-ae88686d/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)
