huobi_candles {cryptotrackr}R Documentation

huobi_candles

Description

huobi_candles

Usage

huobi_candles(period, size, symbol, timeout_seconds = 60)

Arguments

period

the period of each candle. The following are acceptable options: "1min", "5min", "15min", "30min", "60min", "4hour", "1day", "1mon", "1week", "1year"

size

the number of datapoints to return. This should fall between 1 and 2000.

symbol

the trading symbol to query.

timeout_seconds

seconds until the query times out. Default is 60.

Value

returns a dataframe containing Huobi candle data

Examples

period <- '1day'
size <- '200'
symbol <- 'btcusdt'
huobi_candles(period, size, symbol, 4.5)

[Package cryptotrackr version 1.3.3 Index]