cc_blockchain_historical: cc_blockchain_historical

View source: R/cc_blockchain_historical.R

cc_blockchain_historicalR Documentation

cc_blockchain_historical

Description

Blockchain historical data, such as the number of transactions, active wallets or mining rewards are difficult to retrieve in a readable format. Cryptocompare simplify substantially the procedure of download, aggregate and summaries the data for each day. With this function it is possible to obtain the historical information for most of the blockchain. The data available for the Bitcoin's blockchain starts from 2017. In order to access to this function a ⁠free api key is needed⁠.

Usage

cc_blockchain_historical(
  symbol = NULL,
  start = NULL,
  end = NULL,
  api_key = NULL
)

Arguments

symbol

character, the symbol of interest.

start

character or Date, the start date for importation.

end

character or Date, the end date for importation.

api_key

character

Value

A tibble.

Examples

# Api key is required
## Not run: 
yourapikey <- "yourapikey"

cc_blockchain_historical(symbol = "BTC", start = "2017-01-01",
                         end = "2023-01-01", api_key = yourapikey)

cc_blockchain_historical(symbol = "ETH", start = "2017-01-01",
                         end = "2023-01-01", api_key = yourapikey)

cc_blockchain_historical(symbol = "DOGE", start = "2017-01-01",
                         end = "2023-01-01", api_key = yourapikey)

## End(Not run)

beniamino98/cryptocompareR documentation built on June 19, 2024, 12:37 a.m.