View source: R/download_bitcoinity.R
bitcoinity_download | R Documentation |
This function downloads the time series data of an exchange pair involving bitcoin and a fiat currency, given the specified quote currency, data type, cryptocurrency exchange, data frequency, time length, spread depth (if requested).
bitcoinity_download(
currency = "USD",
data_type = "price_volume",
exchange = "bitstamp",
freq = "hour",
time_length = "30d",
sd = NULL
)
currency |
is the quote currency of the currency pair |
data_type |
is the type of data required. Possible cases are: "volume","rank","price", "price_volume","market_cap","tradespm","volatility","spread","bidask_sum". |
exchange |
is the cryptocurrency exchange |
freq |
is the data frequency: "hour", "day", or "week" |
time_length |
is the time length required: "10m","1h","6h","24h", "3d", "7d", "30d", "6m", "2y", "5y", "all". |
sd |
is the spread depth. Possible values in BTC are: NULL (default), "10", "100". |
a dataframe with the requested data
dat<-bitcoinity_download(currency="USD", data_type="spread", exchange=NULL,sd="10")
head(dat)[1:4]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.