ftx_trades: FTX Trades

ftx_tradesR Documentation

FTX Trades

Description

Returns the trades that have taken place for a particular market

Usage

ftx_trades(
  key,
  secret,
  market,
  ...,
  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

start_time

Optional parameter. POSIXct value from when to extract trades. Default value end_value - 5 minutes.

end_time

Optional parameter. POSIXct value up-to when to extract trades.Default value is current time.

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_trades(market = "1INCH/USD")

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