ftx_place_order | R Documentation |
Places an order based on the information provided
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" )
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. |
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
ftx_place_order(key="",secret="",subaccount=NA,market="XRP-PERP", side="buy",price=1,type="limit",size=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.