# The DEX pools with the most volume or liquidity

[Open the pool explorer →](https://tracefast.xyz/defi/dex/pools)

DEX pools ranked by USD volume over the last `days` UTC days (`by=volume`, the default; today included, still being counted) or by the USD value they hold now (`by=tvl`: only pools whose total TraceFast rates as trustworthy rank, with that rating's accuracy band). Each with the pool (its address, or for a Uniswap v4 pool its PoolId), protocol and tokens with their declared symbols. A volume adds what could be priced: `unpricedDays` counts the days with no price at all, and a day priced only in part counts as priced, so the ranking may order partial sums. The top 100 at most; `limit` takes the first ones.

```
GET https://tracefast.xyz/api/v1/chains/1/network/top-pools
```

| Parameter | In | Type | Notes |
|---|---|---|---|
| `by` | query | string, optional | `volume` (default) or `tvl`. |
| `days` | query | integer, optional | 1 to 30, default 7: the volume window. Refused when `by` is `tvl` (`conflicting_parameters`). |
| `limit` | query | integer, optional | 1 to 100, default 25. |

**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_top_pools` 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,
    "by": "volume",
    "days": 1,
    "pools": [
      {
        "poolId": "0x555042a6e162653b26c597f64e0b6183a4e6e4f3002ab66a04d7ed56ba240fbc",
        "protocol": "uniswap",
        "version": "v4",
        "tokens": [
          {
            "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
            "symbol": "USDC"
          },
          {
            "address": "0xeac1d5f136cdb125dbb31817374ce9ae6976c720",
            "symbol": "LINK"
          }
        ],
        "volumeUsd": 70000003.999989,
        "swaps": 18
      },
      {
        "poolId": "0x83a718517b4def1765ce161f31868be83a89939ec3295f99fc654f1fa2317dc1",
        "protocol": "uniswap",
        "version": "v4",
        "tokens": [
          {
            "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
            "symbol": "USDC"
          },
          {
            "address": "0xb38b34264268825d8919ea501dae5d4502305229",
            "symbol": "LINK"
          }
        ],
        "volumeUsd": 69999860.000217,
        "swaps": 14
      }
    ]
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918368966,
    "cached": false,
    "docs": "https://docs.tracefast.xyz/api/network-top-pools"
  }
}
```

### `data`

| Field | Meaning |
|---|---|
| `by` | `volume` or `tvl`. |
| `chainId` | Chain id. `1` is Ethereum mainnet. |
| `days` | The volume window, UTC days ending today; absent for `tvl`. |
| `pools` | The pools, largest first. |

### `data.pools[]`

| Field | Meaning |
|---|---|
| `accuracyBand` | With `by=tvl`: how close `tvlUsd` is to a direct read of the pool, as the source rates it. |
| `pool` | The pool contract; absent for a Uniswap v4 pool, which is named by `poolId`. |
| `poolId` | The pool's own 32-byte id (the Uniswap v4 PoolId), where the registry knows it. |
| `protocol` | The protocol, for example `uniswap` or `curve`. |
| `swaps` | With `by=volume`: swaps over the window. |
| `tokens` | The pool's tokens. |
| `tvlUsd` | With `by=tvl`: the USD value the pool holds now. An estimate, not an accounting value. |
| `unpricedDays` | With `by=volume`: days with swaps but no USD price. Present ⇒ `volumeUsd` is a partial sum; absent when there are none. |
| `version` | The protocol's version where the pool registry states it, for example `v3`. Absent otherwise. |
| `volumeUsd` | With `by=volume`: USD volume over the priced days of the window. Partial when `unpricedDays` is present. |

### `data.pools[].tokens[]`

| Field | Meaning |
|---|---|
| `address` | The token, lowercase and `0x`-prefixed. |
| `symbol` | The symbol the token contract declares — verbatim, not verified. Absent when longer than 64 characters — left out whole, never shortened. |

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

## Errors

| Status | When |
|---|---|
| 400 | `bad_request`: `by` outside `volume` / `tvl` (`by_invalid`), `days` with `by=tvl` (`conflicting_parameters`), `days` outside 1 to 30 (`days_out_of_range`), `limit` outside 1 to 100, 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
