-
Notifications
You must be signed in to change notification settings - Fork 3
Huobi
Trevor French edited this page Jul 21, 2023
·
1 revision
Logo | Name | Code | cryptotrackr Docs | Exchange Docs | Source Code |
---|---|---|---|---|---|
Huobi | huobi | /docs/huobi.md | 🏢 | /R/huobi.R |
huobi_candles
-
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)