View source: R/wrappers_get_market.R
| get_market_history_index_candles | R Documentation |
Retrieve historical candlestick data for an index.
get_market_history_index_candles(
inst_id,
bar = NULL,
after = NULL,
before = NULL,
limit = 100L,
config = NULL,
tz = .okx_default_tz,
standardize_names = TRUE
)
inst_id |
Character. Index ID. |
bar |
Character or 'NULL'. Bar size. |
after |
Character or 'NULL'. Pagination cursor for older rows. |
before |
Character or 'NULL'. Pagination cursor for newer rows. |
limit |
Integer. Number of rows to request. Default '100L'. |
config |
Optional list. Public endpoint request options, such as 'timeout'; credentials are not required. |
tz |
Character. Time zone for parsing timestamps. Default '"Asia/Hong_Kong"'. |
standardize_names |
Logical. If 'TRUE' (default), renames OHLC columns to 'timestamp', 'open', 'high', 'low', and 'close'. |
A 'data.frame' of historical index candlesticks.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.