Updates
20/01/2020: the website https://coinmarketcap.com/ changed the html code of the pages containing the cryptocurrencies historical prices, so I had to re-write the functions download_coinmarketcap_daily and download_coinmarketcap_weekly. The functions' structure was kept similar to the original code used in the textbook, so that the functions inputs did not change. Download from github the latest version of the bitcoinFinance package.
01/05/2020: the package fredr is no more available from cran, but it is still available from github and you can install it with this command line: devtools::install_github("sboysel/fredr")
I have no idea whether this project is abandoned or not: in the worst case that the project will be fully abandoned, I will consider whether to add some of its old functions to my packages.
01/11/2020: the highfrequency package changed the names and the structure of some of its functions. As a consequence, I updated the functions in the bitcoinFinance package which use this package, while the updated R examples discussed in chapters 9-11 dealing with the realized variance and the realized covariance can be found here.
14/11/2020: the website https://coinmarketcap.com/ changed (again!!) the html code of the pages containing the cryptocurrencies historical prices, so I had to re-write the functions download_coinmarketcap_daily. The function structure was kept similar to the original code used in the textbook, so that its inputs did not change. Download from github the latest version of the bitcoinFinance package.
15/12/2020: the data and the R code to replicate the paper "Beware the middleman: Empirical analysis of Bitcoin-exchange risk" discussed in chapter 13 are (currently) available here and here.
06/04/2021: given that the website https://coinmarketcap.com/ changed (again!!!) the html code of the pages containing the cryptocurrencies historical prices, I corrected the "download_coinmarketcap_daily" function in my package bitcoinFinannce + I added another function named "bitcoincharts_download_large" which is specifically suited for large files from bitcoincharts. Download from github the latest version of the bitcoinFinance package.
24/06/2021: the crypto package does not work anymore and it has been substituted by the crypto2 package available here .
01/07/2021: it is now available a nice R package titled cryptowatchR that works as an API wrapper for 'Cryptowat' to get prices and other information (e.g., volume, trades, order books, bid and ask prices, live quotes, and more). Check it out!
10/08/2022: Poloniex changed the date format of its API, so the relative download function had to be changed. Download from github the latest version of the bitcoinFinance package.
16/09/2023: Poloniex completely changed its API and the old function "poloniex_download" cannot be used any more. Moreover, writing a new function would take too much time (unfortunately, I am time-constrained right now). Luckily, there are two valid alternatives available:
- the rusquant package (): https://github.com/arbuzovv/rusquant, https://cran.r-project.org/web/packages/rusquant/index.html
- download the friendly csv data files directly from cryptodatadownload.com: https://www.cryptodatadownload.com/data/poloniex
01/06/2024: the free coinmarketcap.com web API is no more available since early 2024, so the functions download_coinmarketcap_daily and download_coinmarketcap_w do not work any more. These functions are left in the bitcoinFinance package only for archive and educational purposes only. Currently, the quickest way to download free crypto data is by using www.cryptodatadownload.com .