View source: R/wrappers_get_account.R
| get_account_max_avail_size | R Documentation |
Retrieve the maximum available buy and sell amount for an instrument under the requested trade mode.
get_account_max_avail_size(
inst_id,
td_mode,
ccy = NULL,
reduce_only = NULL,
px = NULL,
trade_quote_ccy = NULL,
config,
tz = .okx_default_tz
)
inst_id |
Character. One instrument ID or a comma-separated list of up to five IDs. |
td_mode |
Character. Trade mode: '"cross"', '"isolated"', '"cash"', or '"spot_isolated"'. |
ccy |
Character or 'NULL'. Margin currency where applicable. |
reduce_only |
Logical, character, or 'NULL'. Whether to reduce position only. Only applicable to margin endpoints that support it. |
px |
Character, numeric, or 'NULL'. Optional closing price, when supported by OKX. |
trade_quote_ccy |
Character or 'NULL'. Quote currency used for trading for spot instruments. |
config |
List. API credentials/config. |
tz |
Character. Time zone for parsing timestamps. Default '"Asia/Hong_Kong"'. |
A 'data.frame' with 'instId', 'availBuy', and 'availSell'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.