crypto (version 1.1.3)

crypto_prices: Get current crypto currency prices

Description

This will retrieve the current market prices from CoinMarketCap. Data gets refreshed every 5 minutes but will only return 100 at a time.

Usage

crypto_prices(coin = NULL, limit = 0, currency = "USD", offset = 1)

Arguments

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

Value

Will provide data frame of current prices

Details

Updated every 5 minutes

Examples

Run this code
# NOT RUN {
{
kin_price <- crypto_prices('kin')
}
# }

Run the code above in your browser using DataLab