# A token's daily DEX volume

[Open the token on its entity page →](https://tracefast.xyz/entity/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48)

The token's DEX trading per UTC day over the last `days` days (today included), oldest first — the USD volume and its swaps by its position in the pair (`token0` / `token1`) — with the totals. Today's row is still being counted and grows through the day. A day's USD volume adds the hours that could be priced: a day with swaps but no priced hour has no `volumeUsd` and is counted in `unpricedDays` (then `totalVolumeUsd` is a partial sum); a day priced only in part is not marked. A day without swaps is absent. The volume counts the pools TraceFast has decoded, which may lag a newly created pool.

```
GET https://tracefast.xyz/api/v1/chains/1/tokens/{token}/dex-volume
```

| Parameter | In | Type | Notes |
|---|---|---|---|
| `token` | path | string | The token contract, `0x` + 40 hex, any case. |
| `days` | query | integer, optional | 1 to 365, default 30. |

**Access** — an [API key](/api/authentication) on the **Intelligence** 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_token_dex_volume` 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`, USDC. Lists in the example are cut to two entries.

```json
{
  "data": {
    "chainId": 1,
    "token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "days": 2,
    "totalVolumeUsd": 380646157.15380776,
    "totalSwaps": 123001,
    "points": [
      {
        "day": "2026-11-16",
        "volumeUsd": 245658733.66529375,
        "swapsAsToken0": 53010,
        "swapsAsToken1": 34794
      },
      {
        "day": "2026-11-17",
        "volumeUsd": 134987423.48851398,
        "swapsAsToken0": 20969,
        "swapsAsToken1": 14228
      }
    ]
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918383557,
    "cached": false,
    "docs": "https://docs.tracefast.xyz/api/token-dex-volume"
  }
}
```

### `data`

| Field | Meaning |
|---|---|
| `chainId` | Chain id. `1` is Ethereum mainnet. |
| `days` | The window asked for, in UTC days ending today (today included). |
| `points` | Every day with swaps. |
| `token` | The token, lowercase and `0x`-prefixed. |
| `totalSwaps` | Swaps over the window. Absent when no day is recorded (not the same as zero). |
| `totalVolumeUsd` | The USD volume over the window; partial when `unpricedDays` is present. Absent when no day could be priced. |
| `unpricedDays` | Days with swaps but no USD price. Absent when there are none. |

### `data.points[]`

| Field | Meaning |
|---|---|
| `day` | The UTC day, `YYYY-MM-DD`. |
| `swapsAsToken0` | Swaps in pools where the token is the pair's first token (`token0`) — the pair position, not a buy or sell direction. |
| `swapsAsToken1` | Swaps in pools where the token is the pair's second token (`token1`) — the pair position, not a buy or sell direction. |
| `volumeUsd` | USD volume; absent when the day's swaps could not be priced. |

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

## Errors

| Status | When |
|---|---|
| 400 | `bad_request`: a malformed `token` (`address_invalid`), `days` outside 1 to 365 (`days_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

* [One token](/api/token)
* [Token holders](/api/token-holders)
* [Token transfers](/api/token-transfers)
* [Token statistics](/api/token-stats)
* [All API methods](/api/methods) — every method on one page
* [Conventions](/api/conventions) — requests, responses, errors and pagination
