pub struct StopOrderRequest {
pub side: String,
pub condition: String,
pub trigger_price: Decimal,
pub stop_end_unix_time: Option<i64>,
pub price: Option<Decimal>,
pub quantity: i64,
pub instrument: InstrumentRef,
pub user: UserRef,
pub comment: Option<String>,
pub time_in_force: Option<String>,
pub allow_margin: Option<bool>,
pub activate: Option<bool>,
}Expand description
The body of a stop order command: POST .../orders/actions/stop (a market order on trigger) and
.../stopLimit (a limit order on trigger, with price), and the changes PUT .../stop/{id} and
.../stopLimit/{id}.
Fields§
§side: Stringbuy or sell.
condition: StringWhen the stop order triggers: more, less, moreorequal or lessorequal than the trigger price.
trigger_price: DecimalThe trigger price.
stop_end_unix_time: Option<i64>The end of the stop order, Unix seconds.
price: Option<Decimal>The price of the order made on trigger (a stop-limit order only).
quantity: i64The quantity in lots.
instrument: InstrumentRefThe instrument.
user: UserRefThe portfolio.
comment: Option<String>The comment (up to 100 characters).
time_in_force: Option<String>The time in force of the order made on trigger (a stop-limit order only).
allow_margin: Option<bool>Consent to margin for the order made on trigger.
activate: Option<bool>true (the broker default) to start watching the price at once.
Trait Implementations§
Source§impl Clone for StopOrderRequest
impl Clone for StopOrderRequest
Source§fn clone(&self) -> StopOrderRequest
fn clone(&self) -> StopOrderRequest
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 StopOrderRequest
impl Debug for StopOrderRequest
Auto Trait Implementations§
impl Freeze for StopOrderRequest
impl RefUnwindSafe for StopOrderRequest
impl Send for StopOrderRequest
impl Sync for StopOrderRequest
impl Unpin for StopOrderRequest
impl UnsafeUnpin for StopOrderRequest
impl UnwindSafe for StopOrderRequest
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