pub struct StopOrder {
pub id: OrderId,
pub side: Side,
pub stop_price: Price,
pub limit_price: Option<Price>,
pub quantity: Quantity,
pub time_in_force: TimeInForce,
pub timestamp: Timestamp,
pub status: StopStatus,
pub trail_method: Option<TrailMethod>,
pub watermark: Option<Price>,
}Expand description
A stop order waiting to be triggered.
Fields§
§id: OrderIdUnique identifier (shared with regular order ID space).
side: SideBuy or sell.
stop_price: PricePrice at which the stop triggers.
limit_price: Option<Price>Limit price for stop-limit orders (None = stop-market).
quantity: QuantityQuantity to submit when triggered.
time_in_force: TimeInForceTime-in-force for the resulting order.
timestamp: TimestampWhen the stop order was submitted.
status: StopStatusCurrent status.
trail_method: Option<TrailMethod>Trailing stop method (None = regular stop).
watermark: Option<Price>Watermark: best price seen (high for sell trailing, low for buy trailing).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StopOrder
impl RefUnwindSafe for StopOrder
impl Send for StopOrder
impl Sync for StopOrder
impl Unpin for StopOrder
impl UnsafeUnpin for StopOrder
impl UnwindSafe for StopOrder
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