View source: R/wrappers_get_account.R
| get_account_position_risk | R Documentation |
Retrieve account-level adjusted equity together with same-snapshot balance and position risk payloads.
get_account_position_risk(
inst_type = NULL,
config,
tz = .okx_default_tz
)
inst_type |
Character or 'NULL'. Instrument type filter. One of '"MARGIN"', '"SWAP"', '"FUTURES"', or '"OPTION"'. |
config |
List. API credentials/config. |
tz |
Character. Time zone for parsing timestamps. Default '"Asia/Hong_Kong"'. |
A 'data.frame' with one row per OKX risk snapshot. Nested balance and position payloads are returned as JSON strings in 'balData' and 'posData'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.