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

View source: R/bitcoincharts_download_large.R

bitcoincharts_download_largeR 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 and it is suitable for large files

Usage

bitcoincharts_download_large(
  address = "D:/Downloads/",
  name = "bitchangePLN.csv.gz",
  save_data = FALSE
)

Arguments

address

is the directory address where to save the data

name

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

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 . It is better to use this function for downloading large files instead of bitcoincharts_single_download, which may gives an error (depending on the platform used).

Value

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

Examples

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

## End(Not run)


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