crypto_prices: Get current crypto currency prices

Description Usage Arguments Details Value Note Examples

View source: R/crypto_prices.R

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

1
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

Details

Updated every 5 minutes

Value

Will provide data frame of current prices

Note

The 'offset' parameter can be used to return the next 100 prices

Examples

1
2
3
{
kin_price <- crypto_prices('kin')
}

JesseVent/crypto documentation built on Nov. 28, 2020, 11:25 a.m.