% 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, config, tz = .okx_default_tz)
}
\arguments{
\item{inst_id}{Instrument ID (e.g., \code{"BTC-USDT"}).}

\item{ord_id}{Order ID to cancel. Alternatively, you can modify the function to accept \code{clOrdId}.}

\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.
}
