bitcoincharts_random_download: Download a pre-specified number of random bitcoin trades time...

View source: R/download_data_bitcoincharts.R

bitcoincharts_random_downloadR Documentation

Download a pre-specified number of random bitcoin trades time series from api.bitcoincharts.com

Description

This function downloads a pre-specified number of random bitcoin trades series from api.bitcoincharts.com

Usage

bitcoincharts_random_download(
  number_of_series_needed = 5,
  exceptions = c("okcoinCNY.csv.gz", "coincheckJPY.csv.gz"),
  start_date = "2015-08-03",
  end_date = "2017-07-01",
  save_data = FALSE
)

Arguments

number_of_series_needed

is the desidered number of (randomly selected) bitcoin trades series

exceptions

is a string vector of the files not to be (potentially) selected from api.bitcoincharts.com due to their large dimensions

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 series will be saved in the bitcoin_data.rds file (in the Working Directory)

Details

This function downloads a pre-specified number of random bitcoin trades time series from api.bitcoincharts.com with a required minimum starting date and a required ending date

Value

data_list is a list containting the dataframes of several time series data downloaded from bitcoincharts. Each dataframe has the 'timestamp', 'price', 'volume' for the selected bitcoin trades time series.

Examples

## Not run: 
aa <-bitcoincharts_random_download(number_of_series_needed = 3, save_data=TRUE)
str(aa)

## End(Not run)


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