% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrappers_get_market.R
\name{get_market_books}
\alias{get_market_books}
\title{Get order book}
\usage{
get_market_books(inst_id, sz = NULL, config = NULL, tz = .okx_default_tz)
}
\arguments{
\item{inst_id}{Character. Instrument ID, e.g. `"BTC-USDT"`.}

\item{sz}{Integer or `NULL`. Order book depth. If `NULL`, OKX uses its
endpoint default.}

\item{config}{Optional list. Public endpoint request options, such as
`timeout`; credentials are not required.}

\item{tz}{Character. Time zone for parsing timestamps. Default `"Asia/Hong_Kong"`.}
}
\value{
A `data.frame` with JSON-encoded `asks` and `bids` columns plus `ts`.
}
\description{
Retrieve the current order book for an instrument.
}
