pub struct OrderDetails {
pub client_order_id: SmartString,
pub instrument_id: InstrumentId,
pub side: OrderSide,
pub order_type: OrderType,
pub quantity: Decimal,
pub price: Option<Decimal>,
pub time_in_force: Option<TimeInForce>,
pub post_only: bool,
pub reduce_only: bool,
pub exchange_specific: Option<OwnedValue>,
}Expand description
Details for a new or modified order
Fields§
§client_order_id: SmartStringClient-generated order ID
instrument_id: InstrumentIdInstrument to trade
side: OrderSideOrder side (buy/sell)
order_type: OrderTypeOrder type
quantity: DecimalOrder quantity
price: Option<Decimal>Order price (for limit orders)
time_in_force: Option<TimeInForce>Time in force
post_only: boolWhether the order is a post-only order
reduce_only: boolWhether the order is a reduce-only order
exchange_specific: Option<OwnedValue>Additional exchange-specific parameters
Trait Implementations§
Source§impl Clone for OrderDetails
impl Clone for OrderDetails
Source§fn clone(&self) -> OrderDetails
fn clone(&self) -> OrderDetails
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 moreSource§impl Debug for OrderDetails
impl Debug for OrderDetails
Source§impl<'de> Deserialize<'de> for OrderDetails
impl<'de> Deserialize<'de> for OrderDetails
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OrderDetails
impl RefUnwindSafe for OrderDetails
impl Send for OrderDetails
impl Sync for OrderDetails
impl Unpin for OrderDetails
impl UnwindSafe for OrderDetails
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