Retrieves a list of exchanges supported by the CoinGecko API

supported_exchanges(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 the following columns:

  • exchange_id (character): exchange ID;

  • name (character): common name of the exchange;

  • year_established (integer): year when the exchange was established;

  • country (character): country where the exchange is registered and / or has its headquarters;

  • url (character): web address of the exchange;

  • trust_score (integer): an indicator of how much an exchange can be trusted (ranges from 1 to 10; see Methodology on the CoinGecko website);

  • trading_volume_24h_btc (double): trading volume in the last 24 hours, expressed in Bitcoin.

Details

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

Examples

if (FALSE) {
r <- supported_exchanges()
print(r)
}