pub struct OrderRequest {
pub symbol: Symbol,
pub side: Side,
pub order_type: OrderType,
pub quantity: Quantity,
pub price: Option<Price>,
pub trigger_price: Option<Price>,
pub time_in_force: Option<TimeInForce>,
pub client_order_id: Option<String>,
pub take_profit: Option<Price>,
pub stop_loss: Option<Price>,
pub display_quantity: Option<Quantity>,
}Expand description
Desired order placement parameters.
Fields§
§symbol: Symbol§side: Side§order_type: OrderType§quantity: Quantity§price: Option<Price>§trigger_price: Option<Price>§time_in_force: Option<TimeInForce>§client_order_id: Option<String>§take_profit: Option<Price>§stop_loss: Option<Price>§display_quantity: Option<Quantity>Trait Implementations§
Source§impl Clone for OrderRequest
impl Clone for OrderRequest
Source§fn clone(&self) -> OrderRequest
fn clone(&self) -> OrderRequest
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 OrderRequest
impl Debug for OrderRequest
Source§impl<'de> Deserialize<'de> for OrderRequest
impl<'de> Deserialize<'de> for OrderRequest
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 OrderRequest
impl RefUnwindSafe for OrderRequest
impl Send for OrderRequest
impl Sync for OrderRequest
impl Unpin for OrderRequest
impl UnwindSafe for OrderRequest
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