Learn R Programming

rllama

rllama is an R package designed to access and analyze data from the DeFiLlama API. This package simplifies the process of fetching and manipulating DeFiLlama data, making it easier for users to perform analyses and create visualizations.

Installation

You can install the development version of rllama from GitHub with:

# install.packages("devtools")
devtools::install_github("AlexTwoR/rllama")

## Skipping install of 'rllama' from a github remote, the SHA1 (b231ef9f) has not changed since last install.
##   Use `force = TRUE` to force installation

Usage

Here is a basic example of how to use rllama to retrieve TVL data:

library( rllama )

# Example usage
# This will fetch and display TVL data
chain_tvl = get_defillama_chain_tvl()
head( chain_tvl )

##        name symbol         tvl      gecko_id cmcId
## 1: Ethereum    ETH 59430242034      ethereum  1027
## 2:     Tron   TRON  7502492328          tron  1958
## 3:  Binance    BNB  3673133628   binancecoin  1839
## 4: Arbitrum    ARB  2502882968      arbitrum 11841
## 5:   Solana    SOL  1520704963        solana  5426
## 6:  Polygon  MATIC   956230584 matic-network  3890

Copy Link

Version

Install

install.packages('rllama')

Monthly Downloads

14

Version

0.4.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Alexey Ivanov

Last Published

February 2nd, 2024

Functions in rllama (0.4.4)

get_defillama_stablecoin_hist_data

Stablecoins History Data
get_defillama_protocol_tvl

Protocol TVL Data
get_defillama_chain_tvl

Chain TVL Data
get_defillama_protocol_hist_tvl

Protocol History Data
get_defillama_stablecoin_data

Stablecoins Data
get_defillama_chain_hist_tvl

Chain History Data