get_defillama_protocol_tvl {rllama}R Documentation

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)

Arguments

is_cex_include

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

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.

Examples

protocol_tvl = get_defillama_protocol_tvl()
head( protocol_tvl )

[Package rllama version 0.4.4 Index]