Prior to download this package, make sure you have "usethis" and "devtools" installed and loaded :
install.packages("usethis")
library(usethis)
install.packages("devtools")
library(devtools)
Then, download and load the package. Finally, load the included data :
install_github("VincentKV/Cryptics")
library(Cryptics)
data("cryptolist")
If you want to check that a cryptocurrency is supported by the package, you need to type in its symbol. For example, "BTC" for Bitcoin.
If you are not sure about the exact symbol, symbolCheck() provides you suggestions.
You can also visualize all the cryptocurrencies supported by the Cryptics package, and sort the columns alphabetically for a quicker search with View(cryptolist).
Get the daily data (Open, High, Low, Close, Adjusted, Volume) of a particular cryptocurrency from its creation until today. Returns a time series.
The default is Bitcoin in US Dollar.
Normalize a course between 0 and 1 to easily compare cryptocurrencies and work with percentages. The values taken are the "Opens". 1 is the all-time-high. Returns a time series.
Compute the simple gain or loss given a specific cryptocurrency and a particular amount of money invested in it during a period of time. Currency does not matter. 20 euros (or dollars...) invested in Litecoin on 2021-01-01 would be 31.69 euros on 2021-04-01. Prints the creation date of the cryptocurrency.
The default is Bitcoin with today as end date. 20 euros invested in Bitcoin on 2021-02-01 would be 327.52 euros today.
Plot an interactive graph with the historical data of a single cryptocurrency. You can normalize the graph or apply the logarithm. The default is Bitcoin in US Dollar. USD is advised as there is older data in this currency. Prints the creation date of the cryptocurrency.
Plots an interactive graph with the candlestick chart of a single cryptocurrency. You can also normalize the graph or apply the logarithm. The default is Bitcoin in US Dollar, on the last 30 days. Prints the creation date of the cryptocurrency.
The wallet is the perfect way to keep track on an investment.
Compute the time series of earnings and losses given a specific cryptocurrency and a particular amount of money invested in it during a period of time. The default is Bitcoin with today as end date.
The portfolio takes the list of your wallets and compute the time series of your total earnings and losses.
Plot an interactive graph with the historical data of your portfolio.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.