% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wrappers_post_trade.R
\name{post_trade_amend_algos}
\alias{post_trade_amend_algos}
\title{Amend an Algo Order}
\usage{
post_trade_amend_algos(
  inst_id,
  algo_id = NULL,
  algo_cl_ord_id = NULL,
  cxl_on_fail = NULL,
  req_id = NULL,
  new_sz = NULL,
  new_tp_trigger_px = NULL,
  new_tp_ord_px = NULL,
  new_sl_trigger_px = NULL,
  new_sl_ord_px = NULL,
  new_tp_trigger_px_type = NULL,
  new_sl_trigger_px_type = NULL,
  new_trigger_px = NULL,
  new_ord_px = NULL,
  new_trigger_px_type = NULL,
  attach_algo_ords = NULL,
  config,
  tz = .okx_default_tz
)
}
\arguments{
\item{inst_id}{Instrument ID.}

\item{algo_id}{Algo order ID. Optional if `algo_cl_ord_id` is supplied.}

\item{algo_cl_ord_id}{Client-supplied algo ID. Optional if `algo_id` is supplied.}

\item{cxl_on_fail}{Optional logical. Whether to cancel the order if the
amendment fails.}

\item{req_id}{Optional client amendment request ID.}

\item{new_sz}{Optional new quantity after amendment.}

\item{new_tp_trigger_px}{Optional new take-profit trigger price.}

\item{new_tp_ord_px}{Optional new take-profit order price.}

\item{new_sl_trigger_px}{Optional new stop-loss trigger price.}

\item{new_sl_ord_px}{Optional new stop-loss order price.}

\item{new_tp_trigger_px_type}{Optional new take-profit trigger price type.}

\item{new_sl_trigger_px_type}{Optional new stop-loss trigger price type.}

\item{new_trigger_px}{Optional new trigger price for trigger orders.}

\item{new_ord_px}{Optional new order price for trigger orders.}

\item{new_trigger_px_type}{Optional new trigger price type for trigger orders.}

\item{attach_algo_ords}{Optional attached TP/SL amendment list.}

\item{config}{A list with API credentials.}

\item{tz}{Timezone for parsing response timestamps.}
}
\value{
A `data.frame` describing the algo amendment result.
}
\description{
Amend a supported unfilled algo order.
}
