Description Usage Arguments Details Value Note Examples
View source: R/crypto_prices.R
This will retrieve the current market prices from CoinMarketCap. Data gets refreshed every 5 minutes but will only return 100 at a time.
1 2 | crypto_prices(coin = NULL, limit = 0, currency = NULL,
offset = NULL)
|
coin |
Token name, default is all, Default: NULL |
limit |
Return top n coins, default is all, Default: 0 |
currency |
Convert into local currency. Must be one of 'AUD', 'BRL', 'CAD', 'CHF', 'CLP', 'CNY', 'CZK', 'DKK', 'EUR', 'GBP', 'HKD', 'HUF', 'IDR', 'ILS', 'INR', 'JPY', 'KRW', 'MXN', 'MYR', 'NOK', 'NZD', 'PHP', 'PKR', 'PLN', 'RUB', 'SEK', 'SGD', 'THB', 'TRY', 'TWD', 'ZAR', Default: NULL |
offset |
Optional number to offset the initial index of listings |
Updated every 5 minutes
Will provide data frame of current prices
The 'offset' parameter can be used to return the next 100 prices
1 2 3 | {
kin_price <- crypto_prices('kin')
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.