Skip to content

defillama

defillama fees

Protocol fees and revenue queries.

defillama fees overview

List protocols ranked by fees and revenue.

Options

FlagTypeDefaultDescription
--chainstringFilter by chain name
--limitnumber20Max protocols to display
--sortstringtotal24hSort field: total24h, total7d, or change_1d
--categorystringFilter by category (e.g. Dexs, Lending, Bridge)

Output

FieldTypeRequiredDescription
protocolsarrayyes
protocols[].namestringyes
protocols[].fees_24hstringyes
protocols[].fees_7dstringyes
protocols[].change_1dstringyes
chainstringno
categorystringno
totalnumberyes

Examples

sh
# Top 10 protocols by 24h fees
defillama fees overview --limit 10

# Top protocols on Abstract by fees
defillama fees overview --chain abstract --limit 10

# Top 5 by 1-day fee change
defillama fees overview --sort change_1d --limit 5

# Top 10 DEXes by fees
defillama fees overview --category Dexs --limit 10

defillama fees protocol

Get detailed fee and revenue data for a specific protocol.

Arguments

NameTypeRequiredDescription
slugstringyesProtocol slug (e.g. aave, lido)

Output

FieldTypeRequiredDescription
namestringyes
fees_24hstringyes
fees_7dstringyes
fees_30dstringyes
fees_all_timestringyes
change_1dstringyes
change_7dstringyes
change_1mstringyes
chainsarrayyes

Examples

sh
# Aave fee details
defillama fees protocol aave

defillama prices

Token price queries via coins.llama.fi.

defillama prices chart

Get a price chart over a time range.

Arguments

NameTypeRequiredDescription
coinsstringyesCoin identifiers (chainName:0xAddress)

Options

FlagTypeDefaultDescription
--startstringStart timestamp or ISO date
--endstringEnd timestamp or ISO date (default: now)
--spannumberNumber of data points
--periodstringData point period (e.g. 1d, 1h, 4h)
--search-widthstring4hTimestamp search width (e.g. 4h, 600)

Output

FieldTypeRequiredDescription
chartsarrayyes
charts[].coinstringyes
charts[].symbolstringyes
charts[].pricesarrayyes
charts[].prices[].datestringyes
charts[].prices[].pricestringyes

Examples

sh
# USDT daily price chart since 2025-01-01
defillama prices chart ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7 --start 2025-01-01 --period 1d

defillama prices current

Get current prices for one or more tokens.

Arguments

NameTypeRequiredDescription
coinsstringyesCoin identifiers (chainName:0xAddress)

Options

FlagTypeDefaultDescription
--search-widthstring4hTimestamp search width (e.g. 4h, 6h)

Output

FieldTypeRequiredDescription
pricesarrayyes
prices[].coinstringyes
prices[].symbolstringyes
prices[].pricestringyes
prices[].confidencenumberno
prices[].timestampstringyes

Examples

sh
# Current price of USDT on Ethereum
defillama prices current ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7

defillama prices historical

Get token prices at a specific point in time.

Arguments

NameTypeRequiredDescription
coinsstringyesCoin identifiers (chainName:0xAddress)

Options

FlagTypeDefaultDescription
--timestampstringUnix timestamp in seconds
--datestringISO date string (e.g. 2025-01-01)
--search-widthstring4hTimestamp search width (e.g. 4h, 6h)

Output

FieldTypeRequiredDescription
pricesarrayyes
prices[].coinstringyes
prices[].symbolstringyes
prices[].pricestringyes
prices[].timestampstringyes

Examples

sh
# USDT price on 2025-01-01
defillama prices historical ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7 --date 2025-01-01

defillama protocols

Protocol queries (ranked by TVL).

defillama protocols list

List protocols ranked by TVL (alias for tvl protocols).

Options

FlagTypeDefaultDescription
--chainstringFilter protocols by chain name
--limitnumber20Max protocols to display
--sortstringtvlSort field: tvl, change_1d, or change_7d

Output

FieldTypeRequiredDescription
protocolsarrayyes
protocols[].namestringyes
protocols[].tvlstringyes
protocols[].change_1dstringyes
protocols[].change_7dstringyes
protocols[].categorystringyes
chainstringno
totalnumberyes

Examples

sh
# Top 10 protocols by TVL
defillama protocols list --limit 10

# Top protocols on Abstract
defillama protocols list --chain abstract --limit 10

# Top 5 by 1-day change
defillama protocols list --sort change_1d --limit 5

defillama tvl

Total value locked queries.

defillama tvl chains

List chains ranked by TVL.

Options

FlagTypeDefaultDescription
--limitnumber20Max chains to display

Output

FieldTypeRequiredDescription
chainsarrayyes
chains[].namestringyes
chains[].tvlstringyes
totalnumberyes

Examples

sh
# Top 10 chains by TVL
defillama tvl chains --limit 10

defillama tvl history

Show historical TVL for a protocol.

Arguments

NameTypeRequiredDescription
slugstringyesProtocol slug (e.g. aave, uniswap)

Options

FlagTypeDefaultDescription
--daysnumber30Number of days of history to display
--chainstringFilter to a specific chain

Output

FieldTypeRequiredDescription
protocolstringyes
chainstringno
daysnumberyes
historyarrayyes
history[].datestringyes
history[].tvlstringyes

Examples

sh
# Aave 7-day TVL history
defillama tvl history aave --days 7

# Uniswap Ethereum chain TVL over 14 days
defillama tvl history uniswap --days 14 --chain Ethereum

defillama tvl protocol

Get detailed protocol info with TVL breakdown by chain.

Arguments

NameTypeRequiredDescription
slugstringyesProtocol slug (e.g. aave, uniswap)

Output

FieldTypeRequiredDescription
namestringyes
descriptionstringyes
categorystringyes
urlstringyes
symbolstringyes
tvlstringyes
chainsarrayyes
chains[].chainstringyes
chains[].tvlstringyes

Examples

sh
# Aave protocol details
defillama tvl protocol aave

defillama tvl protocols

List protocols ranked by TVL.

Options

FlagTypeDefaultDescription
--chainstringFilter protocols by chain name
--limitnumber20Max protocols to display
--sortstringtvlSort field: tvl, change_1d, or change_7d

Output

FieldTypeRequiredDescription
protocolsarrayyes
protocols[].namestringyes
protocols[].tvlstringyes
protocols[].change_1dstringyes
protocols[].change_7dstringyes
protocols[].categorystringyes
chainstringno
totalnumberyes

Examples

sh
# Top 10 protocols by TVL
defillama tvl protocols --limit 10

# Top protocols on Abstract
defillama tvl protocols --chain abstract --limit 10

# Top 5 by 1-day change
defillama tvl protocols --sort change_1d --limit 5

defillama volume

DEX volume queries.

defillama volume aggregators

List DEX aggregators ranked by trading volume.

Options

FlagTypeDefaultDescription
--chainstringFilter by chain name
--limitnumber20Max aggregators to display

Output

FieldTypeRequiredDescription
protocolsarrayyes
protocols[].namestringyes
protocols[].volume_24hstringyes
protocols[].volume_7dstringyes
protocols[].change_1dstringyes
chainstringno
totalnumberyes

Examples

sh
# Top 10 DEX aggregators by volume
defillama volume aggregators --limit 10

# Top 5 aggregators on Ethereum
defillama volume aggregators --chain ethereum --limit 5

defillama volume dexs

List DEXes ranked by trading volume.

Options

FlagTypeDefaultDescription
--chainstringFilter by chain name
--limitnumber20Max protocols to display
--sortstringtotal24hSort field: total24h, total7d, or change_1d
--categorystringFilter by category (e.g. Dexs, Prediction)

Output

FieldTypeRequiredDescription
protocolsarrayyes
protocols[].namestringyes
protocols[].volume_24hstringyes
protocols[].volume_7dstringyes
protocols[].change_1dstringyes
chainstringno
categorystringno
totalnumberyes

Examples

sh
# Top 10 DEXes by 24h volume
defillama volume dexs --limit 10

# Top DEXes on Abstract
defillama volume dexs --chain abstract --limit 10

# Top 5 by 1-day volume change
defillama volume dexs --sort change_1d --limit 5

# Top 10 DEXes excluding prediction markets
defillama volume dexs --category Dexs --limit 10

defillama volume overview

Overview of DEX trading volume (alias for volume dexs).

Options

FlagTypeDefaultDescription
--chainstringFilter by chain name
--limitnumber20Max protocols to display
--sortstringtotal24hSort field: total24h, total7d, or change_1d
--categorystringFilter by category (e.g. Dexs, Prediction)

Output

FieldTypeRequiredDescription
protocolsarrayyes
protocols[].namestringyes
protocols[].volume_24hstringyes
protocols[].volume_7dstringyes
protocols[].change_1dstringyes
chainstringno
categorystringno
totalnumberyes

Examples

sh
# Top 10 DEXes by 24h volume
defillama volume overview --limit 10

# Top 5 DEXes on Abstract by volume
defillama volume overview --chain abstract --limit 5

defillama volume protocol

Get detailed volume data for a specific protocol.

Arguments

NameTypeRequiredDescription
slugstringyesProtocol slug (e.g. uniswap, curve-dex)

Output

FieldTypeRequiredDescription
namestringyes
volume_24hstringyes
volume_7dstringyes
volume_30dstringyes
volume_all_timestringyes
change_1dstringyes
change_7dstringyes
change_1mstringyes
chainsarrayyes

Examples

sh
# Uniswap volume details
defillama volume protocol uniswap