crypto (version 1.1.3)

crypto_list: Retrieves name, symbol, slug and rank for all tokens

Description

List all of the crypto currencies that have existed on CoinMarketCap and use this to populate the URL base for scraping historical market data. It retrieves name, slug, symbol and rank of crypto currencies from CoinMarketCap and creates URLS for scraper() to use.

Usage

crypto_list(coin = NULL, start_date = NULL, end_date = NULL, coin_list = NULL)

Arguments

coin

Name, symbol or slug of crypto currency

start_date

Start date to retrieve data from, format yyyymmdd

end_date

Start date to retrieve data from, format yyyymmdd

coin_list

'api', 'static' or NULL

Value

Crypto currency historic OHLC market data in a dataframe:

symbol

Coin symbol (not-unique)

name

Coin name

slug

Coin URL slug (unique)

rank

Current rank by market cap

exchange_url

Exchange market tables urls for scraping

history_url

Historical market tables urls for scraping

Required dependency that is used in function call getCoins().

Examples

Run this code
# NOT RUN {
coin <- 'kin'
coins <- crypto_list(coin)

# return all coins
coin_list <- crypto_list()
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace