market_klines: K-Lines (candlestick bars) for a symbol

View source: R/market.R

market_klinesR Documentation

K-Lines (candlestick bars) for a symbol

Description

Exposes the GET /api/v3/klines endpoint.

Usage

market_klines(
  symbol,
  interval = "1m",
  start_time = NULL,
  end_time = NULL,
  limit = 500,
  volume = FALSE
)

Arguments

symbol

Symbol.

interval

Time interval. One of 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w or 1M where m = minutes, h = hours, d = days, w = weeks and M = months.

start_time

Start time. Something that can be coerced to POSIXct.

end_time

End time. Something that can be coerced to POSIXct.

limit

Maximum number of records in result. Default is 500 and maximum is 1000.

volume

Whether to include volume data in output.

Value

A data frame.

Examples

market_klines("BTCUSDT")

datawookie/binance documentation built on March 19, 2023, 11:01 p.m.