View source: R/wrappers_post_trade.R
| post_trade_close_position | R Documentation |
Submits a request to close a position for a given instrument and position side.
post_trade_close_position(
inst_id,
mgn_mode,
pos_side,
tz = .okx_default_tz,
config
)
inst_id |
Instrument ID (e.g., |
mgn_mode |
Margin mode: |
pos_side |
Position side to close: |
tz |
Timezone for parsing any timestamps (default: |
config |
A list with API credentials: |
A data.frame with close position confirmation details.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.