pub struct AmendOrderRequest<'a> { /* private fields */ }Expand description
A request to amend an order.
Implementations§
Source§impl<'a> AmendOrderRequest<'a>
impl<'a> AmendOrderRequest<'a>
Sourcepub fn new(inst_id: impl Into<Cow<'a, str>>) -> Self
pub fn new(inst_id: impl Into<Cow<'a, str>>) -> Self
Create an amend-order request for an instrument.
Sourcepub fn client_order_id(self, cl_ord_id: impl Into<Cow<'a, str>>) -> Self
pub fn client_order_id(self, cl_ord_id: impl Into<Cow<'a, str>>) -> Self
Set the client order ID.
Sourcepub fn request_id(self, req_id: impl Into<Cow<'a, str>>) -> Self
pub fn request_id(self, req_id: impl Into<Cow<'a, str>>) -> 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<'a> Clone for AmendOrderRequest<'a>
impl<'a> Clone for AmendOrderRequest<'a>
Source§fn clone(&self) -> AmendOrderRequest<'a>
fn clone(&self) -> AmendOrderRequest<'a>
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<'a> Debug for AmendOrderRequest<'a>
impl<'a> Debug for AmendOrderRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for AmendOrderRequest<'a>
impl<'a> RefUnwindSafe for AmendOrderRequest<'a>
impl<'a> Send for AmendOrderRequest<'a>
impl<'a> Sync for AmendOrderRequest<'a>
impl<'a> Unpin for AmendOrderRequest<'a>
impl<'a> UnsafeUnpin for AmendOrderRequest<'a>
impl<'a> UnwindSafe for AmendOrderRequest<'a>
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