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.

Try it
Ready-made, maintained by usRecords, 23 fieldsv1.0

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

Chainsoptional
Only volume on these chains, by name as DefiLlama lists them, such as Ethereum, Solana or Base. Each chain returns its own records with that chain's volume. Leave empty for volume across all chains. One per line, or separated by commas.
Example: Ethereum
Protocolsoptional
Only these DEXs, by name as DefiLlama lists them, such as Curve DEX or Uniswap V3. A family name such as Uniswap keeps all its versions. One per line, or separated by commas.
Example: Curve DEX
Categoriesoptional
Only these kinds of protocol, such as Dexs for exchanges alone; others include Launchpad, Prediction Market, Derivatives and Interface. Leave empty for all. One per line, or separated by commas.
Example: Dexs

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
Endpoint
POSThttps://pullrow.dev/v1/apis/dex-trading-volumes/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

chainslist
Only volume on these chains, by name as DefiLlama lists them, such as Ethereum, Solana or Base. Each chain returns its own records with that chain's volume. Leave empty for volume across all chains.
example: Ethereum
protocolslist
Only these DEXs, by name as DefiLlama lists them, such as Curve DEX or Uniswap V3. A family name such as Uniswap keeps all its versions.
example: Curve DEX
categorieslist
Only these kinds of protocol, such as Dexs for exchanges alone; others include Launchpad, Prediction Market, Derivatives and Interface. Leave empty for all.
example: Dexs

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

Pictures and media

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 nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
nametextName3 of 3
urllinkLink3 of 3
slugtextSlug3 of 3
categorytextCategory3 of 3
parent_protocoltextParent protocol3 of 3
chainslistChains3 of 3
chaintextChain3 of 3
ranknumberRank3 of 3
total_24hnumberTotal 24h3 of 3
total_7dnumberTotal 7d3 of 3
total_30dnumberTotal 30d3 of 3
total_1ynumberTotal 1y3 of 3
total_all_timenumberTotal all time3 of 3
share_24h_pctnumberShare 24h (%)3 of 3
change_1d_pctnumberChange 1d (%)3 of 3
change_7d_pctnumberChange 7d (%)3 of 3
change_1m_pctnumberChange 1m (%)3 of 3
change_7d_over_7d_pctnumberChange 7d over 7d (%)3 of 3
change_30d_over_30d_pctnumberChange 30d over 30d (%)3 of 3
is_double_countedyes or noDouble counted3 of 3
methodologytextMethodology2 of 3
logoimage linkLogo3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordNameSlugCategoryParent protocolChainsChainRankTotal 24hTotal 7dTotal 30dTotal 1yShare 24h (%)Change 1d (%)Change 7d (%)Change 1m (%)Change 7d over 7d (%)Change 30d over 30d (%)Double countedMethodologyTotal all timeLinkLogo
1Uniswap V3uniswap-v3DexsUniswapEthereum, Arbitrum, OP Mainnet, PolygonAll chains13,174,379,89411,636,755,83434,543,251,549364,409,174,09721.4862%28.98%756.78%83.51%114.86%3.62%NoSwap 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,210defillama.com/protocol/uniswap-v3icons.llamao.fi/icons/protocols/uniswap-v3
2Uniswap V4uniswap-v4DexsUniswapEthereum, OP Mainnet, Base, ArbitrumAll chains21,937,343,3358,441,320,97527,056,664,438303,814,732,31513.1131%8.29%215.93%39.75%79.2%-14.14%NoSwap volume, excluding wash trading and swaps settled with no tokens changing hands.524,057,303,666defillama.com/protocol/uniswap-v4icons.llamao.fi/icons/protocols/uniswap-v4
3PancakeSwap AMM V3pancakeswap-amm-v3DexsPancakeSwapBSC, Ethereum, Polygon zkEVM, ZKsync EraAll chains3952,192,6304,889,801,88219,713,915,718255,303,605,3766.445%-8.24%158.55%6.23%33.99%15.38%No—1,010,907,319,123defillama.com/protocol/pancakeswap-amm-v3icons.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.
Known limits
  • 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.