Learn R Programming

rllama (version 0.4.4)

get_defillama_protocol_tvl: Protocol TVL Data

Description

This function retrieves Total Value Locked (TVL) data for various protocols from a specified API and formats it into a table for analysis.

Usage

get_defillama_protocol_tvl(is_cex_include = F)

Value

A `data.table` containing TVL data with columns: symbol, tvl, slug, name, chain, and category. The data is sorted by TVL in descending order.

Arguments

is_cex_include

Logical; if FALSE (default), data for CEX will be excluded from the results. Set to TRUE to include CEX data.

Examples

Run this code
protocol_tvl = get_defillama_protocol_tvl()
head( protocol_tvl )

Run the code above in your browser using DataLab