pub struct EditOrderRequest {
pub order_id: Option<String>,
pub cli_ord_id: Option<String>,
pub size: Option<Decimal>,
pub limit_price: Option<Decimal>,
pub stop_price: Option<Decimal>,
}Expand description
Request to edit an existing order.
Fields§
§order_id: Option<String>Order ID to edit
cli_ord_id: Option<String>Client order ID to edit
size: Option<Decimal>New size
limit_price: Option<Decimal>New limit price
stop_price: Option<Decimal>New stop price
Implementations§
Source§impl EditOrderRequest
impl EditOrderRequest
Sourcepub fn by_order_id(order_id: impl Into<String>) -> Self
pub fn by_order_id(order_id: impl Into<String>) -> Self
Create an edit request by order ID.
Sourcepub fn by_cli_ord_id(cli_ord_id: impl Into<String>) -> Self
pub fn by_cli_ord_id(cli_ord_id: impl Into<String>) -> Self
Create an edit request by client order ID.
Sourcepub fn limit_price(self, price: Decimal) -> Self
pub fn limit_price(self, price: Decimal) -> Self
Set new limit price.
Sourcepub fn stop_price(self, price: Decimal) -> Self
pub fn stop_price(self, price: Decimal) -> Self
Set new stop price.
Trait Implementations§
Source§impl Clone for EditOrderRequest
impl Clone for EditOrderRequest
Source§fn clone(&self) -> EditOrderRequest
fn clone(&self) -> EditOrderRequest
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 EditOrderRequest
impl Debug for EditOrderRequest
Auto Trait Implementations§
impl Freeze for EditOrderRequest
impl RefUnwindSafe for EditOrderRequest
impl Send for EditOrderRequest
impl Sync for EditOrderRequest
impl Unpin for EditOrderRequest
impl UnwindSafe for EditOrderRequest
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