DefiLlama
defillamaDefiLlama provides public DeFi data for protocols, chains, token prices, stablecoins, yields, volumes, fees, and open interest.
Acciones disponibles (21)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Get Batch Historical Token PricesDEFILLAMA_GET_BATCH_HISTORICAL_TOKEN_PRICESAcciónGet prices for multiple token identifiers at multiple requested Unix timestamps in one call.
DEFILLAMA_GET_BATCH_HISTORICAL_TOKEN_PRICESAcciónGet prices for multiple token identifiers at multiple requested Unix timestamps in one call.
Parámetros de entrada
coinsobjectObligatorioToken identifiers mapped to the Unix timestamps to price. Keys use chain:address or coingecko:id form.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Block By TimestampDEFILLAMA_GET_BLOCK_BY_TIMESTAMPAcciónGet the closest block height on a chain for a Unix timestamp.
DEFILLAMA_GET_BLOCK_BY_TIMESTAMPAcciónGet the closest block height on a chain for a Unix timestamp.
Parámetros de entrada
chainstringObligatorioDefiLlama chain name or slug as accepted by this endpoint; discoverable from LIST_CHAINS_TVL or the relevant overview action.
timestampintegerObligatorioUnix timestamp in seconds for the block to find.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Current Token PricesDEFILLAMA_GET_CURRENT_TOKEN_PRICESAcciónGet current USD prices and available confidence scores for comma-separated chain:address or coingecko:id tokens.
DEFILLAMA_GET_CURRENT_TOKEN_PRICESAcciónGet current USD prices and available confidence scores for comma-separated chain:address or coingecko:id tokens.
Parámetros de entrada
coinsstringObligatorioComma-separated token identifiers in chain:address or coingecko:id form.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get First Token PricesDEFILLAMA_GET_FIRST_TOKEN_PRICESAcciónGet the earliest available price record for one or more token identifiers.
DEFILLAMA_GET_FIRST_TOKEN_PRICESAcciónGet the earliest available price record for one or more token identifiers.
Parámetros de entrada
coinsstringObligatorioComma-separated token identifiers in chain:address or coingecko:id form.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Historical Token PricesDEFILLAMA_GET_HISTORICAL_TOKEN_PRICESAcciónGet token prices nearest one Unix timestamp for comma-separated token identifiers.
DEFILLAMA_GET_HISTORICAL_TOKEN_PRICESAcciónGet token prices nearest one Unix timestamp for comma-separated token identifiers.
Parámetros de entrada
coinsstringObligatorioComma-separated token identifiers in chain:address or coingecko:id form.
timestampnumberObligatorioUNIX timestamp of time when you want historical prices.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Historical TVLDEFILLAMA_GET_HISTORICAL_TVLAcciónReturn a bounded window of historical DeFi TVL across all chains or for one chain, excluding liquid staking and double-counted TVL.
DEFILLAMA_GET_HISTORICAL_TVLAcciónReturn a bounded window of historical DeFi TVL across all chains or for one chain, excluding liquid staking and double-counted TVL.
Parámetros de entrada
chainstringChain name or slug; omit for global TVL. Discover values with LIST_CHAINS_TVL or the relevant overview action.
result_limitintegerMaximum historical TVL points to return in this response.
result_offsetintegerZero-based offset into the fetched historical TVL series.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Metric OverviewDEFILLAMA_GET_METRIC_OVERVIEWAcciónGet global or per-chain DEX volume, fees/revenue, open interest, or options volume totals, windowed protocol rankings, and optional historical charts.
DEFILLAMA_GET_METRIC_OVERVIEWAcciónGet global or per-chain DEX volume, fees/revenue, open interest, or options volume totals, windowed protocol rankings, and optional historical charts.
Parámetros de entrada
chainstringDefiLlama chain name or slug; omit for a global overview. Open interest supports only the global overview.
metricstringObligatorioenumMetric family whose global or chain overview should be returned.
dex_volumefeesopen_interestoptions_volumedata_typestringenumMetric subtype: dailyFees, dailyRevenue, or dailyHoldersRevenue for fees; dailyPremiumVolume or dailyNotionalVolume for options_volume; omit for dex_volume or open_interest.
dailyFeesdailyRevenuedailyHoldersRevenuedailyPremiumVolumedailyNotionalVolumechart_limitintegerMaximum records to return from each historical chart.
chart_offsetintegerZero-based offset into each fetched historical chart.
protocol_limitintegerMaximum protocol records to return in this tool response.
protocol_offsetintegerZero-based offset into the fetched protocol rankings.
exclude_total_data_chartbooleanObligatorioWhether to exclude the aggregate historical chart.
exclude_total_data_chart_breakdownbooleanObligatorioWhether to exclude the historical chart breakdown.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get ProtocolDEFILLAMA_GET_PROTOCOLAcciónGet a protocol's profile, current TVL by chain, and windowed historical TVL and token breakdowns. Use chain_filter to select a chain-specific history source; omit it for aggregate history.
DEFILLAMA_GET_PROTOCOLAcciónGet a protocol's profile, current TVL by chain, and windowed historical TVL and token breakdowns. Use chain_filter to select a chain-specific history source; omit it for aggregate history.
Parámetros de entrada
protocolstringObligatorioDefiLlama protocol slug, discoverable from LIST_PROTOCOLS or the corresponding overview action.
chain_filterstringOptional chain TVL series to return; this filters the fetched response locally and is not sent upstream.
history_limitintegerMaximum history records to return in this tool response.
history_offsetintegerZero-based offset into the fetched history collection returned by this tool.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Protocol Current TVLDEFILLAMA_GET_PROTOCOL_CURRENT_TVLAcciónGet the current total value locked in USD for one protocol.
DEFILLAMA_GET_PROTOCOL_CURRENT_TVLAcciónGet the current total value locked in USD for one protocol.
Parámetros de entrada
protocolstringObligatorioDefiLlama protocol slug, discoverable from LIST_PROTOCOLS or the corresponding overview action.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Protocol Metric SummaryDEFILLAMA_GET_PROTOCOL_METRIC_SUMMARYAcciónGet one protocol's metadata, historical charts, and totals for the selected DEX volume, fees/revenue, or options volume metric.
DEFILLAMA_GET_PROTOCOL_METRIC_SUMMARYAcciónGet one protocol's metadata, historical charts, and totals for the selected DEX volume, fees/revenue, or options volume metric.
Parámetros de entrada
metricstringObligatorioenumProtocol metric family to retrieve.
dex_volumefeesoptions_volumeprotocolstringObligatorioDefiLlama protocol slug, discoverable from the corresponding overview action.
data_typestringenumSpecific fees/revenue or options-volume series. Fees defaults to dailyFees and options volume defaults to dailyNotionalVolume.
dailyFeesdailyRevenuedailyHoldersRevenuedailyPremiumVolumedailyNotionalVolumechart_limitintegerMaximum points to return from each historical chart.
chart_offsetintegerZero-based offset into each fetched historical chart.
exclude_total_data_chartbooleanWhether to exclude the aggregate historical chart for DEX volume. Only valid for DEX volume; omit for other metrics. Defaults to false.
exclude_total_data_chart_breakdownbooleanWhether to exclude the historical chart breakdown for DEX volume. Only valid for DEX volume; omit for other metrics. Defaults to false.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get StablecoinDEFILLAMA_GET_STABLECOINAcciónGet one stablecoin's metadata, current balances by chain, and a bounded window of aggregate or chain-specific balance history. Use chain_filter to select a chain series; omit it for aggregate history.
DEFILLAMA_GET_STABLECOINAcciónGet one stablecoin's metadata, current balances by chain, and a bounded window of aggregate or chain-specific balance history. Use chain_filter to select a chain series; omit it for aggregate history.
Parámetros de entrada
chain_filterstringOptional chain history to return; this filters the fetched response locally and is not sent upstream.
history_limitintegerMaximum history records to return in this tool response.
stablecoin_idintegerObligatorioNumeric stablecoin ID from LIST_STABLECOINS.
history_offsetintegerZero-based offset into the fetched history collection returned by this tool.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Stablecoin Price HistoryDEFILLAMA_GET_STABLECOIN_PRICE_HISTORYAcciónGet historical prices for all tracked stablecoins. DefiLlama returns the full series upstream; this tool returns a bounded local window that can be continued with next_offset.
DEFILLAMA_GET_STABLECOIN_PRICE_HISTORYAcciónGet historical prices for all tracked stablecoins. DefiLlama returns the full series upstream; this tool returns a bounded local window that can be continued with next_offset.
Parámetros de entrada
result_limitintegerMaximum result records to return in this tool response.
result_offsetintegerZero-based offset into the fetched result collection returned by this tool.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Stablecoins ChartDEFILLAMA_GET_STABLECOINS_CHARTAcciónGet windowed historical stablecoin market capitalization across all chains or for one chain, optionally filtered to one stablecoin ID.
DEFILLAMA_GET_STABLECOINS_CHARTAcciónGet windowed historical stablecoin market capitalization across all chains or for one chain, optionally filtered to one stablecoin ID.
Parámetros de entrada
chainstringChain name or slug; omit for all chains. Discover values with LIST_CHAINS_TVL or the relevant overview action.
stablecoinintegerOptional numeric stablecoin ID from LIST_STABLECOINS; omit for aggregate data.
result_limitintegerMaximum result records to return in this tool response.
result_offsetintegerZero-based offset into the fetched result collection returned by this tool.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Token Price ChartDEFILLAMA_GET_TOKEN_PRICE_CHARTAcciónGet bounded windows of regular-interval price series for one or more token identifiers over the requested time range.
DEFILLAMA_GET_TOKEN_PRICE_CHARTAcciónGet bounded windows of regular-interval price series for one or more token identifiers over the requested time range.
Parámetros de entrada
endnumberUnix timestamp of latest data point requested.
spannumberNumber of data points returned; the provider defaults to 0.
coinsstringObligatorioComma-separated token identifiers in chain:address or coingecko:id form.
startnumberUnix timestamp of earliest data point requested.
periodstringDuration between data points; the provider defaults to 24 hours.
point_limitintegerMaximum points to return for each token price series.
point_offsetintegerZero-based offset into each fetched token price series.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Token Price Percentage ChangeDEFILLAMA_GET_TOKEN_PRICE_PERCENTAGE_CHANGEAcciónGet percentage price changes for token identifiers over a requested period before or after a timestamp.
DEFILLAMA_GET_TOKEN_PRICE_PERCENTAGE_CHANGEAcciónGet percentage price changes for token identifiers over a requested period before or after a timestamp.
Parámetros de entrada
coinsstringObligatorioComma-separated token identifiers in chain:address or coingecko:id form.
periodstringDuration between data points; defaults to 24 hours. Supports candle notation such as 4h, 1d, or 3w.
timestampnumberUnix timestamp of the reference data point; defaults to the current time.
look_forwardbooleanIf true, calculate over the period after timestamp; if false or omitted, calculate backward.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Yield Pool ChartDEFILLAMA_GET_YIELD_POOL_CHARTAcciónGet historical APY and TVL points for one yield pool ID. This free endpoint is deprecated and will shut down soon; DefiLlama's paid replacement is /yields/v1/chart/{pool}. The provider returns the full series upstream, so this tool returns a bounded local window that can be continued with next_offset. An empty items array is a valid no-history or unknown-pool result.
DEFILLAMA_GET_YIELD_POOL_CHARTAcciónGet historical APY and TVL points for one yield pool ID. This free endpoint is deprecated and will shut down soon; DefiLlama's paid replacement is /yields/v1/chart/{pool}. The provider returns the full series upstream, so this tool returns a bounded local window that can be continued with next_offset. An empty items array is a valid no-history or unknown-pool result.
Parámetros de entrada
poolstringObligatorioYield pool ID from LIST_YIELD_POOLS.
result_limitintegerMaximum result records to return in this tool response.
result_offsetintegerZero-based offset into the fetched result collection returned by this tool.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Chains TVLDEFILLAMA_LIST_CHAINS_TVLAcciónList supported chains with current TVL and native-token identifiers in a bounded local window that can be continued with next_offset.
DEFILLAMA_LIST_CHAINS_TVLAcciónList supported chains with current TVL and native-token identifiers in a bounded local window that can be continued with next_offset.
Parámetros de entrada
result_limitintegerMaximum chain records to return in this tool response.
result_offsetintegerZero-based offset into the fetched result collection returned by this tool.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ProtocolsDEFILLAMA_LIST_PROTOCOLSAcciónList DeFi protocols with identifiers, categories, chains, current TVL, and recent TVL changes. DefiLlama returns the full collection upstream; this tool returns a bounded local window that can be continued with next_offset.
DEFILLAMA_LIST_PROTOCOLSAcciónList DeFi protocols with identifiers, categories, chains, current TVL, and recent TVL changes. DefiLlama returns the full collection upstream; this tool returns a bounded local window that can be continued with next_offset.
Parámetros de entrada
result_limitintegerMaximum result records to return in this tool response.
result_offsetintegerZero-based offset into the fetched result collection returned by this tool.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Stablecoin ChainsDEFILLAMA_LIST_STABLECOIN_CHAINSAcciónList chains with current aggregate stablecoin market capitalization in a bounded local window that can be continued with next_offset.
DEFILLAMA_LIST_STABLECOIN_CHAINSAcciónList chains with current aggregate stablecoin market capitalization in a bounded local window that can be continued with next_offset.
Parámetros de entrada
result_limitintegerMaximum chain records to return in this tool response.
result_offsetintegerZero-based offset into the fetched result collection returned by this tool.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List StablecoinsDEFILLAMA_LIST_STABLECOINSAcciónList stablecoins with IDs, peg metadata, circulating amounts, and optional current prices. DefiLlama returns the full collection upstream; this tool returns a bounded local window that can be continued with next_offset.
DEFILLAMA_LIST_STABLECOINSAcciónList stablecoins with IDs, peg metadata, circulating amounts, and optional current prices. DefiLlama returns the full collection upstream; this tool returns a bounded local window that can be continued with next_offset.
Parámetros de entrada
result_limitintegerMaximum result records to return in this tool response.
result_offsetintegerZero-based offset into the fetched result collection returned by this tool.
include_pricesbooleanWhether to include current stablecoin prices in each result.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Yield PoolsDEFILLAMA_LIST_YIELD_POOLSAcciónList yield pools with pool IDs, project, chain, tokens, TVL, APY components, and prediction fields. This free endpoint is deprecated and will shut down soon; the same data remains available from `/yields/v1/pools` on the DefiLlama API plan. The provider returns the full collection upstream, so this tool returns a bounded local window that can be continued with next_offset.
DEFILLAMA_LIST_YIELD_POOLSAcciónList yield pools with pool IDs, project, chain, tokens, TVL, APY components, and prediction fields. This free endpoint is deprecated and will shut down soon; the same data remains available from `/yields/v1/pools` on the DefiLlama API plan. The provider returns the full collection upstream, so this tool returns a bounded local window that can be continued with next_offset.
Parámetros de entrada
result_limitintegerMaximum result records to return in this tool response.
result_offsetintegerZero-based offset into the fetched result collection returned by this tool.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not