View source: R/wrappers_get_account.R
| get_account_leverage_info | R Documentation |
Retrieve leverage configuration for a given instrument and margin mode.
get_account_leverage_info(
inst_id,
mgn_mode,
config,
tz = .okx_default_tz
)
inst_id |
Character. Instrument ID, e.g. '"BTC-USDT"'. |
mgn_mode |
Character. Margin mode. One of '"cross"' or '"isolated"'. |
config |
List. API credentials/config, typically containing 'api_key', 'secret_key', and 'passphrase'. |
tz |
Character. Time zone for parsing timestamps. Default '"Asia/Hong_Kong"'. |
Wraps '/api/v5/account/leverage-info'. Requires both 'inst_id' and 'mgn_mode'. Returns current leverage values (numeric).
A 'data.frame' with columns 'instId', 'mgnMode', 'posSide', and 'lever'.
Since okxr 0.1.1
[get_account_balance()], [get_account_positions()]
## Not run:
cfg <- list(api_key = "xxx", secret_key = "xxx", passphrase = "xxx")
get_account_leverage_info(
inst_id = "BTC-USDT",
mgn_mode = "cross",
config = cfg
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.