% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrappers_post_trade.R
\name{post_trade_cancel_order}
\alias{post_trade_cancel_order}
\title{Cancel a Trade Order}
\usage{
post_trade_cancel_order(
  inst_id,
  ord_id = NULL,
  cl_ord_id = NULL,
  config,
  tz = .okx_default_tz
)
}
\arguments{
\item{inst_id}{Instrument ID (e.g., \code{"BTC-USDT"}).}

\item{ord_id}{Optional OKX order ID to cancel.}

\item{cl_ord_id}{Optional client order ID to cancel. Provide this or
`ord_id`.}

\item{config}{A list with API credentials: \code{api_key}, \code{secret_key}, \code{passphrase}.}

\item{tz}{Timezone for parsing any timestamps (default: \code{"Asia/Hong_Kong"}).}
}
\value{
A \code{data.frame} containing cancellation result and timestamp.
}
\description{
Submits a cancellation request for a previously placed trade order.
}
