% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrappers_get_account.R
\name{get_account_max_avail_size}
\alias{get_account_max_avail_size}
\title{Get maximum available tradable amount}
\usage{
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
)
}
\arguments{
\item{inst_id}{Character. One instrument ID or a comma-separated list of up
to five IDs.}

\item{td_mode}{Character. Trade mode: `"cross"`, `"isolated"`, `"cash"`, or
`"spot_isolated"`.}

\item{ccy}{Character or `NULL`. Margin currency where applicable.}

\item{reduce_only}{Logical, character, or `NULL`. Whether to reduce position
only. Only applicable to margin endpoints that support it.}

\item{px}{Character, numeric, or `NULL`. Optional closing price, when
supported by OKX.}

\item{trade_quote_ccy}{Character or `NULL`. Quote currency used for trading
for spot instruments.}

\item{config}{List. API credentials/config.}

\item{tz}{Character. Time zone for parsing timestamps. Default `"Asia/Hong_Kong"`.}
}
\value{
A `data.frame` with `instId`, `availBuy`, and `availSell`.
}
\description{
Retrieve the maximum available buy and sell amount for an instrument under
the requested trade mode.
}
