getFilenames: Get the file names of data located in a specified directory...

View source: R/liquidity_cryptowat.R

getFilenamesR Documentation

Get the file names of data located in a specified directory and with certain requirements

Description

This function gets the file names of data located in a specified directory and with certain requirements

Usage

getFilenames(market, pair, type, file_extension, sourceDirectory)

Arguments

market

is the required exchange

pair

is the required exchange rate pair

type

can be either "orderbook" or "trades"

file_extension

is the file extension of the required dataset

sourceDirectory

is the directory path where the data files are located

Details

This function gets the file names of data located in a specified directory and containing certain keywords (for market, currency pair, data type), and file extension

Value

needed_files a list of all files

Examples

data_file<-system.file("extdata", package = "bitcoinFinance")
filenames_trades <- getFilenames("coinbase","btcusd","trades",".json", data_file )
filenames_orderbook <- getFilenames("coinbase","btcusd","orderbook",".json", data_file )

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