Learn R Programming

cryptotrackr (version 1.3.3)

cex_io_ohlcv: cex_io_ohlcv

Description

cex_io_ohlcv

Usage

cex_io_ohlcv(date, symbol_1, symbol_2, timeout_seconds = 60)

Value

returns a list containing open, high, low, close, volume data for the past minute, hour, and day

Arguments

date

the date for which to retrieve data

symbol_1

the first currency in your pair

symbol_2

the second currency in your pair

timeout_seconds

seconds until the query times out. Default is 60.

Examples

Run this code
date <- '20220927'
symbol_1 <- 'btc'
symbol_2 <- 'usd'
cex_io_ohlcv(date, symbol_1, symbol_2, 4.5)

Run the code above in your browser using DataLab