pub struct AmendOrderRequest { /* private fields */ }Expand description
A request to amend an order.
Implementations§
Source§impl AmendOrderRequest
impl AmendOrderRequest
Sourcepub fn new(inst_id: impl Into<String>) -> Self
pub fn new(inst_id: impl Into<String>) -> Self
Create an amend-order request for an instrument.
Sourcepub fn client_order_id(self, cl_ord_id: impl Into<String>) -> Self
pub fn client_order_id(self, cl_ord_id: impl Into<String>) -> Self
Set the client order ID.
Sourcepub fn request_id(self, req_id: impl Into<String>) -> Self
pub fn request_id(self, req_id: impl Into<String>) -> Self
Set a request ID.
Sourcepub fn cancel_on_fail(self, cxl_on_fail: bool) -> Self
pub fn cancel_on_fail(self, cxl_on_fail: bool) -> Self
Set whether OKX should cancel the order if amendment fails.
Trait Implementations§
Source§impl Clone for AmendOrderRequest
impl Clone for AmendOrderRequest
Source§fn clone(&self) -> AmendOrderRequest
fn clone(&self) -> AmendOrderRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AmendOrderRequest
impl Debug for AmendOrderRequest
Auto Trait Implementations§
impl Freeze for AmendOrderRequest
impl RefUnwindSafe for AmendOrderRequest
impl Send for AmendOrderRequest
impl Sync for AmendOrderRequest
impl Unpin for AmendOrderRequest
impl UnsafeUnpin for AmendOrderRequest
impl UnwindSafe for AmendOrderRequest
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