pub struct OKXAmendAlgoOrderRequest {Show 15 fields
pub inst_id: String,
pub algo_id: String,
pub algo_cl_ord_id: Option<String>,
pub new_sz: Option<String>,
pub new_trigger_px: Option<String>,
pub new_tp_trigger_px: Option<String>,
pub new_tp_ord_px: Option<String>,
pub new_tp_trigger_px_type: Option<String>,
pub new_sl_trigger_px: Option<String>,
pub new_sl_ord_px: Option<String>,
pub new_sl_trigger_px_type: Option<String>,
pub new_order_px: Option<String>,
pub new_callback_ratio: Option<String>,
pub new_callback_spread: Option<String>,
pub new_active_px: Option<String>,
}Expand description
Represents the request body for POST /api/v5/trade/amend-algos (amend algo order).
Fields§
§inst_id: StringInstrument ID.
algo_id: StringAlgo order ID.
algo_cl_ord_id: Option<String>Client-supplied algo order ID.
new_sz: Option<String>New order size.
new_trigger_px: Option<String>New trigger price (for trigger algo orders).
new_tp_trigger_px: Option<String>New take-profit trigger price (for attached/OCO TP legs).
new_tp_ord_px: Option<String>New take-profit order price (-1 for market).
new_tp_trigger_px_type: Option<String>New take-profit trigger price type (last, mark, index).
new_sl_trigger_px: Option<String>New stop-loss trigger price (for conditional SL algo orders, incl.
closeFraction close-position stops, which OKX amends via newSlTriggerPx
rather than newTriggerPx).
new_sl_ord_px: Option<String>New stop-loss order price (-1 for market).
new_sl_trigger_px_type: Option<String>New stop-loss trigger price type (last, mark, index).
new_order_px: Option<String>New order price (for limit orders after trigger).
new_callback_ratio: Option<String>New callback ratio for trailing stop (e.g., “0.01” for 1%).
new_callback_spread: Option<String>New callback spread for trailing stop (fixed price distance).
new_active_px: Option<String>New activation price for trailing stop.
Trait Implementations§
Source§impl Clone for OKXAmendAlgoOrderRequest
impl Clone for OKXAmendAlgoOrderRequest
Source§fn clone(&self) -> OKXAmendAlgoOrderRequest
fn clone(&self) -> OKXAmendAlgoOrderRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OKXAmendAlgoOrderRequest
impl Debug for OKXAmendAlgoOrderRequest
Source§impl<'de> Deserialize<'de> for OKXAmendAlgoOrderRequest
impl<'de> Deserialize<'de> for OKXAmendAlgoOrderRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for OKXAmendAlgoOrderRequest
impl RefUnwindSafe for OKXAmendAlgoOrderRequest
impl Send for OKXAmendAlgoOrderRequest
impl Sync for OKXAmendAlgoOrderRequest
impl Unpin for OKXAmendAlgoOrderRequest
impl UnsafeUnpin for OKXAmendAlgoOrderRequest
impl UnwindSafe for OKXAmendAlgoOrderRequest
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more