pub struct MarketOrderRequest {
pub side: String,
pub quantity: i64,
pub instrument: InstrumentRef,
pub user: UserRef,
pub comment: Option<String>,
pub time_in_force: Option<String>,
pub allow_margin: Option<bool>,
}Expand description
The body of a market order command (POST .../orders/actions/market and PUT .../market/{orderId}).
Fields§
§side: Stringbuy or sell.
quantity: i64The quantity in lots.
instrument: InstrumentRefThe instrument.
user: UserRefThe portfolio.
comment: Option<String>The comment of the order (up to 100 characters).
time_in_force: Option<String>The time in force (see LimitOrderRequest::time_in_force).
allow_margin: Option<bool>Consent to margin for this order.
Trait Implementations§
Source§impl Clone for MarketOrderRequest
impl Clone for MarketOrderRequest
Source§fn clone(&self) -> MarketOrderRequest
fn clone(&self) -> MarketOrderRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MarketOrderRequest
impl Debug for MarketOrderRequest
Auto Trait Implementations§
impl Freeze for MarketOrderRequest
impl RefUnwindSafe for MarketOrderRequest
impl Send for MarketOrderRequest
impl Sync for MarketOrderRequest
impl Unpin for MarketOrderRequest
impl UnsafeUnpin for MarketOrderRequest
impl UnwindSafe for MarketOrderRequest
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