get_source_hist_data_okx_candle: Get Historical OKX Candle Data

View source: R/okx_candle_data.R

get_source_hist_data_okx_candleR Documentation

Get Historical OKX Candle Data

Description

Get Historical OKX Candle Data

Usage

get_source_hist_data_okx_candle(
  inst_id,
  bar,
  before = NULL,
  limit = 100L,
  config = NULL,
  tz = "UTC"
)

Arguments

inst_id

Instrument identifier.

bar

Candle interval.

before

Optional pagination cursor.

limit

Integer page size.

config

Optional OKX API config. If omitted, defaults from the package config and OKX_API_KEY / OKX_SECRET_KEY / OKX_PASSPHRASE environment variables are used.

tz

Output time zone.

Value

data.table or NULL.


investdatar documentation built on Aug. 21, 2026, 5:17 p.m.