get_crypto_listings: Get latest/historical market data

View source: R/currencies.R

get_crypto_listingsR Documentation

Get latest/historical market data

Description

Get a paginated list of all active cryptocurrencies with latest market data. The default "market_cap" sort returns cryptocurrency in order of CoinMarketCap's market cap rank (as outlined in our methodology) but you may configure this call to order by another market ranking field. Use the "convert" option to return market values in multiple fiat and cryptocurrency conversions in the same call.

Usage

get_crypto_listings(currency = "USD", latest = TRUE, ...)

Arguments

currency

currency code - Default is 'USD'

latest

If 'TRUE' (default), only the latest data is retrieved, otherwise historical data is returned. (NOTE: Historic Data require higher API rights)

...

Further arguments can be passed to historical data. Further information can be found in the API documentation

Value

A dataframe of top Cryptocurrencies with current or historic market data

References

API documentation

See Also

Other Cryptocurrencies: get_crypto_map(), get_crypto_marketpairs(), get_crypto_meta(), get_crypto_ohlcv(), get_crypto_quotes(), get_marketcap_ticker_all(), get_valid_currencies()

Examples

## Not run: 
get_crypto_listings('EUR')
get_crypto_listings('GBP')
get_crypto_listings('GBP', latest=F, start=1,
                    date=Sys.Date()-20, limit=10, sort="price", sort_dir="asc")

## End(Not run)

coinmarketcapr documentation built on March 18, 2022, 6:19 p.m.