View source: R/wrappers_post_trade.R
| post_trade_order | R Documentation |
Submits a trade order to the OKX exchange.
post_trade_order(
inst_id,
td_mode,
side,
ord_type,
sz,
pos_side = NULL,
px = NULL,
reduce_only = NULL,
tgt_ccy = NULL,
cl_ord_id = NULL,
tag = NULL,
config,
tz = .okx_default_tz
)
inst_id |
Instrument ID (e.g., |
td_mode |
Trade mode: |
side |
Order side: |
ord_type |
Order type: |
sz |
Size of the order (quantity to buy/sell). |
pos_side |
Optional. Position side: |
px |
Optional. Price (required for limit orders). |
reduce_only |
Optional. Logical flag to indicate a reduce-only order. |
tgt_ccy |
Optional. Quote currency (e.g., |
cl_ord_id |
Optional. Custom client order ID (auto-generated if NULL). |
tag |
Optional. Tag used for identifying the strategy or bot. |
config |
A list with API credentials: |
tz |
Timezone for parsing any timestamps (default: |
A data.frame containing fields like order ID, client order ID, and timestamp.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.