R/ticker.R
Obtain global cryptocurrency market cap data from coinmarketcap.com
.
cap(crypto = NULL, convert = "USD")
crypto | character, integer or |
---|---|
convert | character, may be a vector. Currencies to convert |
a data frame.
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"
).
# NOT RUN { cap() cap(crypto = "global") cap(crypto = c("ETH", "LTC"), convert = c("EUR", "GBP", "BTC")) # }