Skip to content
Trevor French edited this page Jul 21, 2023 · 1 revision

Huobi

Logo Name Code cryptotrackr Docs Exchange Docs Source Code
huobi Huobi huobi /docs/huobi.md 🏢 /R/huobi.R

Functions:

huobi_candles

huobi_candles(period, size, symbol)

  • Returns a dataframe containing Huobi candle data.

  • 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.

  • The following example retrieves 200 candle datapoints for "btcusdt" at a 1 day interval and stores it in a dataframe named "candles".

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