get_market_index_candles: Get recent index candles

View source: R/wrappers_get_market.R

get_market_index_candlesR Documentation

Get recent index candles

Description

Retrieve the latest candlestick data for an index.

Usage

get_market_index_candles(
  inst_id,
  bar = NULL,
  after = NULL,
  before = NULL,
  limit = 100L,
  config = NULL,
  tz = .okx_default_tz,
  standardize_names = TRUE
)

Arguments

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

Value

A 'data.frame' of index candlesticks.


okxr documentation built on May 8, 2026, 5:09 p.m.