Volver al catálogo

DefiLlama

defillama

DefiLlama provides public DeFi data for protocols, chains, token prices, stablecoins, yields, volumes, fees, and open interest.

Acciones
21
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

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ón

Get prices for multiple token identifiers at multiple requested Unix timestamps in one call.

Parámetros de entrada

  • coinsobjectObligatorio

    Token identifiers mapped to the Unix timestamps to price. Keys use chain:address or coingecko:id form.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Block By TimestampDEFILLAMA_GET_BLOCK_BY_TIMESTAMPAcción

Get the closest block height on a chain for a Unix timestamp.

Parámetros de entrada

  • chainstringObligatorio

    DefiLlama chain name or slug as accepted by this endpoint; discoverable from LIST_CHAINS_TVL or the relevant overview action.

  • timestampintegerObligatorio

    Unix timestamp in seconds for the block to find.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Current Token PricesDEFILLAMA_GET_CURRENT_TOKEN_PRICESAcción

Get current USD prices and available confidence scores for comma-separated chain:address or coingecko:id tokens.

Parámetros de entrada

  • coinsstringObligatorio

    Comma-separated token identifiers in chain:address or coingecko:id form.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get First Token PricesDEFILLAMA_GET_FIRST_TOKEN_PRICESAcción

Get the earliest available price record for one or more token identifiers.

Parámetros de entrada

  • coinsstringObligatorio

    Comma-separated token identifiers in chain:address or coingecko:id form.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Historical Token PricesDEFILLAMA_GET_HISTORICAL_TOKEN_PRICESAcción

Get token prices nearest one Unix timestamp for comma-separated token identifiers.

Parámetros de entrada

  • coinsstringObligatorio

    Comma-separated token identifiers in chain:address or coingecko:id form.

  • timestampnumberObligatorio

    UNIX timestamp of time when you want historical prices.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Historical TVLDEFILLAMA_GET_HISTORICAL_TVLAcción

Return 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

  • chainstring

    Chain name or slug; omit for global TVL. Discover values with LIST_CHAINS_TVL or the relevant overview action.

  • result_limitinteger

    Maximum historical TVL points to return in this response.

  • result_offsetinteger

    Zero-based offset into the fetched historical TVL series.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Metric OverviewDEFILLAMA_GET_METRIC_OVERVIEWAcción

Get 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

  • chainstring

    DefiLlama chain name or slug; omit for a global overview. Open interest supports only the global overview.

  • metricstringObligatorioenum

    Metric family whose global or chain overview should be returned.

    dex_volumefeesopen_interestoptions_volume
  • data_typestringenum

    Metric subtype: dailyFees, dailyRevenue, or dailyHoldersRevenue for fees; dailyPremiumVolume or dailyNotionalVolume for options_volume; omit for dex_volume or open_interest.

    dailyFeesdailyRevenuedailyHoldersRevenuedailyPremiumVolumedailyNotionalVolume
  • chart_limitinteger

    Maximum records to return from each historical chart.

  • chart_offsetinteger

    Zero-based offset into each fetched historical chart.

  • protocol_limitinteger

    Maximum protocol records to return in this tool response.

  • protocol_offsetinteger

    Zero-based offset into the fetched protocol rankings.

  • exclude_total_data_chartbooleanObligatorio

    Whether to exclude the aggregate historical chart.

  • exclude_total_data_chart_breakdownbooleanObligatorio

    Whether to exclude the historical chart breakdown.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get ProtocolDEFILLAMA_GET_PROTOCOLAcción

Get 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

  • protocolstringObligatorio

    DefiLlama protocol slug, discoverable from LIST_PROTOCOLS or the corresponding overview action.

  • chain_filterstring

    Optional chain TVL series to return; this filters the fetched response locally and is not sent upstream.

  • history_limitinteger

    Maximum history records to return in this tool response.

  • history_offsetinteger

    Zero-based offset into the fetched history collection returned by this tool.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Protocol Current TVLDEFILLAMA_GET_PROTOCOL_CURRENT_TVLAcción

Get the current total value locked in USD for one protocol.

Parámetros de entrada

  • protocolstringObligatorio

    DefiLlama protocol slug, discoverable from LIST_PROTOCOLS or the corresponding overview action.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Protocol Metric SummaryDEFILLAMA_GET_PROTOCOL_METRIC_SUMMARYAcción

Get one protocol's metadata, historical charts, and totals for the selected DEX volume, fees/revenue, or options volume metric.

Parámetros de entrada

  • metricstringObligatorioenum

    Protocol metric family to retrieve.

    dex_volumefeesoptions_volume
  • protocolstringObligatorio

    DefiLlama protocol slug, discoverable from the corresponding overview action.

  • data_typestringenum

    Specific fees/revenue or options-volume series. Fees defaults to dailyFees and options volume defaults to dailyNotionalVolume.

    dailyFeesdailyRevenuedailyHoldersRevenuedailyPremiumVolumedailyNotionalVolume
  • chart_limitinteger

    Maximum points to return from each historical chart.

  • chart_offsetinteger

    Zero-based offset into each fetched historical chart.

  • exclude_total_data_chartboolean

    Whether 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_breakdownboolean

    Whether 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

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get StablecoinDEFILLAMA_GET_STABLECOINAcción

Get 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_filterstring

    Optional chain history to return; this filters the fetched response locally and is not sent upstream.

  • history_limitinteger

    Maximum history records to return in this tool response.

  • stablecoin_idintegerObligatorio

    Numeric stablecoin ID from LIST_STABLECOINS.

  • history_offsetinteger

    Zero-based offset into the fetched history collection returned by this tool.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Stablecoin Price HistoryDEFILLAMA_GET_STABLECOIN_PRICE_HISTORYAcción

Get 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_limitinteger

    Maximum result records to return in this tool response.

  • result_offsetinteger

    Zero-based offset into the fetched result collection returned by this tool.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Stablecoins ChartDEFILLAMA_GET_STABLECOINS_CHARTAcción

Get windowed historical stablecoin market capitalization across all chains or for one chain, optionally filtered to one stablecoin ID.

Parámetros de entrada

  • chainstring

    Chain name or slug; omit for all chains. Discover values with LIST_CHAINS_TVL or the relevant overview action.

  • stablecoininteger

    Optional numeric stablecoin ID from LIST_STABLECOINS; omit for aggregate data.

  • result_limitinteger

    Maximum result records to return in this tool response.

  • result_offsetinteger

    Zero-based offset into the fetched result collection returned by this tool.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Token Price ChartDEFILLAMA_GET_TOKEN_PRICE_CHARTAcción

Get bounded windows of regular-interval price series for one or more token identifiers over the requested time range.

Parámetros de entrada

  • endnumber

    Unix timestamp of latest data point requested.

  • spannumber

    Number of data points returned; the provider defaults to 0.

  • coinsstringObligatorio

    Comma-separated token identifiers in chain:address or coingecko:id form.

  • startnumber

    Unix timestamp of earliest data point requested.

  • periodstring

    Duration between data points; the provider defaults to 24 hours.

  • point_limitinteger

    Maximum points to return for each token price series.

  • point_offsetinteger

    Zero-based offset into each fetched token price series.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Token Price Percentage ChangeDEFILLAMA_GET_TOKEN_PRICE_PERCENTAGE_CHANGEAcción

Get percentage price changes for token identifiers over a requested period before or after a timestamp.

Parámetros de entrada

  • coinsstringObligatorio

    Comma-separated token identifiers in chain:address or coingecko:id form.

  • periodstring

    Duration between data points; defaults to 24 hours. Supports candle notation such as 4h, 1d, or 3w.

  • timestampnumber

    Unix timestamp of the reference data point; defaults to the current time.

  • look_forwardboolean

    If true, calculate over the period after timestamp; if false or omitted, calculate backward.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Yield Pool ChartDEFILLAMA_GET_YIELD_POOL_CHARTAcción

Get 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

  • poolstringObligatorio

    Yield pool ID from LIST_YIELD_POOLS.

  • result_limitinteger

    Maximum result records to return in this tool response.

  • result_offsetinteger

    Zero-based offset into the fetched result collection returned by this tool.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Chains TVLDEFILLAMA_LIST_CHAINS_TVLAcción

List 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_limitinteger

    Maximum chain records to return in this tool response.

  • result_offsetinteger

    Zero-based offset into the fetched result collection returned by this tool.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List ProtocolsDEFILLAMA_LIST_PROTOCOLSAcción

List 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_limitinteger

    Maximum result records to return in this tool response.

  • result_offsetinteger

    Zero-based offset into the fetched result collection returned by this tool.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Stablecoin ChainsDEFILLAMA_LIST_STABLECOIN_CHAINSAcción

List chains with current aggregate stablecoin market capitalization in a bounded local window that can be continued with next_offset.

Parámetros de entrada

  • result_limitinteger

    Maximum chain records to return in this tool response.

  • result_offsetinteger

    Zero-based offset into the fetched result collection returned by this tool.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List StablecoinsDEFILLAMA_LIST_STABLECOINSAcción

List 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_limitinteger

    Maximum result records to return in this tool response.

  • result_offsetinteger

    Zero-based offset into the fetched result collection returned by this tool.

  • include_pricesboolean

    Whether to include current stablecoin prices in each result.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Yield PoolsDEFILLAMA_LIST_YIELD_POOLSAcción

List 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_limitinteger

    Maximum result records to return in this tool response.

  • result_offsetinteger

    Zero-based offset into the fetched result collection returned by this tool.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not