List DEX, aggregator and options volume
curl --request GET \
--url https://api.darvas.app/v1/defi/dex-volumes \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/defi/dex-volumes"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/defi/dex-volumes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"market": "spot",
"chain": null,
"totals": {
"volume_24h_usd": 5255611335.92,
"volume_7d_usd": 49949786873.12,
"volume_30d_usd": 246818754062.08,
"change_1d_pct": -18.91,
"change_7d_pct": -38.43,
"change_30d_pct": -67.63
},
"protocols": [
{
"slug": "uniswap-v3",
"name": "Uniswap V3",
"protocol_type": "protocol",
"category": "Dexs",
"chains": [
"ethereum",
"arbitrum",
"base"
],
"volume_24h_usd": 522715503,
"volume_7d_usd": 5416018590,
"volume_30d_usd": 31282139501,
"volume_1y_usd": 410000000000,
"volume_all_time_usd": 3100000000000,
"change_1d_pct": -12.4,
"change_7d_pct": -30.1,
"change_30d_pct": -55.2,
"share_24h_pct": 9.9459
}
],
"total_matched": 1705
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}DeFi
DEX Volume API: Spot, Aggregators & Options
Rank DEXs, DEX aggregators, perpetual aggregators and on-chain options by 24-hour to all-time volume, with each protocol’s changes and market share.
List DEX, aggregator and options volume
curl --request GET \
--url https://api.darvas.app/v1/defi/dex-volumes \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/defi/dex-volumes"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/defi/dex-volumes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"market": "spot",
"chain": null,
"totals": {
"volume_24h_usd": 5255611335.92,
"volume_7d_usd": 49949786873.12,
"volume_30d_usd": 246818754062.08,
"change_1d_pct": -18.91,
"change_7d_pct": -38.43,
"change_30d_pct": -67.63
},
"protocols": [
{
"slug": "uniswap-v3",
"name": "Uniswap V3",
"protocol_type": "protocol",
"category": "Dexs",
"chains": [
"ethereum",
"arbitrum",
"base"
],
"volume_24h_usd": 522715503,
"volume_7d_usd": 5416018590,
"volume_30d_usd": 31282139501,
"volume_1y_usd": 410000000000,
"volume_all_time_usd": 3100000000000,
"change_1d_pct": -12.4,
"change_7d_pct": -30.1,
"change_30d_pct": -55.2,
"share_24h_pct": 9.9459
}
],
"total_matched": 1705
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
This endpoint ranks protocols by trading volume in one market: spot DEXs, DEX aggregators, perpetuals routed through aggregators, or on-chain options by notional or premium. Each protocol carries its 24-hour, 7-day, 30-day, one-year and all-time volume, the changes over 1, 7 and 30 days, and its share of the market’s 24-hour volume.totals sums the whole market. Filter by chain or category, or search by name.
| Coverage | Details |
|---|---|
| Markets | spot, aggregators, perps_aggregators, options_notional, options_premium |
| Windows | 24 hours, 7 days, 30 days, 1 year and all time |
| Results | Up to 500 protocols; 50 by default |
| MCP tool | list_defi_dex_volumes on the data API MCP server |
Example
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
answer = requests.get(
"https://api.darvas.app/v1/defi/dex-volumes",
headers=headers,
params={
"market": "spot",
"chain": "Solana",
"limit": 20,
},
).json()
print(answer["totals"])
for protocol in answer["protocols"]:
print(protocol["name"], protocol["volume_24h_usd"], protocol["share_24h_pct"])
curl -H "X-API-KEY: $DARVAS_API_KEY" \
"https://api.darvas.app/v1/defi/dex-volumes?market=spot&chain=Solana&limit=20"
Authorizations
apiKeybearerKey
Query Parameters
Response
List DEX, aggregator and options volume: one page.
The answer of GET /defi/dex-volumes.