crypto_exchanges: Get current crypto market exchanges

Description Usage Arguments Value Examples

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

1
2
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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()


## End(Not run)

JesseVent/crypto documentation built on May 12, 2019, 8:40 a.m.