ftx_place_order: FTX Place Order

ftx_place_orderR Documentation

FTX Place Order

Description

Places an order based on the information provided

Usage

ftx_place_order(
  key,
  secret,
  subaccount,
  ...,
  market = NA,
  side = NA,
  price = NA,
  type = NA,
  size = NA,
  reduceOnly = FALSE,
  ioc = FALSE,
  postOnly = FALSE,
  client_id = NA,
  tz = "GMT"
)

Arguments

key

A client's key

secret

A client's secret

subaccount

A client's subaccount

...

Additional parameters to pass to API request

market

Name of market

side

"buy" or "sell"

price

Numeric value. Send null for market orders.

type

"limit" or "market"

size

Size of order

reduceOnly

optional; default is false

ioc

optional; default is false

postOnly

optional; default is false

client_id

optional; client order id

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_place_order(key="",secret="",subaccount=NA,market="XRP-PERP",
side="buy",price=1,type="limit",size=3)

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