Obtain global cryptocurrency market cap data from coinmarketcap.com.

cap(crypto = NULL, convert = "USD")

Arguments

crypto

character, integer or NULL, may be a vector. See details.

convert

character, may be a vector. Currencies to convert crypto value. These may be fiat or cryptocurrencies.

Value

a data frame.

Details

Return all tracked cryptocurrencies if crypto = NULL. Return global aggregate market cap if crypto = "global". If an integer, return the top crypto cryptocurrencies by market cap. Otherwise crypto should be a vector of cryptocurrency ticker symbols, e.g., BTC. This function is a partial wrapper around ticker (when crypto = "global").

See also

Examples

# NOT RUN {
cap()
cap(crypto = "global")
cap(crypto = c("ETH", "LTC"), convert = c("EUR", "GBP", "BTC"))
# }