pub enum TradeOrderTriggerCondition {
Default,
Inverse,
Bid,
Ask,
Mid,
}Expand description
TradeOrderTriggerCondition : Specification of which price component should be used when determining if an Order should be triggered and filled. This allows Orders to be triggered based on the bid, ask, mid, default (ask for buy, bid for sell) or inverse (ask for sell, bid for buy) price depending on the desired behaviour. Orders are always filled using their default price component. A special restriction applies when creating a guaranteed Stop Loss Order. In this case the TriggerCondition value must either be "DEFAULT", or the "natural" trigger side "DEFAULT" results in. So for a Stop Loss Order for a long trade valid values are "DEFAULT" and "BID", and for short trades "DEFAULT" and "ASK" are valid. Specification of which price component should be used when determining if an Order should be triggered and filled. This allows Orders to be triggered based on the bid, ask, mid, default (ask for buy, bid for sell) or inverse (ask for sell, bid for buy) price depending on the desired behaviour. Orders are always filled using their default price component. A special restriction applies when creating a guaranteed Stop Loss Order. In this case the TriggerCondition value must either be "DEFAULT", or the "natural" trigger side "DEFAULT" results in. So for a Stop Loss Order for a long trade valid values are "DEFAULT" and "BID", and for short trades "DEFAULT" and "ASK" are valid.
Variants§
Trait Implementations§
Source§impl Clone for TradeOrderTriggerCondition
impl Clone for TradeOrderTriggerCondition
Source§fn clone(&self) -> TradeOrderTriggerCondition
fn clone(&self) -> TradeOrderTriggerCondition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TradeOrderTriggerCondition
Source§impl Debug for TradeOrderTriggerCondition
impl Debug for TradeOrderTriggerCondition
Source§impl Default for TradeOrderTriggerCondition
impl Default for TradeOrderTriggerCondition
Source§fn default() -> TradeOrderTriggerCondition
fn default() -> TradeOrderTriggerCondition
Source§impl<'de> Deserialize<'de> for TradeOrderTriggerCondition
impl<'de> Deserialize<'de> for TradeOrderTriggerCondition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for TradeOrderTriggerCondition
impl Display for TradeOrderTriggerCondition
impl Eq for TradeOrderTriggerCondition
Source§impl Hash for TradeOrderTriggerCondition
impl Hash for TradeOrderTriggerCondition
Source§impl Ord for TradeOrderTriggerCondition
impl Ord for TradeOrderTriggerCondition
Source§fn cmp(&self, other: &TradeOrderTriggerCondition) -> Ordering
fn cmp(&self, other: &TradeOrderTriggerCondition) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for TradeOrderTriggerCondition
impl PartialOrd for TradeOrderTriggerCondition
impl StructuralPartialEq for TradeOrderTriggerCondition
Auto Trait Implementations§
impl Freeze for TradeOrderTriggerCondition
impl RefUnwindSafe for TradeOrderTriggerCondition
impl Send for TradeOrderTriggerCondition
impl Sync for TradeOrderTriggerCondition
impl Unpin for TradeOrderTriggerCondition
impl UnsafeUnpin for TradeOrderTriggerCondition
impl UnwindSafe for TradeOrderTriggerCondition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.