DEX Trading Volumes API
Trading volume of every decentralised exchange DefiLlama tracks, across all chains or per chain: 24-hour, 7-day, 30-day, 1-year and all-time volume in US dollars, market share, rank, daily and weekly changes, category and chains.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from api.llama.fi/overview/dexs?excludeTotalDataChart=true&excludeTotalDataChartBreakdown=true
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/dex-trading-volumes/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"chains":["Ethereum"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
23 fields: 22 here, 1 technical one under Technical details.
Basics
- Name
Name of the DEX as DefiLlama lists it, such as Uniswap V3.
Example Uniswap V3
- Slug
DefiLlama's short name for the DEX, as in its links, such as uniswap-v3.
Example uniswap-v3
- Category
Kind of protocol, such as Dexs, Launchpad or Interface.
Example Dexs
- Parent protocol
The family the DEX belongs to, such as Uniswap for Uniswap V3.
Example Uniswap
- Chains
Every chain the DEX runs on.
Example Ethereum, Arbitrum
- Chain
The chain these volumes are for, or All chains when the run has no chain filter.
Example All chains
- Rank
Rank by 24-hour volume among the DEXs on that chain, or on all chains (1 = most).
Example 1
- Total 24h
Trading volume in the last 24 hours (the latest day the source has counted), in US dollars.
Example 3,174,379,894
- Total 7d
Trading volume in the last 7 days, in US dollars.
Example 11,636,755,834
- Total 30d
Trading volume in the last 30 days, in US dollars.
Example 34,543,251,549
- Total 1y
Trading volume in the last 365 days, in US dollars.
Example 364,409,174,097
- Share 24h (%)
Share of the day's total DEX volume on that chain, or on all chains, in percent.
Example 21.4862%
- Change 1d (%)
Change of the 24-hour volume against the day before, in percent.
Example 28.98%
- Change 7d (%)
Change of the 24-hour volume against the same day a week earlier, in percent.
Example 756.78%
- Change 1m (%)
Change of the 24-hour volume against the same day 30 days earlier, in percent.
Example 83.51%
- Change 7d over 7d (%)
Change of the last 7 days' volume against the 7 days before, in percent.
Example 114.86%
- Change 30d over 30d (%)
Change of the last 30 days' volume against the 30 days before, in percent.
Example 3.62%
- Double counted
Yes when this volume is also counted under another DEX (front ends, aggregators); market totals leave it out.
Example No
- Methodology
How the source counts this DEX's volume, when it says.
Example Swap volume, excluding wash trading: pools whose daily trades come from too few distinct addresses to be organic,…
Dates
- Total all time
Trading volume since the source started counting the DEX, in US dollars.
Example 2,939,345,859,210
Links
- Link
The DEX's page on DefiLlama.
Pictures and media
- Logo
The DEX's logo.
Example Open the image
Technical detailsField names and types for developers, and the 1 field hidden above
Hidden by default
This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.
- ID
idDefiLlama's id of the DEX.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
name | text | Name | 3 of 3 |
url | link | Link | 3 of 3 |
slug | text | Slug | 3 of 3 |
category | text | Category | 3 of 3 |
parent_protocol | text | Parent protocol | 3 of 3 |
chains | list | Chains | 3 of 3 |
chain | text | Chain | 3 of 3 |
rank | number | Rank | 3 of 3 |
total_24h | number | Total 24h | 3 of 3 |
total_7d | number | Total 7d | 3 of 3 |
total_30d | number | Total 30d | 3 of 3 |
total_1y | number | Total 1y | 3 of 3 |
total_all_time | number | Total all time | 3 of 3 |
share_24h_pct | number | Share 24h (%) | 3 of 3 |
change_1d_pct | number | Change 1d (%) | 3 of 3 |
change_7d_pct | number | Change 7d (%) | 3 of 3 |
change_1m_pct | number | Change 1m (%) | 3 of 3 |
change_7d_over_7d_pct | number | Change 7d over 7d (%) | 3 of 3 |
change_30d_over_30d_pct | number | Change 30d over 30d (%) | 3 of 3 |
is_double_counted | yes or no | Double counted | 3 of 3 |
methodology | text | Methodology | 2 of 3 |
logo | image link | Logo | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Name | Slug | Category | Parent protocol | Chains | Chain | Rank | Total 24h | Total 7d | Total 30d | Total 1y | Share 24h (%) | Change 1d (%) | Change 7d (%) | Change 1m (%) | Change 7d over 7d (%) | Change 30d over 30d (%) | Double counted | Methodology | Total all time | Link | Logo |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Uniswap V3 | uniswap-v3 | Dexs | Uniswap | Ethereum, Arbitrum, OP Mainnet, Polygon | All chains | 1 | 3,174,379,894 | 11,636,755,834 | 34,543,251,549 | 364,409,174,097 | 21.4862% | 28.98% | 756.78% | 83.51% | 114.86% | 3.62% | No | Swap volume, excluding wash trading: pools whose daily trades come from too few distinct addresses to be organic, unless every pool token is a core asset or CoinGecko-listed. | 2,939,345,859,210 | defillama.com/protocol/uniswap-v3 | icons.llamao.fi/icons/protocols/uniswap-v3 |
| 2 | Uniswap V4 | uniswap-v4 | Dexs | Uniswap | Ethereum, OP Mainnet, Base, Arbitrum | All chains | 2 | 1,937,343,335 | 8,441,320,975 | 27,056,664,438 | 303,814,732,315 | 13.1131% | 8.29% | 215.93% | 39.75% | 79.2% | -14.14% | No | Swap volume, excluding wash trading and swaps settled with no tokens changing hands. | 524,057,303,666 | defillama.com/protocol/uniswap-v4 | icons.llamao.fi/icons/protocols/uniswap-v4 |
| 3 | PancakeSwap AMM V3 | pancakeswap-amm-v3 | Dexs | PancakeSwap | BSC, Ethereum, Polygon zkEVM, ZKsync Era | All chains | 3 | 952,192,630 | 4,889,801,882 | 19,713,915,718 | 255,303,605,376 | 6.445% | -8.24% | 158.55% | 6.23% | 33.99% | 15.38% | No | — | 1,010,907,319,123 | defillama.com/protocol/pancakeswap-amm-v3 | icons.llamao.fi/icons/protocols/pancakeswap-amm-v3 |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Volumes are DefiLlama's own counts, in US dollars, and each DEX is counted its own way (some leave out wash trading); methodology says how when the source explains it, for under half of the DEXs.
- The 24-hour figure is the latest day the source has counted, and recent days can still be revised. Change figures are empty for about 4 in 10 DEXs.
- The list also holds prediction markets, launchpads, trading apps and front ends that report trading volume; set categories to Dexs for exchanges alone. is_double_counted marks volume counted again under another DEX; the market total behind share_24h_pct leaves it out.
- About 4 in 10 listed DEXs had no volume in the last day; they rank last.
- A chain filter reads one more request per chain, and every total is then that chain's volume only. The source's free tier is rate limited, and the API stops if it is asked to slow down.
- Figures come from DefiLlama's free open data; DefiLlama appreciates credit (defillama.com) when you publish them.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.