Learn R Programming

crypto (version 1.1.1)

crypto_exchanges: Get current crypto market exchanges

Description

Scrape the crypto currency exchange tables from CoinMarketCap <https://coinmarketcap.com> and display the results in a date frame. This can be used to conduct analysis on the exchanges or to attempt to predict exchange arbiture.

Usage

crypto_exchanges(coin = NULL, limit = NULL, start_date = NULL,
  end_date = NULL, sleep = NULL)

Arguments

coin

string Name, symbol or slug of crypto currency, default is all tokens

limit

integer Return the top n records, default is all tokens

start_date

string Start date to retrieve data from, format 'yyyymmdd'

end_date

string End date to retrieve data from, format 'yyyymmdd'

sleep

integer Seconds to sleep for between API requests

Value

Crypto currency historic OHLC market data in a dataframe:

slug

Coin url slug

symbol

Coin symbol

name

Coin name

trading_pair

Coin trading pair

exchange_name

Name of exchange

last_updated

Exchange refresh

exchange_volume

Exchange $USD volume

exchange_price

Exchange $USD price

exchange_share

Percent exchange traded

coin_rank

Rank of current coin

exchange_rank

Exchange ranking for coin

If you want to retrieve ALL coins and their exchanges, then do not pass a argument to crypto_exchanges(),

Examples

Run this code
# NOT RUN {
# Retrieving exchange data for specific crypto currency

coin <- 'kin'
kin_exchanges <- crypto_exchanges(coin)

# retrieving market history for ALL crypto currencies

all_exchanges <- crypto_exchanges()

# }

Run the code above in your browser using DataLab