Learn R Programming

crypto (version 1.0.3)

scraper: Historical table scraper

Description

This web scrapes the historic price tables from CoinMarketCap and provides back a dataframe for the coin provided as an input. This function is a dependency of getCoins and is used as part of a loop to retrieve all crypto currencies.

Usage

scraper(attributes, slug)

Arguments

attributes

URL generated from listCoins()

slug

Unique identifier required for merging

Value

Raw OHLC market data in a dataframe:

slug

Coin url slug

symbol

Coin symbol

name

Coin name

date

Market date

open

Market open

high

Market high

low

Market low

close

Market close

volume

Volume 24 hours

market

USD Market cap

This function is not to be called individually by a user but is to be consumed as part of the getCoins.

Examples

Run this code
# NOT RUN {
# Only to be executed by getCoins
scraper(attributes)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab