Docs / API: Markets
DEX volume
Returns 24 hour DEX volume in total and for the top 30 protocols. Source: DefiLlama, cached for 15 minutes.
GET/api/v1/markets/dexs
| Property | Value |
|---|---|
| Authentication | Optional. A key raises your limit. |
| Rate-limit cost | 1 unit |
| Status | Live |
#Request
curl -s "https://farbeamlabs.com/api/v1/markets/dexs"const res = await fetch("https://farbeamlabs.com/api/v1/markets/dexs");
const { data, meta, error } = await res.json();
if (error) throw new Error(`${error.code}: ${error.message}`);
console.log(data);import os, requests
res = requests.get(
"https://farbeamlabs.com/api/v1/markets/dexs",
timeout=30,
)
body = res.json()
if "error" in body:
raise RuntimeError(body["error"]["code"])
print(body["data"])You can send this request now in the API playground.
#Response
This response is real. It was captured from the running API when this page was built. Arrays are cut to two items.
JSON
{
"data": {
"total_24h_usd": 8274410716.729996,
"change_1d_pct": -10.22,
"protocols": [
{
"name": "Uniswap V3",
"volume_24h_usd": 1520333017,
"change_1d_pct": 60.3,
"change_7d_pct": 104.75,
"chains": [
"Ethereum",
"Arbitrum"
]
},
{
"name": "Uniswap V4",
"volume_24h_usd": 1142033948,
"change_1d_pct": 15.18,
"change_7d_pct": 30.58,
"chains": [
"Ethereum",
"OP Mainnet"
]
}
],
"stale": false,
"as_of": "2026-11-04T20:10:57.907Z"
},
"meta": {
"request_id": "req_3416ae6caa61",
"as_of": "2026-11-04T20:10:57.907Z",
"source": "defillama"
}
}#Errors
| HTTP | Code | Meaning |
|---|---|---|
| 502 | upstream_unavailable | A public data source did not answer. |
All errors share one format. See errors.