binance_klines: Get Binance Klines API data

Description Usage Arguments Value Examples

View source: R/prices.R

Description

The time is returned in UNIX time format (milliseconds). To convert it to a date format, do

as.Date(as.POSIXct(<time> / 1e3 ,origin = "1970-01-01", tz = "GMT"))

Usage

1
binance_klines(start_time, interval = "1d", symbol = "DOTEUR")

Arguments

start_time

[character]
Start time in UNIX date format with origin = "1970-01-01".

interval

[character]
The interval to get the data for. Defaults to one day. Other possible values are '1m', '3m', '5m', '15m', '30m', '1h', '2h', '4h', '6h', '8h', '12h', '1d', '3d', '1w', '1M'.

symbol

[character]
The currency pair.

Value

tibble::tibble

Examples

1
2
# 2021-06-24
binance_klines("1630808472")

pat-s/ppcryptoparser documentation built on Dec. 22, 2021, 6:40 a.m.