Account
usage
account.usage
Get amount of credits left in the api key, these reset on the 1st of each month (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.account.usage({});
any
Bridges
dayStats
bridges.dayStats
Get a 24hr token and address volume breakdown for a bridge (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.bridges.dayStats({ timestamp: 1764547200, chain: 'Ethereum' });
| Name | Type | Required | Description |
|---|---|---|---|
timestamp | number | Yes | Unix timestamp. Data returned will be for the 24hr period starting at 00:00 UTC that the timestamp lands in. |
chain | string | Yes | chain slug, you can get these from /chains. |
id | number | No | bridge ID, you can get these from /bridges |
| Name | Type | Required | Description |
|---|---|---|---|
date | number | null | No | Date timestamp |
totalTokensDeposited | object | null | No | Total tokens deposited with their details |
totalTokensWithdrawn | object | null | No | Total tokens withdrawn with their details |
totalAddressDeposited | object | null | No | Total addresses that deposited with their details |
totalAddressWithdrawn | object | null | No | Total addresses that withdrew with their details |
totalTokensDeposited full type
totalTokensDeposited full type
Record<string, {
usdValue?: number | null,
amount?: string | null,
symbol?: string | null,
decimals?: number | null
}> | null
totalTokensWithdrawn full type
totalTokensWithdrawn full type
Record<string, {
usdValue?: number | null,
amount?: string | null,
symbol?: string | null,
decimals?: number | null
}> | null
totalAddressDeposited full type
totalAddressDeposited full type
Record<string, {
usdValue?: number | null,
txs?: number | null
}> | null
totalAddressWithdrawn full type
totalAddressWithdrawn full type
Record<string, {
usdValue?: number | null,
txs?: number | null
}> | null
get
bridges.get
Get summary of bridge volume and volume breakdown by chain (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.bridges.get({ id: 1 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | bridge ID, you can get these from /bridges |
| Name | Type | Required | Description |
|---|---|---|---|
id | number | null | No | Bridge ID |
name | string | null | No | Bridge name |
displayName | string | null | No | Bridge display name |
lastHourlyVolume | number | null | No | Last hourly volume |
currentDayVolume | number | null | No | Current day volume |
lastDailyVolume | number | null | No | Last daily volume |
dayBeforeLastVolume | number | null | No | Day before last volume |
weeklyVolume | number | null | No | Weekly volume |
monthlyVolume | number | null | No | Monthly volume |
lastHourlyTxs | object | null | No | Last hourly transactions |
currentDayTxs | object | null | No | Current day transactions |
prevDayTxs | object | null | No | Previous day transactions |
dayBeforeLastTxs | object | null | No | Day before last transactions |
weeklyTxs | object | null | No | Weekly transactions |
monthlyTxs | object | null | No | Monthly transactions |
chainBreakdown | object | null | No | Volume breakdown by chain |
destinationChain | string | null | No | Destination chain |
lastHourlyTxs full type
lastHourlyTxs full type
{
deposits?: number | null,
withdrawals?: number | null
} | null
currentDayTxs full type
currentDayTxs full type
{
deposits?: number | null,
withdrawals?: number | null
} | null
prevDayTxs full type
prevDayTxs full type
{
deposits?: number | null,
withdrawals?: number | null
} | null
dayBeforeLastTxs full type
dayBeforeLastTxs full type
{
deposits?: number | null,
withdrawals?: number | null
} | null
weeklyTxs full type
weeklyTxs full type
{
deposits?: number | null,
withdrawals?: number | null
} | null
monthlyTxs full type
monthlyTxs full type
{
deposits?: number | null,
withdrawals?: number | null
} | null
chainBreakdown full type
chainBreakdown full type
{
} | null
list
bridges.list
List all bridges along with summaries of recent bridge volumes (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.bridges.list({});
| Name | Type | Required | Description |
|---|---|---|---|
includeChains | boolean | No | set whether to include current previous day volume breakdown by chain |
| Name | Type | Required | Description |
|---|---|---|---|
bridges | object[] | null | No | List of bridges |
bridges full type
bridges full type
{
id?: number | null,
name?: string | null,
displayName?: string | null,
icon?: string | null,
volumePrevDay?: number | null,
volumePrev2Day?: number | null,
lastHourlyVolume?: number | null,
last24hVolume?: number | null,
lastDailyVolume?: number | null,
dayBeforeLastVolume?: number | null,
weeklyVolume?: number | null,
monthlyVolume?: number | null,
chains?: string[] | null,
destinationChain?: string | null,
url?: string | null,
slug?: string | null
}[] | null
transactions
bridges.transactions
Get all transactions for a bridge within a date range (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.bridges.transactions({ id: 1 });
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Yes | bridge ID, you can get these from /bridges |
starttimestamp | number | No | start timestamp (Unix Timestamp) for date range |
endtimestamp | number | No | end timestamp (Unix timestamp) for date range |
sourcechain | string | No | Returns only transactions that are bridging from the specified source chain. |
address | string | No | Returns only transactions with specified address as “from” or “to”. Addresses are quried in the form {chain}:{address}, where chain is an identifier such as ethereum, bsc, polygon, avax… . |
limit | number | No | limit to number of transactions returned, maximum is 6000 |
object \| object[]
Output full type
Output full type
{
id?: number | null,
name?: string | null,
displayName?: string | null,
lastHourlyVolume?: number | null,
currentDayVolume?: number | null,
lastDailyVolume?: number | null,
dayBeforeLastVolume?: number | null,
weeklyVolume?: number | null,
monthlyVolume?: number | null,
lastHourlyTxs?: {
deposits?: number | null,
withdrawals?: number | null
} | null,
currentDayTxs?: {
deposits?: number | null,
withdrawals?: number | null
} | null,
prevDayTxs?: {
deposits?: number | null,
withdrawals?: number | null
} | null,
dayBeforeLastTxs?: {
deposits?: number | null,
withdrawals?: number | null
} | null,
weeklyTxs?: {
deposits?: number | null,
withdrawals?: number | null
} | null,
monthlyTxs?: {
deposits?: number | null,
withdrawals?: number | null
} | null,
chainBreakdown?: Record<string, {
lastHourlyVolume?: number | null,
currentDayVolume?: number | null,
lastDailyVolume?: number | null,
dayBeforeLastVolume?: number | null,
weeklyVolume?: number | null,
monthlyVolume?: number | null,
last24hVolume?: number | null,
lastHourlyTxs?: {
deposits?: number | null,
withdrawals?: number | null
} | null,
currentDayTxs?: {
deposits?: number | null,
withdrawals?: number | null
} | null,
prevDayTxs?: {
deposits?: number | null,
withdrawals?: number | null
} | null,
dayBeforeLastTxs?: {
deposits?: number | null,
withdrawals?: number | null
} | null,
weeklyTxs?: {
deposits?: number | null,
withdrawals?: number | null
} | null,
monthlyTxs?: {
deposits?: number | null,
withdrawals?: number | null
} | null
}> | null,
destinationChain?: string | null
} | {
tx_hash?: string | null,
ts?: string | null,
tx_block?: number | null,
tx_from?: string | null,
tx_to?: string | null,
token?: string | null,
amount?: string | null,
chain?: string | null,
bridge_name?: string | null,
usd_value?: number | null | null,
sourceChain?: string | null
}[]
volume
bridges.volume
Get historical volumes for a bridge, chain, or bridge on a particular chain (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.bridges.volume({ chain: 'Ethereum' });
| Name | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | chain slug, you can get these from /chains. Call also use ‘all’ for volume on all chains. |
id | number | No | bridge ID, you can get these from /bridges |
object[]
Output full type
Output full type
{
date?: string | null,
depositUSD?: number | null,
withdrawUSD?: number | null,
depositTxs?: number | null,
withdrawTxs?: number | null
}[]
Coins
batchHistorical
coins.batchHistorical
Get historical prices for multiple tokens at multiple different timestamps
Risk: read
await corsair.defillama.api.coins.batchHistorical({ coins: '{"coingecko:ethereum": [1764547200, 1764633600]}' });
| Name | Type | Required | Description |
|---|---|---|---|
coins | string | Yes | object where keys are coins in the form {chain}:{address}, and values are arrays of requested timestamps |
| Name | Type | Required | Description |
|---|---|---|---|
coins | object | null | No | — |
coins full type
coins full type
Record<string, {
symbol?: string | null,
prices?: {
timestamp?: number | null,
price?: number | null,
confidence?: number | null
}[] | null
}> | null
block
coins.block
Get the closest block to a timestamp
Risk: read
await corsair.defillama.api.coins.block({ chain: 'Ethereum', timestamp: 1764547200 });
| Name | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Chain which you want to get the block from |
timestamp | number | Yes | UNIX timestamp of the block you are searching for |
| Name | Type | Required | Description |
|---|---|---|---|
height | number | null | No | — |
timestamp | number | null | No | — |
chart
coins.chart
Get token prices at regular time intervals
Risk: read
await corsair.defillama.api.coins.chart({ coins: 'coingecko:ethereum,ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7' });
| Name | Type | Required | Description |
|---|---|---|---|
coins | string | Yes | set of comma-separated tokens defined as {chain}:{address} |
start | number | No | unix timestamp of earliest data point requested |
end | number | No | unix timestamp of latest data point requested |
span | number | No | number of data points returned, defaults to 0 |
period | string | No | duration between data points, defaults to 24 hours |
| Name | Type | Required | Description |
|---|---|---|---|
coins | object | null | No | — |
coins full type
coins full type
Record<string, {
decimals?: number | null,
confidence?: number | null,
prices?: {
timestamp?: number | null,
price?: number | null
}[] | null,
symbol?: string | null
}> | null
current
coins.current
Get current prices of tokens by contract address
Risk: read
await corsair.defillama.api.coins.current({ coins: 'coingecko:ethereum,coingecko:bitcoin' });
| Name | Type | Required | Description |
|---|---|---|---|
coins | string | Yes | set of comma-separated tokens defined as {chain}:{address} |
| Name | Type | Required | Description |
|---|---|---|---|
coins | object | null | No | — |
coins full type
coins full type
Record<string, {
decimals?: number | null,
price?: number | null,
symbol?: string | null,
timestamp?: number | null,
confidence?: number | null
}> | null
first
coins.first
Get earliest timestamp price record for coins
Risk: read
await corsair.defillama.api.coins.first({ coins: 'coingecko:ethereum,ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7' });
| Name | Type | Required | Description |
|---|---|---|---|
coins | string | Yes | set of comma-separated tokens defined as {chain}:{address} |
| Name | Type | Required | Description |
|---|---|---|---|
coins | object | null | No | — |
coins full type
coins full type
Record<string, {
price?: number | null,
symbol?: string | null,
timestamp?: number | null
}> | null
historical
coins.historical
Get historical prices of tokens by contract address
Risk: read
await corsair.defillama.api.coins.historical({ coins: 'coingecko:ethereum,ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7', timestamp: 1764547200 });
| Name | Type | Required | Description |
|---|---|---|---|
coins | string | Yes | set of comma-separated tokens defined as {chain}:{address} |
timestamp | number | Yes | UNIX timestamp of time when you want historical prices |
| Name | Type | Required | Description |
|---|---|---|---|
coins | object | null | No | — |
coins full type
coins full type
Record<string, {
decimals?: number | null,
price?: number | null,
symbol?: string | null,
timestamp?: number | null,
confidence?: number | null
}> | null
percentageChange
coins.percentageChange
Get percentage change in price over time
Risk: read
await corsair.defillama.api.coins.percentageChange({ coins: 'coingecko:ethereum,ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7' });
| Name | Type | Required | Description |
|---|---|---|---|
coins | string | Yes | set of comma-separated tokens defined as {chain}:{address} |
timestamp | number | No | timestamp of data point requested, defaults to time now |
lookForward | boolean | No | whether you want the duration after your given timestamp or not, defaults to false (looking back) |
period | string | No | duration between data points, defaults to 24 hours |
| Name | Type | Required | Description |
|---|---|---|---|
coins | Record<string, number> | null | No | — |
Dat
institution
dat.institution
Get individual institution Digital Asset Treasury details (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.dat.institution({ symbol: 'USDT' });
| Name | Type | Required | Description |
|---|---|---|---|
symbol | string | Yes | Institution ticker symbol (e.g., MSTR for MicroStrategy) |
| Name | Type | Required | Description |
|---|---|---|---|
institutionId | number | null | No | Unique institution identifier |
ticker | string | null | No | Institution ticker symbol |
name | string | null | No | Institution name |
type | string | null | No | Institution type |
rank | number | null | No | Institution rank |
price | number | null | No | Current share price |
priceChange24h | number | null | No | 24h price change percentage |
volume24h | number | null | No | 24h trading volume |
fd_realized | string | null | No | Fully diluted shares - realized count |
fd_realistic | string | null | No | Fully diluted shares - realistic count |
fd_max | string | null | No | Fully diluted shares - maximum count |
mcap_realized | number | null | No | Market cap using realized share count |
mcap_realistic | number | null | No | Market cap using realistic share count |
mcap_max | number | null | No | Market cap using maximum share count |
realized_mNAV | number | null | No | Realized mNAV ratio |
realistic_mNAV | number | null | No | Realistic mNAV ratio |
max_mNAV | number | null | No | Maximum mNAV ratio |
totalCost | number | null | No | Total cost basis of crypto holdings |
totalUsdValue | number | null | No | Total USD value of crypto holdings |
assets | object | null | No | Asset holdings by asset type |
assetsMeta | object | null | No | Metadata for assets held |
ohlcv | [number | null, number | null, number | null, number | null, number | null, number | null, ...any[]][] | null | No | Historical OHLCV data |
assetValue | [number | null, number | null, ...any[]][] | null | No | Historical asset value data |
stats | [number | null, number | null, number | null, number | null, number | null, number | null, number | null, number | null, number | null, number | null, ...any[]][] | null | No | Compact historical stats: [timestamp, fd_realized, fd_realistic, fd_maximum, mcap_realized, mcap_realistic, mcap_max, mnav_realized, mnav_realistic, mnav_max] |
transactions | object[] | null | No | Transaction history |
lastUpdated | string | null | No | Last update timestamp |
assets full type
assets full type
Record<string, {
amount?: number | null,
avgPrice?: number | null,
usdValue?: number | null,
cost?: number | null
}> | null
assetsMeta full type
assetsMeta full type
Record<string, {
name?: string | null,
ticker?: string | null
}> | null
transactions full type
transactions full type
{
id?: number | null,
asset?: string | null,
amount?: string | null,
avg_price?: string | null,
usd_value?: string | null,
start_date?: string | null,
end_date?: string | null,
report_date?: string | null,
type?: string | null,
source_type?: string | null,
source_url?: string | null,
source_note?: string | null,
is_approved?: boolean | null,
reject_reason?: string | null | null,
last_updated?: string | null,
ticker?: string | null,
assetName?: string | null,
assetTicker?: string | null
}[] | null
institutions
dat.institutions
Get list of all institutions with Digital Asset Treasury data (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.dat.institutions({});
| Name | Type | Required | Description |
|---|---|---|---|
institutionMetadata | object | null | No | — |
assetMetadata | object | null | No | — |
institutions | object[] | null | No | — |
assets | object | null | No | — |
totalCompanies | number | null | No | Total number of companies tracked |
flows | Record<string, [number | null, number | null, number | null, number | null, number | null, number | null, ...any[]][]> | null | No | — |
mNAV | Record<string, Record<string, [number | null, number | null, number | null, number | null, ...any[]][]>> | null | No | — |
lastUpdated | string | null | No | Last update timestamp |
institutionMetadata full type
institutionMetadata full type
Record<string, {
institutionId?: number | null,
ticker?: string | null,
name?: string | null,
type?: string | null,
price?: number | null,
priceChange24h?: number | null,
volume24h?: number | null,
mcapRealized?: number | null,
mcapRealistic?: number | null,
mcapMax?: number | null,
realized_mNAV?: number | null,
realistic_mNAV?: number | null,
max_mNAV?: number | null,
totalUsdValue?: number | null,
totalCost?: number | null,
holdings?: Record<string, {
amount?: number | null,
avgPrice?: number | null,
usdValue?: number | null,
cost?: number | null,
transactionCount?: number | null,
firstAnnouncementDate?: string | null,
lastAnnouncementDate?: string | null,
supplyPercentage?: number | null
}> | null
}> | null
assetMetadata full type
assetMetadata full type
Record<string, {
name?: string | null,
ticker?: string | null,
geckoId?: string | null,
companies?: number | null,
totalAmount?: number | null,
totalUsdValue?: number | null,
circSupplyPerc?: number | null
}> | null
institutions full type
institutions full type
{
institutionId?: number | null,
totalUsdValue?: number | null,
totalCost?: number | null
}[] | null
assets full type
assets full type
Record<string, {
institutionId?: number | null,
usdValue?: number | null,
amount?: number | null
}[]> | null
Dimensions
categories
dimensions.categories
Get categories available for a dimension
Risk: read
await corsair.defillama.api.dimensions.categories({ metric: 'fees' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | active-users | Yes | The dimension metric type |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity - active-users: dailyActiveUsers (default), dailyTransactionCount, dailyGasUsed For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
object[]
Output full type
Output full type
{
category?: string | null,
total24h?: number | null | null,
total7d?: number | null | null,
total30d?: number | null | null,
chains?: string[] | null
}[]
categoryChainChart
dimensions.categoryChainChart
Get category chain historical timeseries chart data
Risk: read
await corsair.defillama.api.dimensions.categoryChainChart({ metric: 'fees', category: 'Dexs', chain: 'Ethereum' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | Yes | The dimension metric type |
category | string | Yes | category slug (slugified category name, e.g. ‘dexs’, ‘prediction-market’, ‘options’) |
chain | string | Yes | chain name |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
number[][]
categoryChainChartByProtocol
dimensions.categoryChainChartByProtocol
Get category chain timeseries chart data breakdown by protocol
Risk: read
await corsair.defillama.api.dimensions.categoryChainChartByProtocol({ metric: 'fees', category: 'Dexs', chain: 'Ethereum' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | Yes | The dimension metric type |
category | string | Yes | category slug (slugified category name, e.g. ‘dexs’, ‘prediction-market’, ‘options’) |
chain | string | Yes | chain name |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
any[]
categoryChainMetrics
dimensions.categoryChainMetrics
Get category chain dimension data overview
Risk: read
await corsair.defillama.api.dimensions.categoryChainMetrics({ metric: 'fees', category: 'Dexs', chain: 'Ethereum' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | Yes | The dimension metric type |
category | string | Yes | category slug (slugified category name, e.g. ‘dexs’, ‘prediction-market’, ‘options’) |
chain | string | Yes | chain name |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
| Name | Type | Required | Description |
|---|---|---|---|
allChains | string[] | null | No | — |
total24h | number | null | No | — |
total48hto24h | number | null | No | — |
total7d | number | null | No | — |
total14dto7d | number | null | No | — |
total60dto30d | number | null | No | — |
total30d | number | null | No | — |
total1y | number | null | No | — |
change_1d | number | null | No | — |
change_7d | number | null | No | — |
change_1m | number | null | No | — |
change_7dover7d | number | null | No | — |
change_30dover30d | number | null | No | — |
category | string | null | No | — |
allCategories | string[] | null | No | — |
chain | string | null | No | — |
categoryChart
dimensions.categoryChart
Get category historical timeseries chart data
Risk: read
await corsair.defillama.api.dimensions.categoryChart({ metric: 'fees', category: 'Dexs' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | Yes | The dimension metric type |
category | string | Yes | category slug (slugified category name, e.g. ‘dexs’, ‘prediction-market’, ‘options’) |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
number[][]
categoryChartByChain
dimensions.categoryChartByChain
Get category timeseries chart data breakdown by chain
Risk: read
await corsair.defillama.api.dimensions.categoryChartByChain({ metric: 'fees', category: 'Dexs' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | Yes | The dimension metric type |
category | string | Yes | category slug (slugified category name, e.g. ‘dexs’, ‘prediction-market’, ‘options’) |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
any[]
categoryChartByProtocol
dimensions.categoryChartByProtocol
Get category timeseries chart data breakdown by protocol
Risk: read
await corsair.defillama.api.dimensions.categoryChartByProtocol({ metric: 'fees', category: 'Dexs' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | Yes | The dimension metric type |
category | string | Yes | category slug (slugified category name, e.g. ‘dexs’, ‘prediction-market’, ‘options’) |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
any[]
categoryMetrics
dimensions.categoryMetrics
Get category dimension data overview
Risk: read
await corsair.defillama.api.dimensions.categoryMetrics({ metric: 'fees', category: 'Dexs' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | Yes | The dimension metric type |
category | string | Yes | category slug (slugified category name, e.g. ‘dexs’, ‘prediction-market’, ‘options’) |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
| Name | Type | Required | Description |
|---|---|---|---|
allChains | string[] | null | No | — |
total24h | number | null | No | — |
total48hto24h | number | null | No | — |
total7d | number | null | No | — |
total14dto7d | number | null | No | — |
total60dto30d | number | null | No | — |
total30d | number | null | No | — |
total1y | number | null | No | — |
change_1d | number | null | No | — |
change_7d | number | null | No | — |
change_1m | number | null | No | — |
change_7dover7d | number | null | No | — |
change_30dover30d | number | null | No | — |
category | string | null | No | — |
allCategories | string[] | null | No | — |
chainChart
dimensions.chainChart
Get chain historical timeseries chart data
Risk: read
await corsair.defillama.api.dimensions.chainChart({ metric: 'fees', chain: 'Ethereum' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | Yes | The dimension metric type |
chain | string | Yes | chain name |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
number[][]
chainChartByProtocol
dimensions.chainChartByProtocol
Get chain timeseries chart data breakdown by protocol
Risk: read
await corsair.defillama.api.dimensions.chainChartByProtocol({ metric: 'fees', chain: 'Ethereum' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | Yes | The dimension metric type |
chain | string | Yes | chain name |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
any[]
chainMetrics
dimensions.chainMetrics
Get chain dimension data overview
Risk: read
await corsair.defillama.api.dimensions.chainMetrics({ metric: 'fees', chain: 'Ethereum' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | Yes | The dimension metric type |
chain | string | Yes | chain name |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
| Name | Type | Required | Description |
|---|---|---|---|
allChains | string[] | null | No | — |
total24h | number | null | No | — |
total48hto24h | number | null | No | — |
total7d | number | null | No | — |
total14dto7d | number | null | No | — |
total60dto30d | number | null | No | — |
total30d | number | null | No | — |
total1y | number | null | No | — |
change_1d | number | null | No | — |
change_7d | number | null | No | — |
change_1m | number | null | No | — |
change_7dover7d | number | null | No | — |
change_30dover30d | number | null | No | — |
chain | string | null | No | — |
chart
dimensions.chart
Get historical timeseries chart data
Risk: read
await corsair.defillama.api.dimensions.chart({ metric: 'fees' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | active-users | Yes | The dimension metric type |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity - active-users: dailyActiveUsers (default), dailyTransactionCount, dailyGasUsed For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
number[][]
chartByChain
dimensions.chartByChain
Get historical timeseries chart data breakdown by chain
Risk: read
await corsair.defillama.api.dimensions.chartByChain({ metric: 'fees' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | active-users | Yes | The dimension metric type |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity - active-users: dailyActiveUsers (default), dailyTransactionCount, dailyGasUsed For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
any[]
chartByProtocol
dimensions.chartByProtocol
Get historical timeseries chart data breakdown by protocol
Risk: read
await corsair.defillama.api.dimensions.chartByProtocol({ metric: 'fees' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | Yes | The dimension metric type |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
any[]
metrics
dimensions.metrics
Get dimension data overview
Risk: read
await corsair.defillama.api.dimensions.metrics({ metric: 'fees' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | active-users | Yes | The dimension metric type |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity - active-users: dailyActiveUsers (default), dailyTransactionCount, dailyGasUsed For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
| Name | Type | Required | Description |
|---|---|---|---|
allChains | string[] | null | No | — |
total24h | number | null | No | — |
total48hto24h | number | null | No | — |
total7d | number | null | No | — |
total14dto7d | number | null | No | — |
total60dto30d | number | null | No | — |
total30d | number | null | No | — |
total1y | number | null | No | — |
change_1d | number | null | No | — |
change_7d | number | null | No | — |
change_1m | number | null | No | — |
change_7dover7d | number | null | No | — |
change_30dover30d | number | null | No | — |
protocolChart
dimensions.protocolChart
Get protocol historical timeseries chart data
Risk: read
await corsair.defillama.api.dimensions.protocolChart({ metric: 'fees', protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | Yes | The dimension metric type |
protocol | string | Yes | protocol slug (slugified protocol name) |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
number[][]
protocolChartByChain
dimensions.protocolChartByChain
Get protocol timeseries chart data breakdown by chain
Risk: read
await corsair.defillama.api.dimensions.protocolChartByChain({ metric: 'fees', protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | Yes | The dimension metric type |
protocol | string | Yes | protocol slug (slugified protocol name) |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
any[]
protocolChartByLabel
dimensions.protocolChartByLabel
Get protocol timeseries chart data breakdown by label
Risk: read
await corsair.defillama.api.dimensions.protocolChartByLabel({ metric: 'fees', protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | open-interest | normalized-volume | Yes | The dimension metric type |
protocol | string | Yes | protocol slug (slugified protocol name) |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity |
any[]
protocolChartByVersion
dimensions.protocolChartByVersion
Get protocol timeseries chart data breakdown by version
Risk: read
await corsair.defillama.api.dimensions.protocolChartByVersion({ metric: 'fees', protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | Yes | The dimension metric type |
protocol | string | Yes | protocol slug (slugified protocol name) |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
any[]
protocolMetrics
dimensions.protocolMetrics
Get protocol dimension data overview
Risk: read
await corsair.defillama.api.dimensions.protocolMetrics({ metric: 'fees', protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
metric | fees | liquidations | dexs | derivatives | options | aggregators | bridge-aggregators | bridges | open-interest | normalized-volume | Yes | The dimension metric type |
protocol | string | Yes | protocol slug (slugified protocol name) |
dataType | string | No | Metric-specific data type to return. Supported values per metric: - fees: dailyFees (default), dailyRevenue, dailySupplySideRevenue, dailyHoldersRevenue, dailyProtocolRevenue - liquidations: dailyLiquidationsVolume (default), dailyCollateralLiquidated - dexs: dailyVolume (default), dailyNotionalVolume - derivatives: dailyVolume (default), dailyNotionalVolume - options: dailyNotionalVolume (default), dailyPremiumVolume - aggregators: dailyVolume (default) - bridge-aggregators: dailyBridgeVolume (default) - bridges: dailyAggregatedVolume (default), dailyOutgoingVolume, dailyIncomingVolume, dailyTxCount, dailyOutgoingTxCount, dailyIncomingTxCount - open-interest: openInterestAtEnd (default), shortOpenInterestAtEnd, longOpenInterestAtEnd - normalized-volume: dailyNormalizedVolume (default), dailyActiveLiquidity For bridges, volume values are in USD and TxCount values count transfers. Protocol dailyAggregatedVolume and dailyTxCount use outgoing totals; per-chain values add incoming and outgoing activity. Direction is relative to the chain. |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
name | string | null | No | — |
url | string | null | No | — |
description | string | null | No | — |
logo | string | null | No | — |
chains | string[] | null | No | — |
gecko_id | string | null | null | No | — |
cmcId | string | null | null | No | — |
symbol | string | null | null | No | — |
twitter | string | null | null | No | — |
github | string[] | null | null | No | — |
treasury | string | null | null | No | — |
governanceID | string[] | null | null | No | — |
wrongLiquidity | boolean | null | null | No | — |
stablecoins | string[] | null | null | No | — |
total24h | number | null | No | — |
total48hto24h | number | null | No | — |
total7d | number | null | No | — |
total30d | number | null | No | — |
total1y | number | null | No | — |
change_1d | number | null | No | — |
change_7d | number | null | No | — |
change_1m | number | null | No | — |
Equities
companies
equities.companies
Get list of all tracked public companies (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.equities.companies({});
| Name | Type | Required | Description |
|---|---|---|---|
sector | string | No | Only return companies in this sector, as a slug (technology, financial-services) or as its label in any case (Financial Services). Valid values are the sectorSlugs returned by GET /equities/v1/sectors. An unknown value returns an empty list. |
industry | string | No | Only return companies in this industry, as a slug (semiconductors) or as its label in any case. Valid values are the industrySlugs returned by GET /equities/v1/industries. An unknown value returns an empty list. |
object[]
Output full type
Output full type
{
ticker?: string | null,
companyName?: string | null,
country?: string | null,
countryName?: string | null,
sectorSlug?: string | null,
industrySlug?: string | null
}[]
dimensions
equities.dimensions
Get financial dimensions for a company (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.equities.dimensions({ ticker: 'COIN', country: 'US' });
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | Stock ticker symbol (case-insensitive) |
country | string | Yes | Two-letter country code (ISO 3166-1 alpha-2) for the company, as returned by GET /equities/v1/companies-list (case-insensitive). |
object
Output full type
Output full type
Record<string, {
annual?: (string | number)[][] | null,
quarterly?: (string | number)[][] | null
}>
earningsCalendar
equities.earningsCalendar
Get earnings calendar (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.equities.earningsCalendar({});
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | No | Stock ticker symbol (case-insensitive). When set, returns that company’s full calendar. |
from | string | No | Earliest report_date to include, as YYYY-MM-DD (inclusive). |
to | string | No | Latest report_date to include, as YYYY-MM-DD (inclusive). |
status | reported | inferred | confirmed | estimated | No | Only return rows with this date_status (case-insensitive). confirmed is accepted but nothing produces it yet, so it returns an empty list. |
limit | number | No | Maximum rows to return, taken from the earliest report_date. Positive integer; values above 20000 are capped at 20000. |
object[]
Output full type
Output full type
{
ticker?: string | null,
iso2_country_code?: string | null,
cik?: string | null,
event_key?: string | null,
date_status?: string | null,
report_date?: string | null,
report_time?: string | null,
accepted_at?: string | null,
fiscal_year?: number | null,
fiscal_period?: string | null,
period_end?: string | null,
source?: string | null,
source_form?: string | null,
accession_number?: string | null,
max_drift_days?: number | null | null,
first_published_at?: string | null,
revision_count?: number | null,
previous_report_date?: string | null,
inserted_at?: string | null
}[]
filings
equities.filings
Get filings for a company (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.equities.filings({ ticker: 'COIN', country: 'US' });
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | Stock ticker symbol (case-insensitive) |
country | string | Yes | Two-letter country code (ISO 3166-1 alpha-2) for the company, as returned by GET /equities/v1/companies-list (case-insensitive). |
object[]
Output full type
Output full type
{
filingDate?: string | null,
reportDate?: string | null,
form?: string | null,
primaryDocumentUrl?: string | null,
documentDescription?: string | null
}[]
industries
equities.industries
Get industries (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.equities.industries({});
| Name | Type | Required | Description |
|---|---|---|---|
sector | string | No | Only return industries in this sector, as a slug (technology, financial-services) or as its label in any case (Financial Services). Valid values are the sectorSlugs returned by GET /equities/v1/sectors. An unknown value returns an empty list. |
industry | string | No | Only return this industry, as a slug (semiconductors) or as its label in any case (Semiconductors). An unknown value returns an empty list. |
object[]
Output full type
Output full type
{
industry?: string | null,
industrySlug?: string | null,
sector?: string | null,
sectorSlug?: string | null,
rank?: number | null,
weight?: number | null | null,
sectorWeight?: number | null | null,
dollarVolumeShare24h?: number | null | null,
marketCap?: number | null | null,
marketCapChange1d?: number | null | null,
dollarVolume24h?: number | null | null,
revenueTTM?: number | null | null,
earningsTTM?: number | null | null,
ebitdaTTM?: number | null | null,
enterpriseValue?: number | null | null,
employeeCount?: number | null | null,
trailingPE?: number | null | null,
earningsYield?: number | null | null,
priceToRevenue?: number | null | null,
priceToBook?: number | null | null,
enterpriseValueToEbitda?: number | null | null,
dividendYield?: number | null | null,
holdersYield?: number | null | null,
operatingProfitMarginTTM?: number | null | null,
priceChangePercentage1d?: number | null | null,
priceChangePercentage7d?: number | null | null,
priceChangePercentage1m?: number | null | null,
priceChangePercentage3m?: number | null | null,
priceChangePercentage6m?: number | null | null,
priceChangePercentageYtd?: number | null | null,
priceChangePercentage1y?: number | null | null,
companyCount?: number | null,
coverage?: Record<string, number> | null,
updatedAt?: string | null | null,
volumeAsOf?: string | null | null,
topHoldings?: {
ticker?: string | null,
name?: string | null,
marketCap?: number | null | null,
sectorWeight?: number | null | null,
priceChangePercentage1d?: number | null | null
}[] | null
}[]
ohlcv
equities.ohlcv
Get OHLCV candle data for a company (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.equities.ohlcv({ ticker: 'COIN', country: 'US' });
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | Stock ticker symbol (case-insensitive) |
country | string | Yes | Two-letter country code (ISO 3166-1 alpha-2) for the company, as returned by GET /equities/v1/companies-list (case-insensitive). |
timeframe | 1D | 7D | 1W | 1M | 3M | 6M | YTD | 1Y | 5Y | MAX | 1d | 7d | 1w | 1m | 3m | 6m | ytd | 1y | 5y | max | "" | No | Optional lookback window (case-insensitive), same values as price history. 1D returns the most recent trading session and 7D/1W (aliases) the last 7 days, both as 5-minute bars; 1M and longer are daily bars. YTD runs from January 1 of the current year. Omit or empty for full history (MAX). Intraday coverage is best-effort — a ticker without intraday data falls back to daily bars. |
number[][]
onchain
equities.onchain
Get on-chain tradeable markets for a company (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.equities.onchain({ ticker: 'COIN', country: 'US' });
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | Stock ticker symbol (case-insensitive) |
country | string | Yes | Two-letter country code (ISO 3166-1 alpha-2) for the company, as returned by GET /equities/v1/companies-list (case-insensitive). |
| Name | Type | Required | Description |
|---|---|---|---|
perps | object[] | null | No | Perpetual futures markets tracking the stock. |
tokens | object[] | null | No | Tokenised equity products tracking the stock. |
perps full type
perps full type
{
pair?: string | null,
price?: number | null | null,
volume24h?: number | null | null,
openInterest?: number | null | null,
annualizedFundingRate?: number | null | null,
tradeUrl?: string | null,
contractSlug?: string | null,
exchangeProtocolSlug?: string | null,
rwaPlatformSlug?: string | null,
exchangeType?: string | null,
updatedAt?: string | null
}[] | null
tokens full type
tokens full type
{
issuer?: string | null,
issuerRwaPlatformSlug?: string | null,
price?: number | null | null,
assetSlug?: string | null,
activeMarketcap?: number | null | null
}[] | null
priceHistory
equities.priceHistory
Get historical price data for a company (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.equities.priceHistory({ ticker: 'COIN', country: 'US' });
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | Stock ticker symbol (case-insensitive) |
country | string | Yes | Two-letter country code (ISO 3166-1 alpha-2) for the company, as returned by GET /equities/v1/companies-list (case-insensitive). |
timeframe | 1D | 7D | 1W | 1M | 3M | 6M | YTD | 1Y | 5Y | MAX | 1d | 7d | 1w | 1m | 3m | 6m | ytd | 1y | 5y | max | "" | No | Optional lookback window (case-insensitive). 1D returns the most recent trading session and 7D/1W (aliases) the last 7 days, both at 5-minute resolution; 1M and longer are daily. YTD runs from January 1 of the current year. Omit or empty for full history (MAX). Intraday coverage is best-effort — a ticker without intraday data falls back to daily bars, and 1D then returns the single most recent daily bar. |
(string \| number)[][]
sector
equities.sector
Get details for one sector (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.equities.sector({ sector: 'Technology' });
| Name | Type | Required | Description |
|---|---|---|---|
sector | string | Yes | Sector to return, as a slug (technology, financial-services) or as its label in any case (Financial Services). Valid values are the sectorSlugs returned by GET /equities/v1/sectors. |
| Name | Type | Required | Description |
|---|---|---|---|
sector | string | null | No | Sector name as the data vendor labels it (not GICS). Companies the vendor left unclassified roll up into Unknown. |
sectorSlug | string | null | No | URL-safe sector id. Pass it as sector to the other equities endpoints. |
rank | number | null | No | Position by market cap, starting at 1. |
weight | number | null | null | No | Share of all tracked US equity market cap, in percent. Sums to 100 across sectors, Unknown included. |
dollarVolumeShare24h | number | null | null | No | Share of all tracked US value traded in the latest session, in percent. |
industryCount | number | null | No | Number of distinct industries in the sector. |
marketCap | number | null | null | No | Total market cap of the constituents, in USD. |
marketCapChange1d | number | null | null | No | Change in total market cap over the latest session, in USD. Reconciles exactly with priceChangePercentage1d. |
dollarVolume24h | number | null | null | No | Value traded in the latest session (shares traded × price, summed), in USD. Reads low while a session is still open; volumeAsOf says when it was taken. |
revenueTTM | number | null | null | No | Total trailing twelve month revenue, in USD. |
earningsTTM | number | null | null | No | Total trailing twelve month earnings, in USD. |
ebitdaTTM | number | null | null | No | Total trailing twelve month EBITDA, in USD. |
enterpriseValue | number | null | null | No | Total enterprise value, in USD. |
employeeCount | number | null | null | No | Total employees across the constituents that report a headcount. null when none do. |
trailingPE | number | null | null | No | Aggregate price to earnings: total market cap / total TTM earnings. null when total earnings are zero or negative; use earningsYield then. |
earningsYield | number | null | null | No | 100 × total TTM earnings / total market cap, in percent. Signed, so it stays defined when trailingPE is null for a loss-making group. |
priceToRevenue | number | null | null | No | Aggregate price to sales: total market cap / total TTM revenue. |
priceToBook | number | null | null | No | Aggregate price to book: total market cap / total shareholders’ equity. |
enterpriseValueToEbitda | number | null | null | No | Aggregate EV/EBITDA: total enterprise value / total TTM EBITDA. |
dividendYield | number | null | null | No | 100 × total TTM dividends / total market cap, in percent. |
holdersYield | number | null | null | No | 100 × total TTM holders’ revenue (dividends plus buybacks, net of share issuance) / total market cap, in percent. |
operatingProfitMarginTTM | number | null | null | No | Total TTM operating income / total TTM revenue, in percent. Weighted by revenue, not market cap. |
priceChangePercentage1d | number | null | null | No | Cap-weighted price change over the latest session, in percent (0.86 is +0.86%). |
priceChangePercentage7d | number | null | null | No | Cap-weighted price change over the last 7 days, in percent. |
priceChangePercentage1m | number | null | null | No | Cap-weighted price change over the last 30 days, in percent. |
priceChangePercentage3m | number | null | null | No | Cap-weighted price change over the last 3 calendar months, in percent. |
priceChangePercentage6m | number | null | null | No | Cap-weighted price change over the last 6 calendar months, in percent. |
priceChangePercentageYtd | number | null | null | No | Cap-weighted price change since January 1, in percent. |
priceChangePercentage1y | number | null | null | No | Cap-weighted price change over the last year, in percent. |
companyCount | number | null | No | Number of constituents. |
coverage | Record<string, number> | null | No | Share of the constituents’ market cap that supplied each metric’s inputs, from 0 to 1, keyed by metric name. A ratio is served as null when its coverage is below 0.6, rather than as a figure computed over the wrong subset. |
updatedAt | string | null | null | No | Most recent quote time across the constituents. |
volumeAsOf | string | null | null | No | When dollarVolume24h was taken. |
topHoldings | object[] | null | No | The ten largest constituents by market cap. |
description | string | null | No | Short description of what the sector covers. |
valuation | object | null | No | The sector’s aggregate ratios (same values as the top-level fields) next to the median of its constituents’ own ratios. Compare aggregate with aggregate and median with median, for example against GET /equities/v1/sectors-overview. |
concentration | object | null | No | How much of the sector’s market cap sits in its largest constituents. |
topHoldings full type
topHoldings full type
{
ticker?: string | null,
name?: string | null,
marketCap?: number | null | null,
sectorWeight?: number | null | null,
priceChangePercentage1d?: number | null | null
}[] | null
valuation full type
valuation full type
{
trailingPE?: number | null | null,
earningsYield?: number | null | null,
priceToRevenue?: number | null | null,
priceToBook?: number | null | null,
enterpriseValueToEbitda?: number | null | null,
operatingProfitMarginTTM?: number | null | null,
dividendYield?: number | null | null,
medianTrailingPE?: number | null | null,
medianPriceToRevenue?: number | null | null,
medianPriceToBook?: number | null | null,
medianEnterpriseValueToEbitda?: number | null | null,
medianOperatingProfitMarginTTM?: number | null | null,
medianDividendYield?: number | null | null
} | null
concentration full type
concentration full type
{
top10MarketCapShare?: number | null | null,
hhi?: number | null | null,
megaCapCount?: number | null,
megaCapThreshold?: number | null,
medianMarketCap?: number | null | null
} | null
sectors
equities.sectors
Get all sectors (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.equities.sectors({});
object[]
Output full type
Output full type
{
sector?: string | null,
sectorSlug?: string | null,
rank?: number | null,
weight?: number | null | null,
dollarVolumeShare24h?: number | null | null,
industryCount?: number | null,
marketCap?: number | null | null,
marketCapChange1d?: number | null | null,
dollarVolume24h?: number | null | null,
revenueTTM?: number | null | null,
earningsTTM?: number | null | null,
ebitdaTTM?: number | null | null,
enterpriseValue?: number | null | null,
employeeCount?: number | null | null,
trailingPE?: number | null | null,
earningsYield?: number | null | null,
priceToRevenue?: number | null | null,
priceToBook?: number | null | null,
enterpriseValueToEbitda?: number | null | null,
dividendYield?: number | null | null,
holdersYield?: number | null | null,
operatingProfitMarginTTM?: number | null | null,
priceChangePercentage1d?: number | null | null,
priceChangePercentage7d?: number | null | null,
priceChangePercentage1m?: number | null | null,
priceChangePercentage3m?: number | null | null,
priceChangePercentage6m?: number | null | null,
priceChangePercentageYtd?: number | null | null,
priceChangePercentage1y?: number | null | null,
companyCount?: number | null,
coverage?: Record<string, number> | null,
updatedAt?: string | null | null,
volumeAsOf?: string | null | null,
topHoldings?: {
ticker?: string | null,
name?: string | null,
marketCap?: number | null | null,
sectorWeight?: number | null | null,
priceChangePercentage1d?: number | null | null
}[] | null
}[]
sectorsOverview
equities.sectorsOverview
Get market-wide sector overview (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.equities.sectorsOverview({});
| Name | Type | Required | Description |
|---|---|---|---|
marketCap | number | null | null | No | Total market cap of the constituents, in USD. |
marketCapChange1d | number | null | null | No | Change in total market cap over the latest session, in USD. Reconciles exactly with priceChangePercentage1d. |
dollarVolume24h | number | null | null | No | Value traded in the latest session (shares traded × price, summed), in USD. Reads low while a session is still open; volumeAsOf says when it was taken. |
revenueTTM | number | null | null | No | Total trailing twelve month revenue, in USD. |
earningsTTM | number | null | null | No | Total trailing twelve month earnings, in USD. |
ebitdaTTM | number | null | null | No | Total trailing twelve month EBITDA, in USD. |
enterpriseValue | number | null | null | No | Total enterprise value, in USD. |
employeeCount | number | null | null | No | Total employees across the constituents that report a headcount. null when none do. |
trailingPE | number | null | null | No | Aggregate price to earnings: total market cap / total TTM earnings. null when total earnings are zero or negative; use earningsYield then. |
earningsYield | number | null | null | No | 100 × total TTM earnings / total market cap, in percent. Signed, so it stays defined when trailingPE is null for a loss-making group. |
priceToRevenue | number | null | null | No | Aggregate price to sales: total market cap / total TTM revenue. |
priceToBook | number | null | null | No | Aggregate price to book: total market cap / total shareholders’ equity. |
enterpriseValueToEbitda | number | null | null | No | Aggregate EV/EBITDA: total enterprise value / total TTM EBITDA. |
dividendYield | number | null | null | No | 100 × total TTM dividends / total market cap, in percent. |
holdersYield | number | null | null | No | 100 × total TTM holders’ revenue (dividends plus buybacks, net of share issuance) / total market cap, in percent. |
operatingProfitMarginTTM | number | null | null | No | Total TTM operating income / total TTM revenue, in percent. Weighted by revenue, not market cap. |
priceChangePercentage1d | number | null | null | No | Cap-weighted price change over the latest session, in percent (0.86 is +0.86%). |
priceChangePercentage7d | number | null | null | No | Cap-weighted price change over the last 7 days, in percent. |
priceChangePercentage1m | number | null | null | No | Cap-weighted price change over the last 30 days, in percent. |
priceChangePercentage3m | number | null | null | No | Cap-weighted price change over the last 3 calendar months, in percent. |
priceChangePercentage6m | number | null | null | No | Cap-weighted price change over the last 6 calendar months, in percent. |
priceChangePercentageYtd | number | null | null | No | Cap-weighted price change since January 1, in percent. |
priceChangePercentage1y | number | null | null | No | Cap-weighted price change over the last year, in percent. |
companyCount | number | null | No | Number of constituents. |
coverage | Record<string, number> | null | No | Share of the constituents’ market cap that supplied each metric’s inputs, from 0 to 1, keyed by metric name. A ratio is served as null when its coverage is below 0.6, rather than as a figure computed over the wrong subset. |
updatedAt | string | null | null | No | Most recent quote time across the constituents. |
volumeAsOf | string | null | null | No | When dollarVolume24h was taken. |
medianTrailingPE | number | null | null | No | Median of the constituents’ own P/E, over those with a positive one. |
medianPriceToRevenue | number | null | null | No | Median of the constituents’ own price to sales, over those with a positive one. |
medianPriceToBook | number | null | null | No | Median of the constituents’ own price to book, over those with a positive one. |
medianEnterpriseValueToEbitda | number | null | null | No | Median of the constituents’ own EV/EBITDA, over those with a positive one. |
medianOperatingProfitMarginTTM | number | null | null | No | Median of the constituents’ own TTM operating margin, in percent. |
medianDividendYield | number | null | null | No | Median of the constituents’ own dividend yield, in percent. |
medianMarketCap | number | null | null | No | Median constituent market cap, in USD. |
sectorCount | number | null | No | Number of sectors, not counting Unknown. |
industryCount | number | null | No | Number of distinct industries. |
bestSector1d | object | null | No | Sector with the highest priceChangePercentage1d. Never Unknown. |
worstSector1d | object | null | No | Sector with the lowest priceChangePercentage1d. Never Unknown. |
largestSector | object | null | No | Sector with the largest market cap. Never Unknown. |
bestSector1d full type
bestSector1d full type
{
sector?: string | null,
sectorSlug?: string | null,
priceChangePercentage1d?: number | null | null,
weight?: number | null | null
} | null | null
worstSector1d full type
worstSector1d full type
{
sector?: string | null,
sectorSlug?: string | null,
priceChangePercentage1d?: number | null | null,
weight?: number | null | null
} | null | null
largestSector full type
largestSector full type
{
sector?: string | null,
sectorSlug?: string | null,
priceChangePercentage1d?: number | null | null,
weight?: number | null | null
} | null | null
statements
equities.statements
Get financial statements for a company (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.equities.statements({ ticker: 'COIN', country: 'US' });
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | Stock ticker symbol (case-insensitive) |
country | string | Yes | Two-letter country code (ISO 3166-1 alpha-2) for the company, as returned by GET /equities/v1/companies-list (case-insensitive). |
| Name | Type | Required | Description |
|---|---|---|---|
incomeStatement | object | null | No | Income statement data. The labels array defines the rows; values is a parallel array of arrays where each inner array holds one row’s values across all periods. |
balanceSheet | object | null | No | Balance sheet data. Follows the same structure as incomeStatement: top-level labels, children metadata, and quarterly/annual period objects each containing periodEnding, values, and children. |
cashflow | object | null | No | Cash flow statement data. Follows the same structure as incomeStatement: top-level labels, children metadata, and quarterly/annual period objects each containing periodEnding, values, and children. |
incomeStatement full type
incomeStatement full type
{
labels?: string[] | null,
children?: {
quarterly?: Record<string, {
labels?: string[] | null
}> | null,
annual?: Record<string, {
labels?: string[] | null
}> | null
} | null,
quarterly?: {
periodEnding?: string[] | null,
values?: (number | null)[][] | null,
children?: Record<string, {
values?: (number | null)[][] | null
}> | null
} | null,
annual?: {
periodEnding?: string[] | null,
values?: (number | null)[][] | null,
children?: Record<string, {
values?: (number | null)[][] | null
}> | null
} | null
} | null
balanceSheet full type
balanceSheet full type
{
labels?: string[] | null,
children?: {
quarterly?: Record<string, {
labels?: string[] | null
}> | null,
annual?: Record<string, {
labels?: string[] | null
}> | null
} | null,
quarterly?: {
periodEnding?: string[] | null,
values?: (number | null)[][] | null,
children?: Record<string, {
values?: (number | null)[][] | null
}> | null
} | null,
annual?: {
periodEnding?: string[] | null,
values?: (number | null)[][] | null,
children?: Record<string, {
values?: (number | null)[][] | null
}> | null
} | null
} | null
cashflow full type
cashflow full type
{
labels?: string[] | null,
children?: {
quarterly?: Record<string, {
labels?: string[] | null
}> | null,
annual?: Record<string, {
labels?: string[] | null
}> | null
} | null,
quarterly?: {
periodEnding?: string[] | null,
values?: (number | null)[][] | null,
children?: Record<string, {
values?: (number | null)[][] | null
}> | null
} | null,
annual?: {
periodEnding?: string[] | null,
values?: (number | null)[][] | null,
children?: Record<string, {
values?: (number | null)[][] | null
}> | null
} | null
} | null
summary
equities.summary
Get live market summary for a company (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.equities.summary({ ticker: 'COIN', country: 'US' });
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | Yes | Stock ticker symbol (case-insensitive) |
country | string | Yes | Two-letter country code (ISO 3166-1 alpha-2) for the company, as returned by GET /equities/v1/companies-list (case-insensitive). |
| Name | Type | Required | Description |
|---|---|---|---|
currentPrice | number | null | No | — |
volume | number | null | No | — |
marketCap | number | null | No | — |
circulatingMarketCap | number | null | null | No | — |
enterpriseValue | number | null | null | No | — |
fiftyTwoWeekHigh | number | null | No | — |
fiftyTwoWeekLow | number | null | No | — |
dividendYield | number | null | null | No | — |
trailingPE | number | null | null | No | — |
priceToRevenue | number | null | null | No | — |
priceChangePercentage1d | number | null | No | — |
priceChangePercentage7d | number | null | No | — |
priceChangePercentage1m | number | null | No | — |
priceChange1d | number | null | No | — |
marketCapChange1d | number | null | No | — |
priceToBook | number | null | null | No | — |
enterpriseValueToEbitda | number | null | null | No | — |
holdersYield | number | null | null | No | — |
updatedAt | string | null | No | — |
revenueTTM | number | null | null | No | — |
grossProfitTTM | number | null | null | No | — |
earningsTTM | number | null | null | No | — |
ebitdaTTM | number | null | null | No | — |
operatingProfitMarginTTM | number | null | null | No | — |
holdersRevenueTTM | number | null | null | No | — |
holderEarningsTTM | number | null | null | No | — |
dividendsTTM | number | null | null | No | — |
stockRepurchaseTTM | number | null | null | No | — |
stockIssuanceTTM | number | null | null | No | — |
stockBasedCompensationTTM | number | null | null | No | — |
cashAndCashEquivalents | number | null | null | No | — |
totalAssets | number | null | null | No | — |
totalLiabilities | number | null | null | No | — |
totalShareholdersEquity | number | null | null | No | — |
totalDebt | number | null | null | No | — |
circulatingSupply | number | null | null | No | — |
totalSupply | number | null | null | No | — |
employeeCount | number | null | null | No | — |
Etfs
flows
etfs.flows
Historical Flows at the Asset Level (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.etfs.flows({});
object[]
Output full type
Output full type
{
gecko_id?: string | null,
day?: string | null,
total_flow_usd?: number | null
}[]
snapshot
etfs.snapshot
Get ETFs and their metrics (aum, flows, fees…) (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.etfs.snapshot({});
object[]
Output full type
Output full type
{
ticker?: string | null,
timestamp?: number | null,
asset?: string | null,
issuer?: string | null,
etf_name?: string | null,
custodian?: string | null,
pct_fee?: number | null,
url?: string | null,
flows?: number | null,
aum?: number | null,
volume?: number | null
}[]
Fees
byChain
fees.byChain
List all protocols along with summaries of their fees and revenue and dataType history data by chain
Risk: read
await corsair.defillama.api.fees.byChain({ chain: 'Ethereum', excludeTotalDataChart: true, excludeTotalDataChartBreakdown: true });
| Name | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | chain name, list of all supported chains can be found under allChains attribute in /overview/fees response |
excludeTotalDataChart | boolean | Yes | true to exclude aggregated chart from response |
excludeTotalDataChartBreakdown | boolean | Yes | true to exclude broken down chart from response |
dataType | dailyFees | dailyRevenue | dailyHoldersRevenue | No | Desired data type, dailyFees by default. |
| Name | Type | Required | Description |
|---|---|---|---|
protocols | object[] | null | No | — |
totalDataChart | any[][] | null | No | — |
totalDataChartBreakdown | any[][] | null | No | — |
protocols full type
protocols full type
{
name?: string | null,
total24h?: number | null | null,
change_1d?: number | null,
chains?: string[] | null
}[] | null
overview
fees.overview
List all protocols along with summaries of their fees and revenue and dataType history data
Risk: read
await corsair.defillama.api.fees.overview({ excludeTotalDataChart: true, excludeTotalDataChartBreakdown: true });
| Name | Type | Required | Description |
|---|---|---|---|
excludeTotalDataChart | boolean | Yes | true to exclude aggregated chart from response |
excludeTotalDataChartBreakdown | boolean | Yes | true to exclude broken down chart from response |
dataType | dailyFees | dailyRevenue | dailyHoldersRevenue | No | Desired data type, dailyFees by default. |
| Name | Type | Required | Description |
|---|---|---|---|
protocols | object[] | null | No | — |
totalDataChart | any[][] | null | No | — |
totalDataChartBreakdown | any[][] | null | No | — |
protocols full type
protocols full type
{
name?: string | null,
total24h?: number | null | null,
change_1d?: number | null,
chains?: string[] | null
}[] | null
summary
fees.summary
Get summary of protocol fees and revenue with historical data
Risk: read
await corsair.defillama.api.fees.summary({ protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
dataType | dailyFees | dailyRevenue | dailyHoldersRevenue | No | Desired data type, dailyFees by default. |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | Protocol ID |
name | string | null | No | Protocol name |
url | string | null | No | Protocol URL |
referralUrl | string | null | No | Referral URL |
description | string | null | null | No | Protocol description |
logo | string | null | No | Protocol logo URL |
gecko_id | string | null | null | No | CoinGecko ID |
cmcId | string | null | null | No | CoinMarketCap ID |
chains | string[] | null | No | Supported chains |
twitter | string | null | No | Twitter handle |
github | string[] | null | null | No | GitHub repositories |
symbol | string | null | No | Token symbol |
address | string | null | null | No | Protocol address |
childProtocols | object[] | null | No | Child protocols |
linkedProtocols | string[] | null | No | Linked protocols |
defillamaId | string | null | No | DefiLlama protocol ID |
disabled | boolean | null | null | No | Whether protocol is disabled |
displayName | string | null | No | Display name |
module | string | null | null | No | Module name |
category | string | null | null | No | Protocol category |
methodologyURL | string | null | null | No | Methodology URL |
methodology | object | null | No | Methodology details |
forkedFrom | string | null | null | No | Forked from protocol |
audits | string | null | null | No | Audit information |
audit_links | any[] | null | null | No | Audit links |
versionKey | string | null | null | No | Version key |
governanceID | string[] | null | null | No | Governance IDs |
treasury | string | null | null | No | Treasury address |
parentProtocol | string | null | null | No | Parent protocol |
previousNames | any[] | null | null | No | Previous names |
slug | string | null | No | Protocol slug |
protocolType | string | null | No | Protocol type |
total24h | number | null | null | No | 24 hour fees |
total48hto24h | number | null | null | No | 48h to 24h fees |
total7d | number | null | No | 7 day fees |
totalAllTime | number | null | No | All time fees |
change_1d | number | null | No | 1 day change percentage |
totalDataChart | number[][] | null | No | Total data chart with timestamps and fees |
totalDataChartBreakdown | object[] | null | No | Total data chart breakdown by chain and protocol |
childProtocols full type
childProtocols full type
{
}[] | null
methodology full type
methodology full type
{
} | null | null
totalDataChartBreakdown full type
totalDataChartBreakdown full type
(number | {
})[][] | null
Financial Statements
get
financialStatements.get
Get protocol income statement report (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.financialStatements.get({ protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug (e.g. aave-v3, hyperliquid) |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | Protocol ID. Parent protocols use ‘parent#slug’ format. |
name | string | null | No | — |
address | string | null | null | No | — |
symbol | string | null | null | No | — |
url | string | null | No | — |
description | string | null | No | — |
chain | string | null | null | No | Primary chain (present for child protocols) |
logo | string | null | No | — |
audits | string | null | null | No | — |
audit_links | string[] | null | null | No | — |
category | string | null | null | No | Protocol category (present for child protocols) |
chains | string[] | null | No | — |
oraclesBreakdown | object[] | null | No | Oracles used by the protocol |
module | string | null | null | No | — |
twitter | string | null | null | No | — |
github | string[] | null | null | No | — |
listedAt | number | null | null | No | Unix timestamp when protocol was listed |
parentProtocol | string | null | null | No | Parent protocol ID (present for child protocols) |
dimensions | object | null | No | Available dimension adapters for this protocol |
methodology | Record<string, string> | null | null | No | Maps line item names to descriptions. Present at top level for child protocols, inside childProtocols for parent protocols. |
breakdownMethodology | Record<string, Record<string, string>> | null | null | No | Maps line item names to objects mapping label names to descriptions. Present at top level for child protocols, inside childProtocols for parent protocols. |
methodologyURL | string | null | null | No | — |
tvlCodePath | string | null | null | No | — |
hallmarks | any[][] | null | null | No | Notable events as [timestamp, description] pairs |
linkedProtocols | string[] | null | No | — |
childProtocols | object[] | null | No | Child protocol versions with their methodology details. Only present for parent protocols. |
hasLabelBreakdown | boolean | null | No | — |
defillamaId | string | null | No | — |
displayName | string | null | No | — |
slug | string | null | No | — |
protocolType | string | null | No | — |
aggregates | object | null | No | Financial data aggregated by time period |
oraclesBreakdown full type
oraclesBreakdown full type
{
name?: string | null,
type?: string | null,
proof?: string[] | null
}[] | null | null
dimensions full type
dimensions full type
Record<string, string | {
adapter?: string | null,
genuineSpikes?: any[] | null
}> | null | null
childProtocols full type
childProtocols full type
{
name?: string | null,
defillamaId?: string | null,
displayName?: string | null,
methodologyURL?: string | null | null,
methodology?: Record<string, string> | null,
breakdownMethodology?: Record<string, Record<string, string>> | null
}[] | null | null
aggregates full type
aggregates full type
{
yearly?: Record<string, Record<string, {
value?: number | null,
by-label?: Record<string, number> | null | null
}>> | null,
quarterly?: Record<string, Record<string, {
value?: number | null,
by-label?: Record<string, number> | null | null
}>> | null,
monthly?: Record<string, Record<string, {
value?: number | null,
by-label?: Record<string, number> | null | null
}>> | null
} | null
Forks
chartByProtocol
forks.chartByProtocol
Get timeseries chart data breakdown by protocol
Risk: read
await corsair.defillama.api.forks.chartByProtocol({});
object[]
Output full type
Output full type
{
timestamp?: number | null
}[]
metrics
forks.metrics
Get fork data overview
Risk: read
await corsair.defillama.api.forks.metrics({});
Record<string, string[]>
protocolChart
forks.protocolChart
Get timeseries chart data by protocol
Risk: read
await corsair.defillama.api.forks.protocolChart({ protocol: 'uniswap-v2' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
number[][]
Narratives
performance
narratives.performance
Get chart of narratives based on category performance (with individual coins weighted by mcap) (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.narratives.performance({ period: '30' });
| Name | Type | Required | Description |
|---|---|---|---|
period | string | Yes | One of [‘7’, ‘30’, ‘ytd’, ‘365’] |
object[]
Output full type
Output full type
{
date?: number | null,
Analytics?: number | null,
Artificial Intelligence (AI)?: number | null,
Bitcoin?: number | null,
Bridge Governance Tokens?: number | null,
Centralized Exchange (CEX)Token?: number | null,
Data Availability?: number | null,
Decentralized Finance (DeFi)?: number | null,
Decentralized Identifier (DID)?: number | null,
DePIN?: number | null,
Ethereum?: number | null,
Gaming (GameFi)?: number | null,
Liquid Staking Governance Tokens?: number | null,
Meme?: number | null,
NFT Marketplace?: number | null,
Oracle?: number | null,
PolitiFi?: number | null,
Prediction Markets?: number | null,
Real World Assets (RWA)?: number | null,
Rollup?: number | null,
Smart Contract Platform?: number | null,
SocialFi?: number | null,
Solana?: number | null
}[]
Oracles
chainChart
oracles.chainChart
Get timeseries chart data by chain
Risk: read
await corsair.defillama.api.oracles.chainChart({ chain: 'Ethereum' });
| Name | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | chain name |
number[][]
chainChartByProtocol
oracles.chainChartByProtocol
Get protocol breakdown timeseries chart data by chain
Risk: read
await corsair.defillama.api.oracles.chainChartByProtocol({ chain: 'Ethereum' });
| Name | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | chain name |
object[]
Output full type
Output full type
{
timestamp?: number | null
}[]
chart
oracles.chart
Get timeseries chart data for all oracles
Risk: read
await corsair.defillama.api.oracles.chart({});
number[][]
chartByChain
oracles.chartByChain
Get timeseries chart data breakdown by chain
Risk: read
await corsair.defillama.api.oracles.chartByChain({});
object[]
Output full type
Output full type
{
timestamp?: number | null
}[]
chartByProtocol
oracles.chartByProtocol
Get timeseries chart data breakdown by protocol
Risk: read
await corsair.defillama.api.oracles.chartByProtocol({});
object[]
Output full type
Output full type
{
timestamp?: number | null
}[]
metrics
oracles.metrics
Get oracle data overview
Risk: read
await corsair.defillama.api.oracles.metrics({});
| Name | Type | Required | Description |
|---|---|---|---|
oracles | Record<string, string[]> | null | No | Mapping of oracle names to arrays of protocol names using that oracle |
protocolChart
oracles.protocolChart
Get timeseries chart data by protocol/oracle
Risk: read
await corsair.defillama.api.oracles.protocolChart({ protocol: 'chainlink' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | oracle/protocol name |
number[][]
protocolChartByChain
oracles.protocolChartByChain
Get chain breakdown timeseries chart data by protocol/oracle
Risk: read
await corsair.defillama.api.oracles.protocolChartByChain({ protocol: 'chainlink' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | oracle/protocol name |
object[]
Output full type
Output full type
{
timestamp?: number | null
}[]
Overview
categories
overview.categories
Overview of all categories accross all protocols (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.overview.categories({});
| Name | Type | Required | Description |
|---|---|---|---|
chart | object | null | No | — |
categories | Record<string, string[]> | null | No | — |
chart full type
chart full type
Record<string, Record<string, {
tvl?: number | null,
staking?: number | null,
pool2?: number | null,
doublecounted?: number | null,
borrowed?: number | null,
offers?: number | null,
vesting?: number | null,
treasury?: number | null,
liquidstaking?: number | null,
dcAndLsOverlap?: number | null
}>> | null
entities
overview.entities
List all entities (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.overview.entities({});
object[]
Output full type
Output full type
{
id?: string | null,
name?: string | null,
url?: string | null,
description?: string | null,
logo?: string | null,
category?: string | null,
module?: string | null,
twitter?: string | null,
symbol?: string | null,
chain?: string | null,
gecko_id?: string | null | null,
cmcId?: string | null | null,
chains?: string[] | null,
slug?: string | null,
tvl?: number | null,
chainTvls?: Record<string, number> | null,
change_1h?: number | null,
change_1d?: number | null,
change_7d?: number | null,
tokenBreakdowns?: {
ownTokens?: number | null,
stablecoins?: number | null,
majors?: number | null,
others?: number | null
} | null,
mcap?: number | null | null
}[]
forks
overview.forks
Overview of all forks accross all protocols (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.overview.forks({});
| Name | Type | Required | Description |
|---|---|---|---|
chart | object | null | No | — |
forks | Record<string, string[]> | null | No | — |
chart full type
chart full type
Record<string, Record<string, {
staking?: number | null,
tvl?: number | null,
pool2?: number | null,
doublecounted?: number | null,
borrowed?: number | null,
vesting?: number | null,
liquidstaking?: number | null,
dcAndLsOverlap?: number | null
}>> | null
hacks
overview.hacks
Overview of all hacks on our Hacks dashboard
Risk: read
await corsair.defillama.api.overview.hacks({});
object[]
Output full type
Output full type
{
date?: number | null,
name?: string | null,
classification?: string | null,
technique?: string | null,
amount?: number | null,
chain?: string[] | null,
bridgeHack?: boolean | null,
targetType?: string | null,
source?: string | null,
returnedFunds?: number | null | null,
defillamaId?: number | string | null,
language?: string | null | null
}[]
oracles
overview.oracles
Overview of all oracles accross all protocols (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.overview.oracles({});
| Name | Type | Required | Description |
|---|---|---|---|
chart | object | null | No | — |
oracles | Record<string, string[]> | null | No | — |
chainsByOracle | Record<string, string[]> | null | No | — |
chart full type
chart full type
Record<string, Record<string, {
tvl?: number | null,
staking?: number | null,
pool2?: number | null,
borrowed?: number | null,
treasury?: number | null,
vesting?: number | null
}>> | null
raises
overview.raises
Overview of all raises on our Raises dashboard (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.overview.raises({});
| Name | Type | Required | Description |
|---|---|---|---|
raises | object[] | null | No | — |
raises full type
raises full type
{
date?: number | null,
name?: string | null,
round?: string | null,
amount?: number | null,
chains?: string[] | null,
sector?: string | null,
category?: string | null,
categoryGroup?: string | null,
source?: string | null,
leadInvestors?: string[] | null,
otherInvestors?: string[] | null,
valuation?: number | null | null,
defillamaId?: string | null
}[] | null
treasuries
overview.treasuries
List all protocols on our Treasuries dashboard (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.overview.treasuries({});
object[]
Output full type
Output full type
{
id?: string | null,
name?: string | null,
address?: string | null | null,
symbol?: string | null,
url?: string | null,
description?: string | null,
chain?: string | null,
logo?: string | null,
audits?: string | null,
audit_note?: string | null | null,
gecko_id?: string | null | null,
cmcId?: string | null | null,
category?: string | null,
chains?: string[] | null,
module?: string | null,
treasury?: string | null,
forkedFromIds?: string[] | null,
twitter?: string | null,
slug?: string | null,
tvl?: number | null,
chainTvls?: Record<string, number> | null,
change_1h?: number | null,
change_1d?: number | null,
change_7d?: number | null,
tokenBreakdowns?: {
ownTokens?: number | null,
stablecoins?: number | null,
majors?: number | null,
others?: number | null
} | null,
mcap?: number | null | null
}[]
Perps
derivatives
perps.derivatives
Lists all derivatives along summaries of their volumes filtering by chain (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.perps.derivatives({ excludeTotalDataChart: true, excludeTotalDataChartBreakdown: true });
| Name | Type | Required | Description |
|---|---|---|---|
excludeTotalDataChart | boolean | Yes | true to exclude aggregated chart from response |
excludeTotalDataChartBreakdown | boolean | Yes | true to exclude broken down chart from response |
| Name | Type | Required | Description |
|---|---|---|---|
totalDataChart | [number | null, number | null, ...any[]][] | null | No | Total data chart with timestamps and volumes |
totalDataChartBreakdown | object[] | null | No | Total data chart breakdown by protocol |
breakdown24h | object | null | No | 24 hour breakdown |
breakdown30d | object | null | No | 30 day breakdown |
chain | string | null | null | No | Chain filter |
allChains | string[] | null | No | All available chains |
total24h | number | null | No | Total 24 hour volume |
total48hto24h | number | null | No | Total 48h to 24h volume |
total7d | number | null | No | Total 7 day volume |
total14dto7d | number | null | No | Total 14d to 7d volume |
total60dto30d | number | null | No | Total 60d to 30d volume |
total30d | number | null | No | Total 30 day volume |
total1y | number | null | No | Total 1 year volume |
change_1d | number | null | No | 1 day change percentage |
change_7d | number | null | No | 7 day change percentage |
change_1m | number | null | No | 1 month change percentage |
change_7dover7d | number | null | No | 7d over 7d change percentage |
change_30dover30d | number | null | No | 30d over 30d change percentage |
total7DaysAgo | number | null | No | Total volume 7 days ago |
total30DaysAgo | number | null | No | Total volume 30 days ago |
totalAllTime | number | null | No | Total all time volume |
protocols | object[] | null | No | List of protocols |
totalDataChartBreakdown full type
totalDataChartBreakdown full type
[
number | null,
{
} | null,
...any[]
][] | null
breakdown24h full type
breakdown24h full type
{
} | null | null
breakdown30d full type
breakdown30d full type
{
} | null | null
protocols full type
protocols full type
{
total24h?: number | null,
total48hto24h?: number | null,
total7d?: number | null,
total14dto7d?: number | null,
total60dto30d?: number | null,
total30d?: number | null,
total1y?: number | null,
totalAllTime?: number | null,
average1y?: number | null,
change_1d?: number | null,
change_7d?: number | null,
change_1m?: number | null,
change_7dover7d?: number | null,
change_30dover30d?: number | null,
breakdown24h?: {
} | null,
breakdown30d?: {
} | null,
total7DaysAgo?: number | null,
total30DaysAgo?: number | null,
defillamaId?: string | null,
name?: string | null,
displayName?: string | null,
module?: string | null,
category?: string | null,
logo?: string | null,
chains?: string[] | null,
protocolType?: string | null,
methodologyURL?: string | null,
methodology?: {
} | null,
latestFetchIsOk?: boolean | null,
parentProtocol?: string | null,
slug?: string | null,
linkedProtocols?: string[] | null,
id?: string | null
}[] | null
derivativesSummary
perps.derivativesSummary
Volume Details about a specific perp protocol (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.perps.derivativesSummary({ protocol: 'aave', excludeTotalDataChart: true, excludeTotalDataChartBreakdown: true });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
excludeTotalDataChart | boolean | Yes | true to exclude aggregated chart from response |
excludeTotalDataChartBreakdown | boolean | Yes | true to exclude broken down chart from response |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | Protocol ID |
name | string | null | No | Protocol name |
url | string | null | No | Protocol URL |
referralUrl | string | null | No | Referral URL |
description | string | null | No | Protocol description |
logo | string | null | No | Protocol logo URL |
gecko_id | string | null | No | CoinGecko ID |
cmcId | string | null | No | CoinMarketCap ID |
chains | string[] | null | No | Supported chains |
twitter | string | null | No | Twitter handle |
github | string[] | null | No | GitHub repositories |
symbol | string | null | No | Token symbol |
address | string | null | No | Protocol address |
childProtocols | object[] | null | No | Child protocols |
linkedProtocols | string[] | null | No | Linked protocols |
defillamaId | string | null | No | DefiLlama protocol ID |
disabled | boolean | null | null | No | Whether protocol is disabled |
displayName | string | null | No | Display name |
module | string | null | null | No | Module name |
category | string | null | null | No | Protocol category |
methodologyURL | string | null | null | No | Methodology URL |
methodology | object | null | No | Methodology details |
forkedFrom | string | null | null | No | Forked from protocol |
audits | any[] | null | null | No | Audit information |
audit_links | any[] | null | null | No | Audit links |
versionKey | string | null | null | No | Version key |
governanceID | string | null | null | No | Governance ID |
treasury | string | null | null | No | Treasury address |
parentProtocol | string | null | null | No | Parent protocol |
previousNames | any[] | null | null | No | Previous names |
latestFetchIsOk | boolean | null | No | Latest fetch status |
slug | string | null | No | Protocol slug |
protocolType | string | null | No | Protocol type |
total24h | number | null | No | 24 hour volume |
total48hto24h | number | null | No | 48h to 24h volume |
total7d | number | null | No | 7 day volume |
totalAllTime | number | null | No | All time volume |
totalDataChart | [number | null, number | null, ...any[]][] | null | No | Total data chart with timestamps and volumes |
totalDataChartBreakdown | object[] | null | No | Total data chart breakdown by chain and protocol |
change_1d | number | null | No | 1 day change percentage |
childProtocols full type
childProtocols full type
{
}[] | null
methodology full type
methodology full type
{
} | null | null
totalDataChartBreakdown full type
totalDataChartBreakdown full type
[
number | null,
{
} | null,
...any[]
][] | null
openInterest
perps.openInterest
List all open interest dex exchanges along with summaries of their open interest
Risk: read
await corsair.defillama.api.perps.openInterest({ excludeTotalDataChart: true, excludeTotalDataChartBreakdown: true });
| Name | Type | Required | Description |
|---|---|---|---|
excludeTotalDataChart | boolean | Yes | true to exclude aggregated chart from response |
excludeTotalDataChartBreakdown | boolean | Yes | true to exclude broken down chart from response |
| Name | Type | Required | Description |
|---|---|---|---|
protocols | object[] | null | No | — |
totalDataChart | object[] | null | No | — |
allChains | string[] | null | No | — |
protocols full type
protocols full type
{
name?: string | null,
displayName?: string | null,
total24h?: number | null | null,
total7d?: number | null,
change_1d?: number | null,
change_7d?: number | null,
chains?: string[] | null
}[] | null
totalDataChart full type
totalDataChart full type
(number | {
})[][] | null
Pre Ipo
companies
preIpo.companies
Get list of all tracked pre-IPO companies (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.preIpo.companies({});
| Name | Type | Required | Description |
|---|---|---|---|
updatedAt | string | null | No | When this snapshot was generated. |
data | object[] | null | No | — |
data full type
data full type
{
id?: string | null,
name?: string | null,
description?: string | null,
website?: string | null,
sector?: string | null,
latestEstimatedValuation?: number | null | null,
latestRaise?: number | null | null,
latestFundingValuation?: number | null | null,
latestFundingDate?: string | null | null,
lastValuationDate?: string | null | null,
totalRaised?: number | null | null,
valuationChange1YPercentage?: number | null | null,
premiumVsLatestFundingPercentage?: number | null | null
}[] | null
integrations
preIpo.integrations
Get tradeable markets for a pre-IPO company (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.preIpo.integrations({ company: 'openai' });
| Name | Type | Required | Description |
|---|---|---|---|
company | string | Yes | Company id from GET /pre-ipo/v1/companies-list (case-insensitive). The display name is not accepted. |
| Name | Type | Required | Description |
|---|---|---|---|
updatedAt | string | null | No | When this snapshot was generated. |
data | object | null | No | — |
data full type
data full type
{
perps?: {
exchangeName?: string | null,
platformSlug?: string | null,
defillamaContract?: string | null,
exchangeType?: string | null,
openInterest?: number | null | null,
volume?: number | null | null,
price?: number | null,
annualizedFundingRate?: number | null | null,
tradeUrl?: string | null,
estimatedValuation?: number | null | null
}[] | null,
tokenIssuers?: {
issuerName?: string | null,
slug?: string | null | null,
backing?: string | null,
productUrl?: string | null,
price?: number | null,
marketCap?: number | null | null,
estimatedValuation?: number | null | null
}[] | null
} | null
raises
preIpo.raises
Get funding rounds for a pre-IPO company (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.preIpo.raises({ company: 'openai' });
| Name | Type | Required | Description |
|---|---|---|---|
company | string | Yes | Company id from GET /pre-ipo/v1/companies-list (case-insensitive). The display name is not accepted. |
| Name | Type | Required | Description |
|---|---|---|---|
updatedAt | string | null | No | When this snapshot was generated. |
data | object[] | null | No | — |
data full type
data full type
{
date?: string | null,
amountRaised?: number | null,
valuation?: number | null | null,
series?: string | null
}[] | null
summary
preIpo.summary
Get profile and latest valuation for a pre-IPO company (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.preIpo.summary({ company: 'openai' });
| Name | Type | Required | Description |
|---|---|---|---|
company | string | Yes | Company id from GET /pre-ipo/v1/companies-list (case-insensitive). The display name is not accepted. |
| Name | Type | Required | Description |
|---|---|---|---|
updatedAt | string | null | No | When this snapshot was generated. |
data | object | null | No | — |
data full type
data full type
{
id?: string | null,
name?: string | null,
description?: string | null,
summary?: string | null,
website?: string | null,
sector?: string | null,
latestEstimatedValuation?: number | null | null,
lastValuationDate?: string | null | null,
latestRaise?: {
date?: string | null,
amountRaised?: number | null,
valuation?: number | null | null,
series?: string | null
} | null | null
} | null
valuations
preIpo.valuations
Get valuation history for a pre-IPO company (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.preIpo.valuations({ company: 'openai' });
| Name | Type | Required | Description |
|---|---|---|---|
company | string | Yes | Company id from GET /pre-ipo/v1/companies-list (case-insensitive). The display name is not accepted. |
| Name | Type | Required | Description |
|---|---|---|---|
updatedAt | string | null | No | When this snapshot was generated. |
data | object[] | null | No | — |
data full type
data full type
{
date?: string | null,
estimatedValuation?: number | null
}[] | null
Rwa
chain
rwa.chain
List current RWA assets on a chain (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.rwa.chain({ chain: 'Ethereum' });
| Name | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Chain display name, case-insensitive. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | null | No | — |
data full type
data full type
{
id?: string | null,
canonicalMarketId?: string | null | null,
ticker?: string | null,
assetName?: string | null | null,
assetGroup?: string | null | null,
primaryChain?: string | null | null,
chain?: string[] | null | null,
category?: string[] | null | null,
assetClass?: string[] | null | null,
rwaClassification?: string | null | null,
accessModel?: string | null | null,
issuer?: string | null | null,
parentPlatform?: string | null | null,
onChainMcap?: Record<string, number> | null,
activeAum?: Record<string, number> | null,
defiActiveTvl?: Record<string, Record<string, number>> | null,
price?: number | null | null,
activeAumData?: boolean | null,
coingeckoId?: string | null | null,
logo?: string | null | null,
status?: string | null,
statusSince?: number | null,
statusReason?: string | null,
successor?: string | null
}[] | null
chainChart
rwa.chainChart
Get historical RWA chart data for a chain (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.rwa.chainChart({ chain: 'Ethereum' });
| Name | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | Chain display name. The API normalizes it to the internal RWA slug. |
object[]
Output full type
Output full type
{
timestamp?: number | null,
onChainMcap?: number | null | null,
activeAum?: number | null | null,
defiActiveTvl?: number | null | null
}[]
chartByChain
rwa.chartByChain
Get historical RWA metric breakdown by chain (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.rwa.chartByChain({});
| Name | Type | Required | Description |
|---|---|---|---|
key | onChainMcap | activeAum | defiActiveTvl | activeMcap | No | Metric to break down by chain, defaults to onChainMcap. onChainMcap is Onchain AUM, activeAum is Active AUM and defiActiveTvl is DeFi Active TVL. The retired spelling activeMcap is still accepted here. |
object[]
Output full type
Output full type
{
timestamp?: number | null
}[]
current
rwa.current
List all current RWA assets (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.rwa.current({});
object[]
Output full type
Output full type
{
id?: string | null,
canonicalMarketId?: string | null | null,
ticker?: string | null,
assetName?: string | null | null,
assetGroup?: string | null | null,
primaryChain?: string | null | null,
chain?: string[] | null | null,
category?: string[] | null | null,
assetClass?: string[] | null | null,
rwaClassification?: string | null | null,
accessModel?: string | null | null,
issuer?: string | null | null,
parentPlatform?: string | null | null,
onChainMcap?: Record<string, number> | null,
activeAum?: Record<string, number> | null,
defiActiveTvl?: Record<string, Record<string, number>> | null,
price?: number | null | null,
activeAumData?: boolean | null,
coingeckoId?: string | null | null,
logo?: string | null | null,
status?: string | null,
statusSince?: number | null,
statusReason?: string | null,
successor?: string | null
}[]
list
rwa.list
List RWA ids and filter values (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.rwa.list({});
| Name | Type | Required | Description |
|---|---|---|---|
canonicalMarketIds | string[] | null | No | — |
platforms | string[] | null | No | — |
chains | string[] | null | No | — |
categories | string[] | null | No | — |
assetGroups | string[] | null | No | — |
idMap | Record<string, string> | null | No | — |
stats
rwa.stats
Get aggregate RWA stats by chain, category, platform, and asset group
Risk: read
await corsair.defillama.api.rwa.stats({});
| Name | Type | Required | Description |
|---|---|---|---|
totalOnChainMcap | number | null | No | — |
totalActiveMcap | number | null | No | — |
totalDefiActiveTvl | number | null | No | — |
assetCount | number | null | No | — |
assetIssuers | number | null | No | — |
byChain | object | null | No | — |
byCategory | object | null | No | — |
byPlatform | object | null | No | — |
byAssetGroup | object | null | No | — |
byChain full type
byChain full type
Record<string, {
base?: {
onChainMcap?: number | null,
activeAum?: number | null,
defiActiveTvl?: number | null,
assetCount?: number | null,
assetIssuers?: string[] | null
} | null
}> | null
byCategory full type
byCategory full type
Record<string, {
base?: {
onChainMcap?: number | null,
activeAum?: number | null,
defiActiveTvl?: number | null,
assetCount?: number | null,
assetIssuers?: string[] | null
} | null
}> | null
byPlatform full type
byPlatform full type
Record<string, {
base?: {
onChainMcap?: number | null,
activeAum?: number | null,
defiActiveTvl?: number | null,
assetCount?: number | null,
assetIssuers?: string[] | null
} | null
}> | null
byAssetGroup full type
byAssetGroup full type
Record<string, {
base?: {
onChainMcap?: number | null,
activeAum?: number | null,
defiActiveTvl?: number | null,
assetCount?: number | null,
assetIssuers?: string[] | null
} | null
}> | null
Stablecoins
chains
stablecoins.chains
Get current mcap sum of all stablecoins on each chain
Risk: read
await corsair.defillama.api.stablecoins.chains({});
object[]
Output full type
Output full type
{
name?: string | null,
totalCirculatingUSD?: Record<string, number> | null
}[]
chartAll
stablecoins.chartAll
Get historical mcap sum of all stablecoins
Risk: read
await corsair.defillama.api.stablecoins.chartAll({});
| Name | Type | Required | Description |
|---|---|---|---|
stablecoin | number | No | stablecoin ID, you can get these from /stablecoins |
object[]
Output full type
Output full type
{
date?: string | null,
totalCirculating?: {
peggedUSD?: number | null
} | null
}[]
chartByChain
stablecoins.chartByChain
Get historical mcap sum of all stablecoins in a chain
Risk: read
await corsair.defillama.api.stablecoins.chartByChain({ chain: 'Ethereum' });
| Name | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | chain slug, you can get these from /chains or the chains property on /protocols |
stablecoin | number | No | stablecoin ID, you can get these from /stablecoins |
object[]
Output full type
Output full type
{
date?: string | null,
totalCirculating?: {
peggedUSD?: number | null
} | null
}[]
dominance
stablecoins.dominance
Get stablecoin dominance per chain along with the info about the larges coin in a chain
Risk: read
await corsair.defillama.api.stablecoins.dominance({ chain: 'Ethereum' });
| Name | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | chain slug, you can get these from /chains or the chains property on /protocols |
stablecoin | number | No | stablecoin ID, you can get these from /stablecoins |
object[]
Output full type
Output full type
{
date?: string | null,
totalCirculatingUSD?: {
peggedUSD?: number | null,
peggedVAR?: number | null,
peggedEUR?: number | null
} | null,
greatestMcap?: {
gecko_id?: string | null,
symbol?: string | null,
mcap?: number | null
} | null
}[]
get
stablecoins.get
Get historical mcap and historical chain distribution of a stablecoin
Risk: read
await corsair.defillama.api.stablecoins.get({ asset: 1 });
| Name | Type | Required | Description |
|---|---|---|---|
asset | number | Yes | stablecoin ID, you can get these from /stablecoins |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
name | string | null | No | — |
symbol | string | null | No | — |
totalCirculating | object[] | null | No | — |
chainCirculating | object | null | No | — |
totalCirculating full type
totalCirculating full type
{
date?: number | null,
totalCirculating?: number | null
}[] | null
chainCirculating full type
chainCirculating full type
Record<string, {
date?: number | null,
circulating?: number | null
}[]> | null
list
stablecoins.list
List all stablecoins along with their circulating amounts
Risk: read
await corsair.defillama.api.stablecoins.list({});
| Name | Type | Required | Description |
|---|---|---|---|
includePrices | boolean | No | set whether to include current stablecoin prices |
| Name | Type | Required | Description |
|---|---|---|---|
peggedAssets | object[] | null | No | — |
peggedAssets full type
peggedAssets full type
{
id?: string | null,
name?: string | null,
symbol?: string | null,
pegType?: string | null,
pegMechanism?: string | null,
circulating?: {
peggedUSD?: number | null
} | null,
chains?: string[] | null,
chainCirculating?: Record<string, {
current?: {
peggedUSD?: number | null
} | null
}> | null,
price?: number | null | null
}[] | null
prices
stablecoins.prices
Get historical prices of all stablecoins
Risk: read
await corsair.defillama.api.stablecoins.prices({});
object[]
Output full type
Output full type
{
date?: number | null,
prices?: Record<string, number | null> | null
}[]
Token Liquidity
history
tokenLiquidity.history
Provides the name of contracts on a determined chain (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.tokenLiquidity.history({ token: 'ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7' });
| Name | Type | Required | Description |
|---|---|---|---|
token | string | Yes | token slug |
any
Treasury
chart
treasury.chart
Get historical treasury chart for a protocol
Risk: read
await corsair.defillama.api.treasury.chart({ protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
key | OwnTokens | all | No | Token filter. Omit to exclude OwnTokens (default). Use “OwnTokens” to return only the protocol’s own tokens, or “all” for the sum of all tokens including OwnTokens. |
number[][]
chartByChain
treasury.chartByChain
Get historical treasury chart for a protocol broken down by chain
Risk: read
await corsair.defillama.api.treasury.chartByChain({ protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
key | OwnTokens | all | No | Token filter. Omit to exclude OwnTokens (default). Use “OwnTokens” to return only the protocol’s own tokens, or “all” for the sum of all tokens including OwnTokens. |
any[]
chartByToken
treasury.chartByToken
Get historical treasury chart for a protocol broken down by token
Risk: read
await corsair.defillama.api.treasury.chartByToken({ protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
key | OwnTokens | all | No | Token filter. Omit to exclude OwnTokens (default). Use “OwnTokens” to return only the protocol’s own tokens, or “all” for the sum of all tokens including OwnTokens. |
currency | usd | token | raw | No | Set to “tokens” to return values denominated in raw token amounts instead of USD |
any[]
metrics
treasury.metrics
Get aggregate treasury metrics for a protocol
Risk: read
await corsair.defillama.api.treasury.metrics({ protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
name | string | null | No | — |
address | string | null | null | No | — |
symbol | string | null | null | No | — |
url | string | null | No | — |
referralUrl | string | null | null | No | — |
description | string | null | No | — |
chain | string | null | No | — |
logo | string | null | No | — |
audits | string | null | null | No | — |
audit_note | string | null | null | No | — |
gecko_id | string | null | null | No | — |
cmcId | string | null | null | No | — |
category | string | null | No | — |
tags | string[] | null | null | No | — |
chains | string[] | null | No | — |
module | string | null | null | No | — |
treasury | string | null | null | No | — |
twitter | string | null | No | — |
audit_links | string[] | null | No | — |
openSource | boolean | null | No | — |
forkedFrom | string[] | null | No | — |
oraclesByChain | Record<string, string[]> | null | No | — |
parentProtocol | string | null | No | — |
governanceID | string[] | null | No | — |
github | string[] | null | No | — |
currentChainTvls | Record<string, number> | null | No | — |
isParentProtocol | boolean | null | No | — |
mcap | number | null | null | No | — |
methodology | string | null | null | No | — |
raises | object[] | null | No | — |
otherProtocols | string[] | null | No | — |
hallmarks | any[][] | null | No | Notable events in the protocol’s history as [timestamp, description] pairs |
stablecoins | string[] | null | No | — |
misrepresentedTokens | boolean | null | No | — |
deprecated | boolean | null | No | — |
rugged | boolean | null | No | — |
deadUrl | boolean | null | No | — |
warningBanners | object[] | null | No | — |
tokenRights | object | null | No | Token governance and value accrual rights |
wrongLiquidity | boolean | null | No | — |
tvlCodePath | string | null | No | Path to the TVL adapter source code |
raises full type
raises full type
{
round?: string | null,
amount?: number | null,
valuation?: string | null,
source?: string | null,
date?: number | null,
defillamaId?: string | null,
leadInvestors?: string[] | null,
otherInvestors?: string[] | null,
investors?: string[] | null
}[] | null
warningBanners full type
warningBanners full type
{
message?: string | null,
until?: string | null | null,
level?: string | null
}[] | null
tokenRights full type
tokenRights full type
{
} | null
Tvl
chainAssets
tvl.chainAssets
Get assets of all chains (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.tvl.chainAssets({});
| Name | Type | Required | Description |
|---|---|---|---|
chain | object | null | No | — |
timestamp | number | null | No | — |
chain full type
chain full type
{
canonical?: {
total?: string | null,
breakdown?: Record<string, string> | null
} | null,
native?: {
total?: string | null,
breakdown?: Record<string, string> | null
} | null,
thirdParty?: {
total?: string | null,
breakdown?: Record<string, string> | null
} | null,
total?: {
total?: string | null,
breakdown?: Record<string, string> | null
} | null
} | null
chains
tvl.chains
Get current TVL of all chains
Risk: read
await corsair.defillama.api.tvl.chains({});
object[]
Output full type
Output full type
{
gecko_id?: string | null | null,
tvl?: number | null,
tokenSymbol?: string | null | null,
cmcId?: string | null | null,
name?: string | null,
chainId?: number | null | null
}[]
chart
tvl.chart
Get historical TVL chart for a protocol
Risk: read
await corsair.defillama.api.tvl.chart({ protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
key | all | staking | borrowed | vesting | pool2 | No | Metric to return. Omit for default TVL. Use “all” for the sum of tvl+borrowed+staking+pool2+vesting, or a specific metric like “staking”, “borrowed”, “vesting”, “pool2”. |
number[][]
chartByChain
tvl.chartByChain
Get historical TVL chart for a protocol broken down by chain
Risk: read
await corsair.defillama.api.tvl.chartByChain({ protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
key | all | staking | borrowed | vesting | pool2 | No | Metric to return. Omit for default TVL. Use “all” for the sum of tvl+borrowed+staking+pool2+vesting, or a specific metric like “staking”, “borrowed”, “vesting”, “pool2”. |
any[]
chartByToken
tvl.chartByToken
Get historical TVL chart for a protocol broken down by token
Risk: read
await corsair.defillama.api.tvl.chartByToken({ protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
key | all | staking | borrowed | vesting | pool2 | No | Metric to return. Omit for default TVL. Use “all” for the sum of tvl+borrowed+staking+pool2+vesting, or a specific metric like “staking”, “borrowed”, “vesting”, “pool2”. |
currency | usd | token | raw | No | Set to “tokens” to return values denominated in raw token amounts instead of USD |
any[]
current
tvl.current
Simplified endpoint to get current TVL of a protocol
Risk: read
await corsair.defillama.api.tvl.current({ protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
number
historicalChainTvl
tvl.historicalChainTvl
Get historical TVL (excludes liquid staking and double counted tvl) of DeFi on all chains
Risk: read
await corsair.defillama.api.tvl.historicalChainTvl({});
object[]
Output full type
Output full type
{
date?: number | null,
tvl?: number | null
}[]
historicalChainTvlByChain
tvl.historicalChainTvlByChain
Get historical TVL (excludes liquid staking and double counted tvl) of a chain
Risk: read
await corsair.defillama.api.tvl.historicalChainTvlByChain({ chain: 'Ethereum' });
| Name | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | chain slug, you can get these from /chains or the chains property on /protocols |
object[]
Output full type
Output full type
{
date?: number | null,
tvl?: number | null
}[]
inflows
tvl.inflows
Lists the amount of inflows and outflows for a protocol at a given date (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.tvl.inflows({ protocol: 'aave', timestamp: 1764547200 });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
timestamp | number | Yes | unix timestamp |
| Name | Type | Required | Description |
|---|---|---|---|
outflows | number | null | No | — |
oldTokens | object | null | No | — |
currentTokens | object | null | No | — |
oldTokens full type
oldTokens full type
{
date?: number | null,
tvl?: Record<string, number> | null
} | null
currentTokens full type
currentTokens full type
{
date?: number | null,
tvl?: Record<string, number> | null
} | null
metrics
tvl.metrics
Get aggregate TVL metrics for a protocol
Risk: read
await corsair.defillama.api.tvl.metrics({ protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
name | string | null | No | — |
address | string | null | null | No | — |
symbol | string | null | null | No | — |
url | string | null | No | — |
referralUrl | string | null | null | No | — |
description | string | null | No | — |
chain | string | null | No | — |
logo | string | null | No | — |
audits | string | null | null | No | — |
audit_note | string | null | null | No | — |
gecko_id | string | null | null | No | — |
cmcId | string | null | null | No | — |
category | string | null | No | — |
tags | string[] | null | null | No | — |
chains | string[] | null | No | — |
module | string | null | null | No | — |
treasury | string | null | null | No | — |
twitter | string | null | No | — |
audit_links | string[] | null | No | — |
openSource | boolean | null | No | — |
forkedFrom | string[] | null | No | — |
oraclesByChain | Record<string, string[]> | null | No | — |
parentProtocol | string | null | No | — |
governanceID | string[] | null | No | — |
github | string[] | null | No | — |
currentChainTvls | Record<string, number> | null | No | — |
isParentProtocol | boolean | null | No | — |
mcap | number | null | null | No | — |
methodology | string | null | null | No | — |
raises | object[] | null | No | — |
otherProtocols | string[] | null | No | — |
hallmarks | any[][] | null | No | Notable events in the protocol’s history as [timestamp, description] pairs |
stablecoins | string[] | null | No | — |
misrepresentedTokens | boolean | null | No | — |
deprecated | boolean | null | No | — |
rugged | boolean | null | No | — |
deadUrl | boolean | null | No | — |
warningBanners | object[] | null | No | — |
tokenRights | object | null | No | Token governance and value accrual rights |
wrongLiquidity | boolean | null | No | — |
tvlCodePath | string | null | No | Path to the TVL adapter source code |
raises full type
raises full type
{
round?: string | null,
amount?: number | null,
valuation?: string | null,
source?: string | null,
date?: number | null,
defillamaId?: string | null,
leadInvestors?: string[] | null,
otherInvestors?: string[] | null,
investors?: string[] | null
}[] | null
warningBanners full type
warningBanners full type
{
message?: string | null,
until?: string | null | null,
level?: string | null
}[] | null
tokenRights full type
tokenRights full type
{
} | null
protocol
tvl.protocol
Get historical TVL of a protocol and breakdowns by token and chain
Risk: read
await corsair.defillama.api.tvl.protocol({ protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | — |
name | string | null | No | — |
symbol | string | null | No | — |
category | string | null | No | — |
chains | string[] | null | No | — |
currentChainTvls | Record<string, number> | null | No | — |
chainTvls | object | null | No | — |
chainTvls full type
chainTvls full type
Record<string, {
tvl?: {
date?: number | null,
totalLiquidityUSD?: number | null
}[] | null,
tokens?: {
date?: number | null,
tokens?: Record<string, number> | null
}[] | null | null
}> | null
protocols
tvl.protocols
List all protocols on defillama along with their tvl
Risk: read
await corsair.defillama.api.tvl.protocols({});
object[]
Output full type
Output full type
{
id?: string | null,
name?: string | null,
symbol?: string | null,
category?: string | null,
chains?: string[] | null,
tvl?: number | null | null,
chainTvls?: Record<string, number> | null,
change_1d?: number | null | null,
change_7d?: number | null | null
}[]
tokenProtocols
tvl.tokenProtocols
Lists the amount of a certain token within all protocols. Data for the Token Usage page (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.tvl.tokenProtocols({ symbol: 'USDT' });
| Name | Type | Required | Description |
|---|---|---|---|
symbol | string | Yes | token slug |
object[]
Output full type
Output full type
{
name?: string | null,
category?: string | null,
amountUsd?: Record<string, number> | null
}[]
Unlocks
get
unlocks.get
Unlocks data for a given token/protocol. You can find a list of available slugs to query by querying /emissions and then extracting the key gecko_id (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.unlocks.get({ protocol: 'aave' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
| Name | Type | Required | Description |
|---|---|---|---|
body | object | null | No | — |
lastModified | string | null | No | — |
body full type
body full type
{
documentedData?: {
data?: {
label?: string | null,
data?: {
timestamp?: number | null,
unlocked?: number | null,
rawEmission?: number | null,
burned?: number | null
}[] | null
}[] | null,
tokenAllocation?: {
current?: {
insiders?: number | null,
noncirculating?: number | null,
publicSale?: number | null,
airdrop?: number | null,
farming?: number | null
} | null,
final?: {
insiders?: number | null,
noncirculating?: number | null,
publicSale?: number | null,
airdrop?: number | null,
farming?: number | null
} | null,
progress?: {
insiders?: number | null,
noncirculating?: number | null,
publicSale?: number | null,
airdrop?: number | null,
farming?: number | null
} | null
} | null
} | null,
metadata?: {
notes?: string[] | null,
token?: string | null,
sources?: string[] | null,
protocolIds?: string[] | null,
total?: number | null,
chain?: string | null,
name?: string | null,
gecko_id?: string | null,
defillamaIds?: string[] | null,
categories?: {
insiders?: string[] | null,
noncirculating?: string[] | null,
publicSale?: string[] | null,
airdrop?: string[] | null,
farming?: string[] | null
} | null,
protocolCategory?: string | null,
chainName?: string | null,
pId?: string | null
} | null
} | null
list
unlocks.list
List of all tokens along with basic info for each (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.unlocks.list({});
object[]
Output full type
Output full type
{
token?: string | null,
sources?: string[] | null,
protocolId?: string | null,
name?: string | null,
circSupply?: number | null,
circSupply30d?: number | null,
totalLocked?: number | null,
maxSupply?: number | null,
gecko_id?: string | null,
events?: {
description?: string | null,
timestamp?: number | null,
noOfTokens?: number[] | null,
category?: string | null,
unlockType?: string | null
}[] | null,
nextEvent?: {
date?: number | null,
toUnlock?: number | null
} | null,
unlocksPerDay?: number | null,
mcap?: number | null
}[]
Volumes
dexs
volumes.dexs
List all dexs along with summaries of their volumes and dataType history data
Risk: read
await corsair.defillama.api.volumes.dexs({ excludeTotalDataChart: true, excludeTotalDataChartBreakdown: true });
| Name | Type | Required | Description |
|---|---|---|---|
excludeTotalDataChart | boolean | Yes | true to exclude aggregated chart from response |
excludeTotalDataChartBreakdown | boolean | Yes | true to exclude broken down chart from response |
| Name | Type | Required | Description |
|---|---|---|---|
protocols | object[] | null | No | — |
totalDataChart | object[] | null | No | — |
allChains | string[] | null | No | — |
protocols full type
protocols full type
{
name?: string | null,
displayName?: string | null,
total24h?: number | null | null,
total7d?: number | null,
change_1d?: number | null,
change_7d?: number | null,
chains?: string[] | null
}[] | null
totalDataChart full type
totalDataChart full type
(number | {
})[][] | null
dexsByChain
volumes.dexsByChain
List all dexs along with summaries of their volumes and dataType history data filtering by chain
Risk: read
await corsair.defillama.api.volumes.dexsByChain({ chain: 'Ethereum', excludeTotalDataChart: true, excludeTotalDataChartBreakdown: true });
| Name | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | chain name, list of all supported chains can be found under allChains attribute in /overview/dexs response |
excludeTotalDataChart | boolean | Yes | true to exclude aggregated chart from response |
excludeTotalDataChartBreakdown | boolean | Yes | true to exclude broken down chart from response |
| Name | Type | Required | Description |
|---|---|---|---|
protocols | object[] | null | No | — |
totalDataChart | any[][] | null | No | — |
protocols full type
protocols full type
{
name?: string | null,
total24h?: number | null | null,
change_1d?: number | null
}[] | null
dexSummary
volumes.dexSummary
Get summary of dex volume with historical data
Risk: read
await corsair.defillama.api.volumes.dexSummary({ protocol: 'uniswap', excludeTotalDataChart: true, excludeTotalDataChartBreakdown: true });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
excludeTotalDataChart | boolean | Yes | true to exclude aggregated chart from response |
excludeTotalDataChartBreakdown | boolean | Yes | true to exclude broken down chart from response |
| Name | Type | Required | Description |
|---|---|---|---|
name | string | null | No | — |
total24h | number | null | No | — |
totalAllTime | number | null | No | — |
totalDataChart | any[][] | null | No | — |
totalDataChartBreakdown | any[][] | null | No | — |
chains | string[] | null | No | — |
options
volumes.options
List all options dexs along with summaries of their volumes and dataType history data
Risk: read
await corsair.defillama.api.volumes.options({ excludeTotalDataChart: true, excludeTotalDataChartBreakdown: true });
| Name | Type | Required | Description |
|---|---|---|---|
excludeTotalDataChart | boolean | Yes | true to exclude aggregated chart from response |
excludeTotalDataChartBreakdown | boolean | Yes | true to exclude broken down chart from response |
dataType | dailyPremiumVolume | dailyNotionalVolume | No | Desired data type, dailyNotionalVolume by default. |
| Name | Type | Required | Description |
|---|---|---|---|
protocols | object[] | null | No | — |
totalDataChart | any[][] | null | No | — |
protocols full type
protocols full type
{
name?: string | null,
total24h?: number | null | null,
change_1d?: number | null
}[] | null
optionsByChain
volumes.optionsByChain
List all options dexs along with summaries of their volumes and dataType history data filtering by chain
Risk: read
await corsair.defillama.api.volumes.optionsByChain({ chain: 'Ethereum', excludeTotalDataChart: true, excludeTotalDataChartBreakdown: true });
| Name | Type | Required | Description |
|---|---|---|---|
chain | string | Yes | chain name, list of all supported chains can be found under allChains attribute in /overview/options response |
excludeTotalDataChart | boolean | Yes | true to exclude aggregated chart from response |
excludeTotalDataChartBreakdown | boolean | Yes | true to exclude broken down chart from response |
dataType | dailyPremiumVolume | dailyNotionalVolume | No | Desired data type, dailyNotionalVolume by default. |
| Name | Type | Required | Description |
|---|---|---|---|
totalDataChart | number[][] | null | No | Historical chart data with timestamps and total volumes |
totalDataChartBreakdown | (number | Record<string, number>)[][] | null | No | Historical chart data broken down by protocol |
breakdown24h | object | null | No | 24-hour breakdown data |
breakdown30d | object | null | No | 30-day breakdown data |
chain | string | null | No | Chain name |
allChains | string[] | null | No | List of all supported chains |
total24h | number | null | No | Total 24-hour volume |
total48hto24h | number | null | No | Total 48-hour to 24-hour volume |
total7d | number | null | No | Total 7-day volume |
total14dto7d | number | null | No | Total 14-day to 7-day volume |
total60dto30d | number | null | No | Total 60-day to 30-day volume |
total30d | number | null | No | Total 30-day volume |
total1y | number | null | No | Total 1-year volume |
change_1d | number | null | No | 1-day change percentage |
change_7d | number | null | No | 7-day change percentage |
change_1m | number | null | No | 1-month change percentage |
change_7dover7d | number | null | No | 7-day over 7-day change percentage |
change_30dover30d | number | null | No | 30-day over 30-day change percentage |
total7DaysAgo | number | null | No | Total volume 7 days ago |
total30DaysAgo | number | null | No | Total volume 30 days ago |
totalAllTime | number | null | No | Total all-time volume |
protocols | object[] | null | No | List of protocols with their volume data |
breakdown24h full type
breakdown24h full type
{
} | null | null
breakdown30d full type
breakdown30d full type
{
} | null | null
protocols full type
protocols full type
{
total24h?: number | null | null,
total48hto24h?: number | null | null,
total7d?: number | null,
total14dto7d?: number | null,
total60dto30d?: number | null,
total30d?: number | null,
total1y?: number | null,
totalAllTime?: number | null,
total7DaysAgo?: number | null,
total30DaysAgo?: number | null,
average1y?: number | null,
change_1d?: number | null,
change_7d?: number | null,
change_1m?: number | null,
change_7dover7d?: number | null,
change_30dover30d?: number | null,
defillamaId?: string | null,
name?: string | null,
displayName?: string | null,
module?: string | null,
category?: string | null,
logo?: string | null,
chains?: string[] | null,
protocolType?: string | null,
methodologyURL?: string | null,
methodology?: Record<string, string> | null,
parentProtocol?: string | null,
slug?: string | null,
linkedProtocols?: string[] | null,
id?: string | null
}[] | null
optionsSummary
volumes.optionsSummary
Get summary of options dex volume with historical data
Risk: read
await corsair.defillama.api.volumes.optionsSummary({ protocol: 'hegic' });
| Name | Type | Required | Description |
|---|---|---|---|
protocol | string | Yes | protocol slug |
dataType | dailyPremiumVolume | dailyNotionalVolume | No | Desired data type, dailyNotionalVolume by default. |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | null | No | Protocol ID |
name | string | null | No | Protocol name |
url | string | null | No | Protocol URL |
description | string | null | null | No | Protocol description |
logo | string | null | No | Protocol logo URL |
gecko_id | string | null | null | No | CoinGecko ID |
cmcId | string | null | null | No | CoinMarketCap ID |
chains | string[] | null | No | Supported chains |
twitter | string | null | No | Twitter handle |
governanceID | string[] | null | null | No | Governance IDs |
github | string[] | null | null | No | GitHub repositories |
treasury | string | null | null | No | Treasury address |
symbol | string | null | No | Token symbol |
address | string | null | null | No | Protocol address |
childProtocols | object[] | null | No | Child protocols |
linkedProtocols | string[] | null | No | Linked protocols |
defillamaId | string | null | No | DefiLlama protocol ID |
disabled | boolean | null | null | No | Whether protocol is disabled |
displayName | string | null | No | Display name |
module | string | null | null | No | Module name |
category | string | null | null | No | Protocol category |
methodologyURL | string | null | null | No | Methodology URL |
methodology | object | null | No | Methodology details |
forkedFrom | string | null | null | No | Forked from protocol |
audits | string | null | null | No | Audit information |
audit_links | any[] | null | null | No | Audit links |
versionKey | string | null | null | No | Version key |
parentProtocol | string | null | null | No | Parent protocol |
previousNames | any[] | null | null | No | Previous names |
slug | string | null | No | Protocol slug |
protocolType | string | null | No | Protocol type |
total24h | number | null | null | No | 24-hour volume |
total48hto24h | number | null | null | No | 48-hour to 24-hour volume |
total7d | number | null | No | 7-day volume |
totalAllTime | number | null | No | All-time volume |
totalDataChart | number[][] | null | No | Historical chart data with timestamps and volumes |
totalDataChartBreakdown | (number | Record<string, Record<string, number>>)[][] | null | No | Historical chart data broken down by chain and protocol |
change_1d | number | null | No | 1-day change percentage |
childProtocols full type
childProtocols full type
{
}[] | null
methodology full type
methodology full type
{
} | null | null
Yields
borrow.marketHistory
yields.borrow.marketHistory
Retrieve daily borrow-side history for a borrow market (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.yields.borrow.marketHistory({ id: 'aa70268e-4b52-42bf-a116-608b370f9501' });
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Borrow market id (UUID) |
range | 30d | 90d | max | No | History window; defaults to max (the full series) |
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | null | No | — |
data full type
data full type
{
date?: string | null,
total_borrow_usd?: number | null | null,
available_borrow_usd?: number | null | null,
borrow_cost_apy?: {
avg_1d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null
} | null,
intrinsic?: {
apy?: {
avg_1d?: {
base?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null
} | null
} | null
} | null | null
}[] | null
borrow.markets
yields.borrow.markets
Retrieve the latest data for all borrow markets (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.yields.borrow.markets({});
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | null | No | — |
data full type
data full type
{
id?: string | null,
pool_key?: string | null,
pool_token?: {
address?: string | null,
symbol?: string | null | null,
name?: string | null | null
} | null | null,
display?: {
label?: string | null | null,
detail?: string | null | null
} | null,
url?: string | null | null,
protocol?: string | null,
chain?: string | null,
collateral_token?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
} | null,
borrow_token?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
} | null,
reward_tokens?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
}[] | null,
loan_to_value?: number | null | null,
total_supply_usd?: number | null | null,
total_borrow_usd?: number | null | null,
available_borrow_usd?: number | null | null,
supply_apy?: {
current?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null
} | null,
borrow_cost_apy?: {
current?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null
} | null,
intrinsic?: {
supply?: {
apy?: {
current?: {
base?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null
} | null
} | null,
source_pool?: {
id?: string | null,
pool_token?: string | null,
symbol?: string | null | null
} | null
} | null | null,
borrow?: {
apy?: {
current?: {
base?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null
} | null
} | null,
source_pool?: {
id?: string | null,
pool_token?: string | null,
symbol?: string | null | null
} | null
} | null | null
} | null
}[] | null
borrow.routes
yields.borrow.routes
Retrieve the latest data for all borrow routes (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.yields.borrow.routes({});
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | null | No | — |
data full type
data full type
{
display?: {
detail?: string | null | null
} | null,
protocol?: string | null,
chain?: string | null,
collateral?: {
id?: string | null,
pool_key?: string | null,
url?: string | null | null,
token?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
} | null,
loan_to_value?: number | null | null,
total_supply_usd?: number | null | null,
apy?: {
current?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null
} | null,
intrinsic?: {
apy?: {
current?: {
base?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null
} | null
} | null,
source_pool?: {
id?: string | null,
pool_token?: string | null,
symbol?: string | null | null
} | null
} | null | null,
reward_tokens?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
}[] | null
} | null,
borrow?: {
id?: string | null,
pool_key?: string | null,
url?: string | null | null,
token?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
} | null,
total_borrow_usd?: number | null | null,
available_borrow_usd?: number | null | null,
cost_apy?: {
current?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null
} | null,
intrinsic?: {
apy?: {
current?: {
base?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null
} | null
} | null,
source_pool?: {
id?: string | null,
pool_token?: string | null,
symbol?: string | null | null
} | null
} | null | null,
reward_tokens?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
}[] | null
} | null,
net_apy?: {
current?: {
base?: number | null | null,
base_reward?: number | null | null,
base_intrinsic?: number | null | null,
base_reward_intrinsic?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null,
base_reward?: number | null | null,
base_intrinsic?: number | null | null,
base_reward_intrinsic?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null,
base_reward?: number | null | null,
base_intrinsic?: number | null | null,
base_reward_intrinsic?: number | null | null
} | null
} | null
}[] | null
borrowPools
yields.borrowPools
Borrow costs APY of assets from lending markets in the legacy v1 response format (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.yields.borrowPools({});
| Name | Type | Required | Description |
|---|---|---|---|
status | string | null | No | — |
data | object[] | null | No | — |
data full type
data full type
{
chain?: string | null,
project?: string | null,
symbol?: string | null,
tvlUsd?: number | null | null,
apyBase?: number | null | null,
apyReward?: number | null | null,
apy?: number | null | null,
rewardTokens?: string[] | null | null,
pool?: string | null,
apyPct1D?: number | null | null,
apyPct7D?: number | null | null,
apyPct30D?: number | null | null,
stablecoin?: boolean | null,
ilRisk?: string | null,
exposure?: string | null,
predictions?: {
predictedClass?: string | null | null,
predictedProbability?: number | null | null,
binnedConfidence?: number | null | null
} | null,
poolMeta?: string | null | null,
mu?: number | null | null,
sigma?: number | null | null,
count?: number | null | null,
outlier?: boolean | null | null,
underlyingTokens?: string[] | null | null,
il7d?: number | null | null,
apyBase7d?: number | null | null,
apyMean30d?: number | null | null,
volumeUsd1d?: number | null | null,
volumeUsd7d?: number | null | null,
apyBaseInception?: number | null | null,
apyBaseBorrow?: number | null | null,
apyRewardBorrow?: number | null | null,
totalSupplyUsd?: number | null | null,
totalBorrowUsd?: number | null | null,
debtCeilingUsd?: number | null | null,
ltv?: number | null | null,
borrowable?: boolean | null | null,
mintedCoin?: string | null | null,
borrowFactor?: number | null | null
}[] | null
earn.history
yields.earn.history
Retrieve daily history for an earn pool (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.yields.earn.history({ id: '747c1d2a-c668-4682-b9f9-296708a3dd90' });
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Earn pool id (UUID) |
range | 30d | 90d | max | No | History window; defaults to max (the full series) |
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | null | No | — |
data full type
data full type
{
date?: string | null,
tvl_usd?: number | null | null,
apy?: {
avg_1d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null
} | null,
intrinsic?: {
apy?: {
avg_1d?: {
base?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null
} | null
} | null
} | null | null,
price_per_share?: number | null | null
}[] | null
earn.list
yields.earn.list
Retrieve the latest data for all earn pools (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.yields.earn.list({});
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | null | No | — |
data full type
data full type
{
id?: string | null,
pool_key?: string | null,
pool_token?: {
address?: string | null,
symbol?: string | null | null,
name?: string | null | null
} | null | null,
display?: {
label?: string | null | null,
detail?: string | null | null
} | null,
reference_asset_symbol?: string | null | null,
url?: string | null | null,
protocol?: string | null,
chain?: string | null,
underlying_tokens?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
}[] | null,
reward_tokens?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
}[] | null,
tvl_usd?: number | null | null,
apy?: {
current?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null
} | null,
intrinsic?: {
apy?: {
current?: {
base?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null
} | null
} | null,
source_pool?: {
id?: string | null,
pool_token?: string | null,
symbol?: string | null | null
} | null
} | null | null,
stability_30d?: {
base?: number | null | null,
base_reward?: number | null | null,
base_intrinsic?: number | null | null,
base_reward_intrinsic?: number | null | null
} | null,
price_per_share?: number | null | null,
volume_1d_usd?: number | null | null,
attributes?: {
stablecoin_only?: boolean | null,
single_asset_exposure?: boolean | null,
impermanent_loss_risk?: boolean | null
} | null,
holders?: {
count?: number | null | null,
avg_position_usd?: number | null | null,
top_10_share_pct?: number | null | null
} | null,
available_supply_usd?: number | null | null
}[] | null
earn.query
yields.earn.query
Retrieve a filtered, paginated page of earn pools (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.yields.earn.query({});
| Name | Type | Required | Description |
|---|---|---|---|
chain | string | string[] | No | Chain slug (lowercase). Repeat the parameter to match any of several chains, e.g. chain=ethereum&chain=arbitrum (at most 20 values) |
protocol | string | string[] | No | Protocol slug (lowercase, e.g. aave-v3). Repeat the parameter to match any of several protocols (at most 20 values) |
stablecoin | boolean | No | true keeps only pools whose assets are all stablecoins, false only the rest |
single_asset_exposure | boolean | No | true keeps only pools exposed to a single asset, false only the rest |
impermanent_loss_risk | boolean | No | true keeps only pools with impermanent loss risk, false only the rest |
min_tvl | number | No | Minimum pool TVL in USD (inclusive) |
page | number | No | 1-based page number; default 1 |
limit | number | No | Page size between 1 and 300; default 100. Values above 300 are rejected, not clamped |
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | null | No | — |
pagination | object | null | No | — |
data full type
data full type
{
id?: string | null,
pool_key?: string | null,
pool_token?: {
address?: string | null,
symbol?: string | null | null,
name?: string | null | null
} | null | null,
display?: {
label?: string | null | null,
detail?: string | null | null
} | null,
reference_asset_symbol?: string | null | null,
url?: string | null | null,
protocol?: string | null,
chain?: string | null,
underlying_tokens?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
}[] | null,
reward_tokens?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
}[] | null,
tvl_usd?: number | null | null,
apy?: {
current?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null
} | null,
intrinsic?: {
apy?: {
current?: {
base?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null
} | null
} | null,
source_pool?: {
id?: string | null,
pool_token?: string | null,
symbol?: string | null | null
} | null
} | null | null,
stability_30d?: {
base?: number | null | null,
base_reward?: number | null | null,
base_intrinsic?: number | null | null,
base_reward_intrinsic?: number | null | null
} | null,
price_per_share?: number | null | null,
volume_1d_usd?: number | null | null,
attributes?: {
stablecoin_only?: boolean | null,
single_asset_exposure?: boolean | null,
impermanent_loss_risk?: boolean | null
} | null,
holders?: {
count?: number | null | null,
avg_position_usd?: number | null | null,
top_10_share_pct?: number | null | null
} | null,
available_supply_usd?: number | null | null
}[] | null
pagination full type
pagination full type
{
total?: number | null,
page?: number | null,
limit?: number | null
} | null
earn.verified
yields.earn.verified
Retrieve the latest verified data for all measured earn pools (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.yields.earn.verified({});
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | null | No | — |
data full type
data full type
{
id?: string | null,
apy?: {
avg_1d?: number | null | null,
avg_7d?: number | null | null,
avg_30d?: number | null | null
} | null,
apy_as_of?: string | null | null,
apy_note?: string | null | null,
apy_confidence?: string | null | null,
apy_reward?: {
avg_1d?: number | null | null,
avg_7d?: number | null | null,
avg_30d?: number | null | null
} | null,
apy_reward_as_of?: string | null | null,
apy_reward_tokens?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
}[] | null | null,
apy_reward_sources?: string[] | null | null,
apy_reward_notes?: string[] | null,
exit?: {
status?: string | null | null,
eta_seconds?: number | null | null,
fee_bps?: number | null | null,
as_of?: string | null | null,
fee_flat?: string | null
} | null,
exit_liquidity?: {
amount?: string | null | null,
usd?: number | null | null,
slippage_bps?: number | null | null,
as_of?: string | null | null
} | null,
tvl?: {
amount?: string | null | null,
usd?: number | null | null,
as_of?: string | null | null
} | null,
price_per_share?: number | null | null,
denomination?: {
address?: string | null,
decimals?: number | null | null
} | {
kind?: string | null,
lp_token?: string | null,
decimals?: number | null | null,
coins?: string[] | null | null
} | null | null
}[] | null
earn.verifiedGet
yields.earn.verifiedGet
Retrieve the latest verified data for one earn pool (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.yields.earn.verifiedGet({ id: '747c1d2a-c668-4682-b9f9-296708a3dd90' });
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Earn pool id (UUID) |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | null | No | — |
data full type
data full type
{
id?: string | null,
apy?: {
avg_1d?: number | null | null,
avg_7d?: number | null | null,
avg_30d?: number | null | null
} | null,
apy_as_of?: string | null | null,
apy_note?: string | null | null,
apy_confidence?: string | null | null,
apy_reward?: {
avg_1d?: number | null | null,
avg_7d?: number | null | null,
avg_30d?: number | null | null
} | null,
apy_reward_as_of?: string | null | null,
apy_reward_tokens?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
}[] | null | null,
apy_reward_sources?: string[] | null | null,
apy_reward_notes?: string[] | null,
exit?: {
status?: string | null | null,
eta_seconds?: number | null | null,
fee_bps?: number | null | null,
as_of?: string | null | null,
fee_flat?: string | null
} | null,
exit_liquidity?: {
amount?: string | null | null,
usd?: number | null | null,
slippage_bps?: number | null | null,
as_of?: string | null | null
} | null,
tvl?: {
amount?: string | null | null,
usd?: number | null | null,
as_of?: string | null | null
} | null,
price_per_share?: number | null | null,
denomination?: {
address?: string | null,
decimals?: number | null | null
} | {
kind?: string | null,
lp_token?: string | null,
decimals?: number | null | null,
coins?: string[] | null | null
} | null | null,
methods?: string[] | null | null
} | null
earn.verifiedHistory
yields.earn.verifiedHistory
Retrieve daily verified history for an earn pool (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.yields.earn.verifiedHistory({ id: '747c1d2a-c668-4682-b9f9-296708a3dd90' });
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Earn pool id (UUID) |
range | 30d | 90d | max | No | History window; defaults to max (the full series) |
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | null | No | — |
data full type
data full type
{
date?: string | null,
outcome?: string | null | null,
eta_seconds?: number | null | null,
confidence?: string | null | null,
apy?: {
avg_1d?: number | null | null,
avg_7d?: number | null | null,
avg_30d?: number | null | null
} | null,
apy_reward?: {
avg_1d?: number | null | null,
avg_7d?: number | null | null,
avg_30d?: number | null | null
} | null,
apy_reward_notes?: string[] | null,
price_per_share?: number | null | null,
price_per_share_quoted?: number | null | null,
reason?: string | null | null,
exit_liquidity?: {
amount?: string | null | null,
usd?: number | null | null,
slippage_bps?: number | null | null
} | null,
tvl?: {
amount?: string | null | null,
usd?: number | null | null
} | null,
tvl_quoted?: {
amount?: string | null | null,
usd?: number | null | null
} | null
}[] | null
lendBorrowChart
yields.lendBorrowChart
Historical borrow cost APY from a pool on a lending market in the legacy v1 response format (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.yields.lendBorrowChart({ pool: '747c1d2a-c668-4682-b9f9-296708a3dd90' });
| Name | Type | Required | Description |
|---|---|---|---|
pool | string | Yes | pool id (UUID), from /yields/v1/poolsBorrow (property is called pool) |
| Name | Type | Required | Description |
|---|---|---|---|
status | string | null | No | — |
data | object[] | null | No | — |
data full type
data full type
{
timestamp?: string | null,
totalSupplyUsd?: number | null | null,
totalBorrowUsd?: number | null | null,
debtCeilingUsd?: number | null | null,
apyBase?: number | null | null,
apyReward?: number | null | null,
apyBaseBorrow?: number | null | null,
apyRewardBorrow?: number | null | null
}[] | null
loops
yields.loops
Retrieve the latest data for all loop strategies (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.yields.loops({});
| Name | Type | Required | Description |
|---|---|---|---|
data | object[] | null | No | — |
data full type
data full type
{
id?: string | null,
display?: {
detail?: string | null | null
} | null,
protocol?: string | null,
chain?: string | null,
token?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
} | null,
url?: string | null | null,
loan_to_value?: number | null | null,
total_supply_usd?: number | null | null,
total_borrow_usd?: number | null | null,
available_borrow_usd?: number | null | null,
supply_apy?: {
current?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null
} | null,
borrow_cost_apy?: {
current?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null,
reward?: number | null | null,
total?: number | null | null
} | null
} | null,
loop_apy?: {
loop_count?: number | null | null,
total?: number | null | null
} | null,
leverage?: {
supply_multiplier?: number | null | null,
borrow_multiplier?: number | null | null
} | null,
intrinsic?: {
apy?: {
current?: {
base?: number | null | null
} | null,
avg_7d?: {
base?: number | null | null
} | null,
avg_30d?: {
base?: number | null | null
} | null
} | null,
source_pool?: {
id?: string | null,
pool_token?: string | null,
symbol?: string | null | null
} | null
} | null | null,
reward_tokens?: {
supply?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
}[] | null,
borrow?: {
address?: string | null,
symbol?: string | null | null,
decimals?: number | null | null
}[] | null
} | null
}[] | null
lstRates
yields.lstRates
Exchange rates and ETH peg of liquid staking tokens (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.yields.lstRates({});
object[]
Output full type
Output full type
{
name?: string | null,
symbol?: string | null | null,
address?: string | null,
type?: string | null | null,
expectedRate?: number | null | null,
marketRate?: number | null | null,
ethPeg?: number | null | null,
fee?: number | null | null
}[]
perpFundingRates
yields.perpFundingRates
Funding rates and open interest of perpetual futures (needs a DefiLlama Pro key)
Risk: read
await corsair.defillama.api.yields.perpFundingRates({});
| Name | Type | Required | Description |
|---|---|---|---|
status | string | null | No | — |
data | object[] | null | No | — |
data full type
data full type
{
perp_id?: string | null,
timestamp?: string | null,
marketplace?: string | null,
market?: string | null,
baseAsset?: string | null,
fundingRate?: number | null,
fundingRatePrevious?: number | null,
fundingTimePrevious?: number | null,
openInterest?: number | null,
indexPrice?: number | null,
fundingRate7dAverage?: number | null | null,
fundingRate7dSum?: number | null | null,
fundingRate30dAverage?: number | null | null,
fundingRate30dSum?: number | null | null
}[] | null
poolChart
yields.poolChart
Get historical APY and TVL of a pool in the legacy v1 response format
Risk: read
await corsair.defillama.api.yields.poolChart({ pool: '747c1d2a-c668-4682-b9f9-296708a3dd90' });
| Name | Type | Required | Description |
|---|---|---|---|
pool | string | Yes | pool id (UUID), from /yields/v1/pools (property is called pool) |
| Name | Type | Required | Description |
|---|---|---|---|
status | string | null | No | — |
data | object[] | null | No | — |
data full type
data full type
{
timestamp?: string | null,
tvlUsd?: number | null | null,
apy?: number | null | null,
apyBase?: number | null | null,
apyReward?: number | null | null,
il7d?: number | null | null,
apyBase7d?: number | null | null,
pricePerShare?: number | null | null
}[] | null
pools
yields.pools
Retrieve the latest data for all pools in the legacy v1 response format
Risk: read
await corsair.defillama.api.yields.pools({});
| Name | Type | Required | Description |
|---|---|---|---|
status | string | null | No | — |
data | object[] | null | No | — |
data full type
data full type
{
pool?: string | null,
timestamp?: string | null,
project?: string | null,
chain?: string | null,
symbol?: string | null,
poolMeta?: string | null | null,
underlyingTokens?: string[] | null | null,
rewardTokens?: string[] | null | null,
poolTokenAddress?: string | null | null,
tvlUsd?: number | null,
apy?: number | null,
apyBase?: number | null | null,
apyReward?: number | null | null,
il7d?: number | null | null,
apyBase7d?: number | null | null,
volumeUsd1d?: number | null | null,
volumeUsd7d?: number | null | null,
apyBaseInception?: number | null | null,
url?: string | null,
apyPct1D?: number | null | null,
apyPct7D?: number | null | null,
apyPct30D?: number | null | null,
apyMean30d?: number | null | null,
stablecoin?: boolean | null,
ilRisk?: string | null,
exposure?: string | null,
return?: number | null | null,
count?: number | null | null,
apyMeanExpanding?: number | null | null,
apyStdExpanding?: number | null | null,
mu?: number | null | null,
sigma?: number | null | null,
outlier?: boolean | null | null,
project_factorized?: number | null | null,
chain_factorized?: number | null | null,
predictions?: {
predictedClass?: string | null | null,
predictedProbability?: number | null | null,
binnedConfidence?: number | null | null
} | null,
pool_old?: string | null
}[] | null