Learn R Programming

geckor (version 0.2.0)

supported_coins: CoinGecko coins

Description

Retrieves a list of coins currently supported by the CoinGecko API

Usage

supported_coins(max_attempts = 3)

Arguments

max_attempts

(double, positive): specifies the maximum number of attempts to call the CoinGecko API (e.g., if the first call fails for some reason). Additional attempts are implemented with an exponential backoff. Defaults to 3.

Value

A tibble with three columns:

  • coin_id (character): coin IDs, ordered alphabetically;

  • symbol (character): coin symbols;

  • name (character): common names of the coins.

Details

This function is based on the public CoinGecko API, which has a limit of 50 calls per minute. Please keep this limit in mind when developing your applications.

Examples

Run this code
# NOT RUN {
r <- supported_coins()
head(r, 10)
# }

Run the code above in your browser using DataLab