
This code retrieves listing data (latest/new/historic).
crypto_listings(
which = "latest",
convert = "USD",
limit = 5000,
start_date = NULL,
end_date = NULL,
interval = "day",
quote = FALSE,
sort = "cmc_rank",
sort_dir = "asc",
sleep = 0,
wait = 60,
finalWait = FALSE
)
List of latest/new/historic listings of cryptocurrencies in a tibble (depending on the "which"-switch and whether "quote" is requested, the result may only contain some of the following variables):
CMC id (unique identifier)
Coin name
Coin symbol (not-unique)
Coin URL slug (unique)
Date when the coin was added to the dataset
Last update of the data in the database
Current rank on CMC (if still active)
market cap - close x circulating supply
market cap - close x total supply
market cap dominance
fully diluted market cap
is the source of the market cap self-reported
is the source of the circulating supply self-reported
percentage of total value locked
latest average price
approx. number of coins in circulation
approx. total amount of coins in existence right now (minus any coins that have been verifiably burned)
CMC approx. of max amount of coins that will ever exist in the lifetime of the currency
number of market pairs across all exchanges this coin
total value locked
Volume 24 hours
Volume change in 24 hours
1 hour return
24 hour return
7 day return
30 day return
60 day return
90 day return
string Shall the code retrieve the latest listing, the new listings or a historic listing?
string (default: USD) to one of available fiat prices (fiat_list()
). If more
than one are selected please separate by comma (e.g. "USD,BTC"), only necessary if 'quote=TRUE'
integer Return the top n records
string Start date to retrieve data from, format 'yyyymmdd'
string End date to retrieve data from, format 'yyyymmdd', if not provided, today will be assumed
string Interval with which to sample data according to what seq()
needs
logical set to TRUE if you want to include price data (FALSE=default)
(May 2024: currently not available) string use to sort results, possible values: "name", "symbol", "market_cap", "price", "circulating_supply", "total_supply", "max_supply", "num_market_pairs", "volume_24h", "volume_7d", "volume_30d", "percent_change_1h", "percent_change_24h", "percent_change_7d". Especially useful if you only want to download the top x entries using "limit" (deprecated for "new")
(May 2024: currently not available) string used to specify the direction of the sort in "sort". Possible values are "asc" (DEFAULT) and "desc"
integer (default 0) Seconds to sleep between API requests
waiting time before retry in case of fail (needs to be larger than 60s in case the server blocks too many attempts, default=60)
to avoid calling the web-api again with another command before 60s are over (TRUE=default)