pub struct ModifyOrderParams {
pub order_id: SmartString,
pub symbol: SmartString,
pub side: OrderSide,
pub order_type: OrderType,
pub new_quantity: Decimal,
pub new_price: Option<Decimal>,
}Expand description
Parameters for modifying an order
Fields§
§order_id: SmartStringUnique identifier of the order to modify
symbol: SmartStringTrading pair symbol (e.g., “BTCUSDT”)
side: OrderSideOrder side (buy or sell)
order_type: OrderTypeType of order (limit, market, etc.)
new_quantity: DecimalNew quantity for the order
new_price: Option<Decimal>New price for the order (None for market orders)
Trait Implementations§
Source§impl Clone for ModifyOrderParams
impl Clone for ModifyOrderParams
Source§fn clone(&self) -> ModifyOrderParams
fn clone(&self) -> ModifyOrderParams
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModifyOrderParams
impl RefUnwindSafe for ModifyOrderParams
impl Send for ModifyOrderParams
impl Sync for ModifyOrderParams
impl Unpin for ModifyOrderParams
impl UnwindSafe for ModifyOrderParams
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