# DEX volume per day, by protocol

[Open DEX Market →](https://tracefast.xyz/defi/dex)

Per UTC day, the DEX trading of each protocol — swaps, USD volume, active pools and how many of them could be priced — and the day's totals. A protocol's USD volume adds the pools that could be priced (`unpricedPools` counts the rest), so a total with unpriced pools is a partial sum. The volume counts the pools TraceFast has decoded. The DEX figures of the last days may still be revised: the source re-values the last 96 hours once a day, so those days are `provisional` too. UTC dates `YYYY-MM-DD`: the window is `from` to `to`, both included, at most 366 days; by default the 30 days up to today. A day the source is still counting is `provisional`: today, and yesterday until the source's first run after midnight. A day the source has no row for is absent.

```
GET https://tracefast.xyz/api/v1/chains/1/network/dex-volume
```

| Parameter | In | Type | Notes |
|---|---|---|---|
| `from` | query | string, optional | The first UTC date, `YYYY-MM-DD`. |
| `to` | query | string, optional | The last UTC date, `YYYY-MM-DD`. Default: today. |

**Access** — an [API key](/api/authentication) on the **Enriched Data** plan or higher ([plans](/api/authentication#plans)), or no key at all: pay per call with [x402](/api/x402) at the same path on `https://mpp.tracefast.xyz/api/v1`, at the price its `402` states. As a tool for AI agents: `get_dex_volume_daily` on the [MCP server](/api/mcp-server). **Stable** — see [stability](/api/conventions#stability).

`chains/1` is a literal: other chain ids answer `404 chain_not_supported`. An unknown query parameter is refused rather than ignored.

## Response

`200 application/json`. Lists in the example are cut to two entries.

```json
{
  "data": {
    "chainId": 1,
    "from": "2026-11-01",
    "to": "2026-11-02",
    "days": [
      {
        "day": "2026-11-01",
        "swaps": 312365,
        "volumeUsd": 985680496.2685577,
        "unpricedPools": 436,
        "protocols": [
          {
            "protocol": "uniswap",
            "swaps": 280883,
            "volumeUsd": 689479699.5634874,
            "activePools": 9370,
            "unpricedPools": 340
          },
          {
            "protocol": "fluid",
            "swaps": 2978,
            "volumeUsd": 245321502.70691267,
            "activePools": 29
          }
        ]
      },
      {
        "day": "2026-11-02",
        "swaps": 328095,
        "volumeUsd": 1490963559.3032951,
        "unpricedPools": 461,
        "protocols": [
          {
            "protocol": "uniswap",
            "swaps": 294294,
            "volumeUsd": 1126570092.690125,
            "activePools": 8271,
            "unpricedPools": 345
          },
          {
            "protocol": "fluid",
            "swaps": 3532,
            "volumeUsd": 253730380.11136445,
            "activePools": 29
          }
        ]
      }
    ]
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918362888,
    "cached": false,
    "docs": "https://docs.tracefast.xyz/api/network-dex-volume"
  }
}
```

### `data`

| Field | Meaning |
|---|---|
| `chainId` | Chain id. `1` is Ethereum mainnet. |
| `days` | One entry per day of the window, oldest first. |
| `from` | First day of the window, UTC date `YYYY-MM-DD`, included. |
| `to` | Last day of the window, UTC date `YYYY-MM-DD`, included. |

### `data.days[]`

| Field | Meaning |
|---|---|
| `day` | The UTC day, `YYYY-MM-DD`. |
| `protocols` | The day's protocols, by USD volume (unpriced last). |
| `provisional` | `true` for a day the source is still counting or may still revise. |
| `swaps` | Swaps over every protocol. |
| `unpricedPools` | Active pools that could not be priced, over every protocol; absent when none. |
| `volumeUsd` | USD volume over every protocol's priced pools; absent when none could be priced. |

### `data.days[].protocols[]`

| Field | Meaning |
|---|---|
| `activePools` | Pools with swaps that day. |
| `protocol` | The protocol as the index names it (`uniswap`, `curve`, …). |
| `swaps` | Swaps. |
| `unpricedPools` | Active pools that could not be priced; absent when none. Present ⇒ `volumeUsd` is partial. |
| `volumeUsd` | USD volume over the pools that could be priced; absent when none could. |

`meta` is the same envelope on every method — see [conventions](/api/conventions#meta).

## Errors

| Status | When |
|---|---|
| 400 | `bad_request`: a date not `YYYY-MM-DD` (`date_invalid`), `from` after `to` (`date_window_inverted`), a window over 366 days (`date_window_out_of_range`), an unknown query parameter |
| 404 | `chain_not_supported`, or an unknown path |

Malformed input, unknown parameters and the key check's `401`/`403`/`429`/`503` are the same for every method — see [conventions](/api/conventions#errors) and [API keys](/api/authentication#when-a-key-is-refused).

## Related pages

* [Network per day](/api/network-daily)
* [Gas per day](/api/network-gas)
* [Blobs per day](/api/network-blobs)
* [New accounts per day](/api/network-new-accounts)
* [All API methods](/api/methods) — every method on one page
* [Conventions](/api/conventions) — requests, responses, errors and pagination
