View source: R/cc_blockchain_historical.R
cc_blockchain_historical | R Documentation |
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
.
cc_blockchain_historical(
symbol = NULL,
start = NULL,
end = NULL,
api_key = NULL
)
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 |
A tibble
.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.