coinmarketcap_id_map
coinmarketcap_id_map(
api_key,
listing_status = "active",
start = "1",
limit = NULL,
sort = "id",
symbol = NULL,
aux = "platform,first_historical_data,last_historical_data,is_active,status",
timeout_seconds = 60
)
returns a dataframe which includes the id mapping for CoinMarketCap cryptocurrencies along with other metadata related to the currencies.
your CoinMarketCap API key
you can choose "active", "inactive", or "untracked". Multiple options can be passed if they are comma-separated. Choosing "active" will return only active cryptocurrencies. Choosing "inactive" will return cryptocurrencies which are inactive. Choosing "untracked" will return a list of cryptocurrencies which are listed by CoinMarketCap but do not yet meet their methodology requirements to have tracked markets available. The default is "active".
you can use this parameter to offset your first result. The default value is "1".
an optional string value between 1 and 5000 which tells CoinMarketCap how many results to return. The default value is NULL.
the field used to sort your results. The two acceptable values are "id" and "cmc_rank". The default value is "id".
Optionally pass a comma-separated list of cryptocurrency symbols to return CoinMarketCap IDs for. The default value is NULL.
Optionally specify a comma-separated list of supplemental data fields to return. Pass "platform,first_historical_data,last_historical_data, is_active,status" to include all auxiliary fields. This function will include all auxiliary fields by default.
seconds until the query times out. Default is 60.
if (FALSE) {
api_key <- "..."
id_map <- coinmarketcap_id_map(api_key)}
Run the code above in your browser using DataLab