pub struct AmendOrderParams {
pub category: Category,
pub symbol: String,
pub order_id: Option<String>,
pub order_link_id: Option<String>,
pub qty: Option<String>,
pub price: Option<String>,
pub take_profit: Option<String>,
pub stop_loss: Option<String>,
}Expand description
Amend order request parameters.
Fields§
§category: CategoryProduct category
symbol: StringSymbol name
order_id: Option<String>Order ID (either order_id or order_link_id required)
order_link_id: Option<String>User-defined order ID
qty: Option<String>New order quantity
price: Option<String>New order price
take_profit: Option<String>New take profit price
stop_loss: Option<String>New stop loss price
Implementations§
Source§impl AmendOrderParams
impl AmendOrderParams
Sourcepub fn by_order_id(category: Category, symbol: &str, order_id: &str) -> Self
pub fn by_order_id(category: Category, symbol: &str, order_id: &str) -> Self
Create amend params by order ID.
Sourcepub fn by_order_link_id(
category: Category,
symbol: &str,
order_link_id: &str,
) -> Self
pub fn by_order_link_id( category: Category, symbol: &str, order_link_id: &str, ) -> Self
Create amend params by order link ID.
Sourcepub fn with_price(self, price: &str) -> Self
pub fn with_price(self, price: &str) -> Self
Set new price.
Trait Implementations§
Source§impl Clone for AmendOrderParams
impl Clone for AmendOrderParams
Source§fn clone(&self) -> AmendOrderParams
fn clone(&self) -> AmendOrderParams
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 AmendOrderParams
impl Debug for AmendOrderParams
Auto Trait Implementations§
impl Freeze for AmendOrderParams
impl RefUnwindSafe for AmendOrderParams
impl Send for AmendOrderParams
impl Sync for AmendOrderParams
impl Unpin for AmendOrderParams
impl UnsafeUnpin for AmendOrderParams
impl UnwindSafe for AmendOrderParams
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