coin_tickers: Exchange tickers

Description Usage Arguments Details Value Examples

View source: R/coin_tickers.R

Description

Retrieves the most recent exchange tickers for a coin

Usage

1
coin_tickers(coin_id, exchange_id, max_attempts = 3)

Arguments

coin_id

(character): ID of the coin of interest. An up-to-date list of supported coins and their IDs can be retrieved with the supported_coins() function.

exchange_id

(character): ID of the exchange to retrieve the data from. An up-to-date list of supported exchanges and their IDs can be obtained with the supported_exchanges() function.

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.

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.

Value

A tibble with the following columns:

Examples

1
2
r <- coin_tickers(coin_id = "cardano", exchange_id = "binance")
print(r)

geckor documentation built on Nov. 1, 2021, 5:07 p.m.