Enum StopOrderAny

Source
pub enum StopOrderAny {
    LimitIfTouched(LimitIfTouchedOrder),
    MarketIfTouched(MarketIfTouchedOrder),
    StopLimit(StopLimitOrder),
    StopMarket(StopMarketOrder),
    TrailingStopLimit(TrailingStopLimitOrder),
    TrailingStopMarket(TrailingStopMarketOrder),
}

Variants§

§

LimitIfTouched(LimitIfTouchedOrder)

§

MarketIfTouched(MarketIfTouchedOrder)

§

StopLimit(StopLimitOrder)

§

StopMarket(StopMarketOrder)

§

TrailingStopLimit(TrailingStopLimitOrder)

§

TrailingStopMarket(TrailingStopMarketOrder)

Implementations§

Trait Implementations§

Source§

impl Clone for StopOrderAny

Source§

fn clone(&self) -> StopOrderAny

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StopOrderAny

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<LimitIfTouchedOrder> for StopOrderAny

Source§

fn from(v: LimitIfTouchedOrder) -> StopOrderAny

Converts to this type from the input type.
Source§

impl From<MarketIfTouchedOrder> for StopOrderAny

Source§

fn from(v: MarketIfTouchedOrder) -> StopOrderAny

Converts to this type from the input type.
Source§

impl From<OrderAny> for StopOrderAny

Source§

fn from(order: OrderAny) -> StopOrderAny

Converts to this type from the input type.
Source§

impl From<StopLimitOrder> for StopOrderAny

Source§

fn from(v: StopLimitOrder) -> StopOrderAny

Converts to this type from the input type.
Source§

impl From<StopMarketOrder> for StopOrderAny

Source§

fn from(v: StopMarketOrder) -> StopOrderAny

Converts to this type from the input type.
Source§

impl From<StopOrderAny> for OrderAny

Source§

fn from(order: StopOrderAny) -> OrderAny

Converts to this type from the input type.
Source§

impl From<StopOrderAny> for PassiveOrderAny

Source§

fn from(v: StopOrderAny) -> PassiveOrderAny

Converts to this type from the input type.
Source§

impl From<TrailingStopLimitOrder> for StopOrderAny

Source§

fn from(v: TrailingStopLimitOrder) -> StopOrderAny

Converts to this type from the input type.
Source§

impl From<TrailingStopMarketOrder> for StopOrderAny

Source§

fn from(v: TrailingStopMarketOrder) -> StopOrderAny

Converts to this type from the input type.
Source§

impl Order for StopOrderAny

Source§

fn apply( &mut self, __enum_dispatch_arg_0: OrderEventAny, ) -> Result<(), OrderError>

Applies the event to the order.

§Errors

Returns an error if the event is invalid for the current order status.

Source§

fn into_any(self) -> OrderAny

Source§

fn status(&self) -> OrderStatus

Source§

fn trader_id(&self) -> TraderId

Source§

fn strategy_id(&self) -> StrategyId

Source§

fn instrument_id(&self) -> InstrumentId

Source§

fn symbol(&self) -> Symbol

Source§

fn venue(&self) -> Venue

Source§

fn client_order_id(&self) -> ClientOrderId

Source§

fn venue_order_id(&self) -> Option<VenueOrderId>

Source§

fn position_id(&self) -> Option<PositionId>

Source§

fn account_id(&self) -> Option<AccountId>

Source§

fn last_trade_id(&self) -> Option<TradeId>

Source§

fn order_side(&self) -> OrderSide

Source§

fn order_type(&self) -> OrderType

Source§

fn quantity(&self) -> Quantity

Source§

fn time_in_force(&self) -> TimeInForce

Source§

fn expire_time(&self) -> Option<UnixNanos>

Source§

fn price(&self) -> Option<Price>

Source§

fn trigger_price(&self) -> Option<Price>

Source§

fn trigger_type(&self) -> Option<TriggerType>

Source§

fn liquidity_side(&self) -> Option<LiquiditySide>

Source§

fn is_post_only(&self) -> bool

Source§

fn is_reduce_only(&self) -> bool

Source§

fn is_quote_quantity(&self) -> bool

Source§

fn display_qty(&self) -> Option<Quantity>

Source§

fn limit_offset(&self) -> Option<Decimal>

Source§

fn trailing_offset(&self) -> Option<Decimal>

Source§

fn trailing_offset_type(&self) -> Option<TrailingOffsetType>

Source§

fn emulation_trigger(&self) -> Option<TriggerType>

Source§

fn trigger_instrument_id(&self) -> Option<InstrumentId>

Source§

fn contingency_type(&self) -> Option<ContingencyType>

Source§

fn order_list_id(&self) -> Option<OrderListId>

Source§

fn linked_order_ids(&self) -> Option<&[ClientOrderId]>

Source§

fn parent_order_id(&self) -> Option<ClientOrderId>

Source§

fn exec_algorithm_id(&self) -> Option<ExecAlgorithmId>

Source§

fn exec_algorithm_params(&self) -> Option<&IndexMap<Ustr, Ustr>>

Source§

fn exec_spawn_id(&self) -> Option<ClientOrderId>

Source§

fn tags(&self) -> Option<&[Ustr]>

Source§

fn filled_qty(&self) -> Quantity

Source§

fn leaves_qty(&self) -> Quantity

Source§

fn avg_px(&self) -> Option<f64>

Source§

fn slippage(&self) -> Option<f64>

Source§

fn init_id(&self) -> UUID4

Source§

fn ts_init(&self) -> UnixNanos

Source§

fn ts_submitted(&self) -> Option<UnixNanos>

Source§

fn ts_accepted(&self) -> Option<UnixNanos>

Source§

fn ts_closed(&self) -> Option<UnixNanos>

Source§

fn ts_last(&self) -> UnixNanos

Source§

fn order_side_specified(&self) -> OrderSideSpecified

Source§

fn commissions(&self) -> &IndexMap<Currency, Money>

Source§

fn update(&mut self, __enum_dispatch_arg_0: &OrderUpdated)

Source§

fn events(&self) -> Vec<&OrderEventAny>

Source§

fn last_event(&self) -> &OrderEventAny

Source§

fn event_count(&self) -> usize

Source§

fn venue_order_ids(&self) -> Vec<&VenueOrderId>

Source§

fn trade_ids(&self) -> Vec<&TradeId>

Source§

fn has_price(&self) -> bool

Source§

fn is_buy(&self) -> bool

Source§

fn is_sell(&self) -> bool

Source§

fn is_passive(&self) -> bool

Source§

fn is_aggressive(&self) -> bool

Source§

fn is_emulated(&self) -> bool

Source§

fn is_active_local(&self) -> bool

Source§

fn is_primary(&self) -> bool

Source§

fn is_secondary(&self) -> bool

Source§

fn is_contingency(&self) -> bool

Source§

fn is_parent_order(&self) -> bool

Source§

fn is_child_order(&self) -> bool

Source§

fn is_open(&self) -> bool

Source§

fn is_canceled(&self) -> bool

Source§

fn is_closed(&self) -> bool

Source§

fn is_inflight(&self) -> bool

Source§

fn is_pending_update(&self) -> bool

Source§

fn is_pending_cancel(&self) -> bool

Source§

fn is_spawned(&self) -> bool

Source§

fn to_own_book_order(&self) -> OwnBookOrder

Source§

fn is_triggered(&self) -> Option<bool>

Source§

fn set_position_id(&mut self, __enum_dispatch_arg_0: Option<PositionId>)

Source§

fn set_quantity(&mut self, __enum_dispatch_arg_0: Quantity)

Source§

fn set_leaves_qty(&mut self, __enum_dispatch_arg_0: Quantity)

Source§

fn set_emulation_trigger(&mut self, __enum_dispatch_arg_0: Option<TriggerType>)

Source§

fn set_is_quote_quantity(&mut self, __enum_dispatch_arg_0: bool)

Source§

fn set_liquidity_side(&mut self, __enum_dispatch_arg_0: LiquiditySide)

Source§

fn would_reduce_only( &self, __enum_dispatch_arg_0: PositionSide, __enum_dispatch_arg_1: Quantity, ) -> bool

Source§

fn previous_status(&self) -> Option<OrderStatus>

Source§

impl PartialEq for StopOrderAny

Source§

fn eq(&self, rhs: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryInto<LimitIfTouchedOrder> for StopOrderAny

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<LimitIfTouchedOrder, <Self as TryInto<LimitIfTouchedOrder>>::Error>

Performs the conversion.
Source§

impl TryInto<MarketIfTouchedOrder> for StopOrderAny

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<MarketIfTouchedOrder, <Self as TryInto<MarketIfTouchedOrder>>::Error>

Performs the conversion.
Source§

impl TryInto<StopLimitOrder> for StopOrderAny

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<StopLimitOrder, <Self as TryInto<StopLimitOrder>>::Error>

Performs the conversion.
Source§

impl TryInto<StopMarketOrder> for StopOrderAny

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<StopMarketOrder, <Self as TryInto<StopMarketOrder>>::Error>

Performs the conversion.
Source§

impl TryInto<StopOrderAny> for PassiveOrderAny

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<StopOrderAny, <Self as TryInto<StopOrderAny>>::Error>

Performs the conversion.
Source§

impl TryInto<TrailingStopLimitOrder> for StopOrderAny

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<TrailingStopLimitOrder, <Self as TryInto<TrailingStopLimitOrder>>::Error>

Performs the conversion.
Source§

impl TryInto<TrailingStopMarketOrder> for StopOrderAny

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<TrailingStopMarketOrder, <Self as TryInto<TrailingStopMarketOrder>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> Ungil for T
where T: Send,