pub struct LimitOrderRequest {
pub side: String,
pub quantity: i64,
pub price: Decimal,
pub instrument: InstrumentRef,
pub user: UserRef,
pub comment: Option<String>,
pub time_in_force: Option<String>,
pub allow_margin: Option<bool>,
pub iceberg_fixed: Option<i64>,
pub iceberg_variance: Option<i64>,
}Expand description
The body of a limit order command (POST .../orders/actions/limit and the change PUT .../limit/{orderId}).
Fields§
§side: Stringbuy or sell.
quantity: i64The quantity in lots.
price: DecimalThe price.
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: oneday, immediateorcancel, fillorkill, attheclose, goodtillcancelled,
bookorcancel. The broker takes oneday when it is left out.
allow_margin: Option<bool>Consent to margin (a risk level of the broker) for this order.
iceberg_fixed: Option<i64>The visible constant part of an iceberg order, in lots.
iceberg_variance: Option<i64>The deviation of the random addition to the visible part of an iceberg order, in percent of the constant part.
Trait Implementations§
Source§impl Clone for LimitOrderRequest
impl Clone for LimitOrderRequest
Source§fn clone(&self) -> LimitOrderRequest
fn clone(&self) -> LimitOrderRequest
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 LimitOrderRequest
impl Debug for LimitOrderRequest
Auto Trait Implementations§
impl Freeze for LimitOrderRequest
impl RefUnwindSafe for LimitOrderRequest
impl Send for LimitOrderRequest
impl Sync for LimitOrderRequest
impl Unpin for LimitOrderRequest
impl UnsafeUnpin for LimitOrderRequest
impl UnwindSafe for LimitOrderRequest
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