% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrappers_get_account.R
\name{get_account_max_size}
\alias{get_account_max_size}
\title{Get maximum order size}
\usage{
get_account_max_size(
  inst_id,
  td_mode,
  ccy = NULL,
  px = NULL,
  leverage = NULL,
  trade_quote_ccy = NULL,
  outcome = NULL,
  config,
  tz = .okx_default_tz
)
}
\arguments{
\item{inst_id}{Character. One instrument ID or a comma-separated list of up
to five IDs in the same instrument type.}

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

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

\item{px}{Character, numeric, or `NULL`. Optional price override.}

\item{leverage}{Character, numeric, or `NULL`. Optional leverage override.}

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

\item{outcome}{Character or `NULL`. Events market outcome, `"yes"` or `"no"`.}

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

\item{tz}{Character. Time zone for parsing timestamps. Default `"Asia/Hong_Kong"`.}
}
\value{
A `data.frame` with `instId`, `ccy`, `maxBuy`, and `maxSell`.
}
\description{
Retrieve the maximum order quantity allowed for one or more instruments under
the requested trade mode.
}
