ftx_historical_prices: FTX Historical Prices

ftx_historical_pricesR Documentation

FTX Historical Prices

Description

Returns historical prices of expired futures

Usage

ftx_historical_prices(
  key,
  secret,
  market,
  ...,
  resolution = 14400,
  start_time = NA,
  end_time = NA,
  tz = "GMT"
)

Arguments

key

A client's key (deprecated)

secret

A client's secret (deprecated)

market

Name of market

...

Additional parameters to pass to API request

resolution

Window length in seconds. options: 15, 60, 300, 900, 3600, 14400, 86400, or any multiple of 86400 up to 30*86400

start_time

Optional parameter. POSIXct value from when to extract trades.

end_time

Optional parameter. POSIXct value up-to when to extract trades.

tz

Timezone to display times in. Default is GMT.

Value

A list of three elements: a logical vector success: FALSE/TRUE, failure_reason: reason for failure if success is FALSE, NA otherwise, data: a tibble containing the data if success is TRUE

Examples

ftx_historical_prices(market = "1INCH/USD")

andreskull/rFTX documentation built on Nov. 8, 2022, 2:27 p.m.