View source: R/wrappers_post_configure.R
| post_account_set_leverage | R Documentation |
Sets the leverage level for a specific trading instrument and margin mode.
post_account_set_leverage(
inst_id,
lever,
mgn_mode,
pos_side = NULL,
tz = .okx_default_tz,
config
)
inst_id |
Instrument ID (e.g., |
lever |
Leverage level to apply (as a string or numeric, e.g., |
mgn_mode |
Margin mode: |
pos_side |
Optional. Position side: |
tz |
Timezone used for any timestamp parsing (default: |
config |
API credential list with keys 'api_key', 'secret_key', and 'passphrase'. |
A data.frame with leverage update confirmation (including instrument ID and leverage settings).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.