bitcoincharts_single_download: Download a pre-specified bitcoin currency pair time series...

View source: R/download_data_bitcoincharts.R

bitcoincharts_single_downloadR Documentation

Download a pre-specified bitcoin currency pair time series from api.bitcoincharts.com

Description

This function downloads a pre-specified bitcoin currency pair time series from api.bitcoincharts.com

Usage

bitcoincharts_single_download(
  name = "bitstampUSD.csv.gz",
  start_date = "2015-08-03",
  end_date = "2017-07-01",
  save_data = FALSE
)

Arguments

name

is the name of the file to be downloaded from api.bitcoincharts.com

start_date

this is the minimum starting date required

end_date

this is the maximum end date required

save_data

if TRUE, then the downloaded trades price series will be saved in the bitcoin_data.rds file (in the Working Directory)

Details

This function downloads a pre-specified bitcoin currency pair time series from api.bitcoincharts.com with a required minimum starting date and a required ending date

Value

data is a dataframe containing 'timestamp', 'price', 'volume' for the selected bitcoin trades time series.

Examples

## Not run: 
bb <-bitcoincharts_single_download(name = "coinbaseEUR.csv.gz", save_data=TRUE)
str(bb)

## End(Not run)


deanfantazzini/bitcoinFinance documentation built on June 12, 2024, 4:10 p.m.