View source: R/wrappers_post_configure.R
| post_account_position_margin_balance | R Documentation |
Increase or reduce margin for an existing position.
post_account_position_margin_balance(
inst_id,
pos_side,
type,
amt,
ccy = NULL,
tz = .okx_default_tz,
config
)
inst_id |
Instrument ID. |
pos_side |
Position side. |
type |
Margin adjustment type, typically '"add"' or '"reduce"'. |
amt |
Amount to add or reduce. |
ccy |
Optional currency for isolated margin orders. |
tz |
Timezone used for any timestamp parsing. |
config |
A list containing API credentials. |
A 'data.frame' describing the applied margin adjustment.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.