powered by
This function retrieves Total Value Locked (TVL) data for various protocols from a specified API and formats it into a table for analysis.
get_defillama_protocol_tvl(is_cex_include = F)
A `data.table` containing TVL data with columns: symbol, tvl, slug, name, chain, and category. The data is sorted by TVL in descending order.
Logical; if FALSE (default), data for CEX will be excluded from the results. Set to TRUE to include CEX data.
protocol_tvl = get_defillama_protocol_tvl() head( protocol_tvl )
Run the code above in your browser using DataLab