pub struct OKXAmendAlgoOrderRequest {
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_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/conditional orders).
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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
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§
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
Converts
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>
Converts
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