Learn R Programming

geckor (version 0.2.0)

supported_currencies: CoinGecko currencies

Description

Retrieves a list of base currencies currently supported by the CoinGecko API

Usage

supported_currencies(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

Character vector with abbreviated names of the currencies.

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_currencies()
print(r)
# }

Run the code above in your browser using DataLab