get_source_data_binance_klines: Fetch Kline Data from Binance Futures API

View source: R/binance_data.R

get_source_data_binance_klinesR Documentation

Fetch Kline Data from Binance Futures API

Description

Retrieves candlestick data from Binance USDT-margined futures. If paginate = TRUE, the function keeps requesting pages until the requested time range is exhausted or the API returns fewer rows than limit.

Usage

get_source_data_binance_klines(
  symbol = "ETHUSDT",
  interval = "1m",
  start_time = NULL,
  end_time = NULL,
  limit = 1500L,
  tz = "UTC",
  paginate = TRUE
)

Arguments

symbol

Trading pair symbol.

interval

Candlestick interval.

start_time

Optional start time.

end_time

Optional end time.

limit

Page size. Binance futures allows up to 1500.

tz

Time zone applied to returned timestamps.

paginate

Logical. Request multiple pages when needed.

Value

Standardized OHLCV data.table with source, symbol, interval, datetime, date, open, high, low, close, and volume, plus Binance-specific columns such as close_time and trade counts.


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