#[repr(i32)]pub enum TriggerType {
TRIGGER_TYPE_UNSPECIFIED = 0,
STOP_LOSS = 1,
TAKE_PROFIT = 2,
TRAILING_STOP = 3,
TWAP = 4,
LADDER = 5,
}Expand description
§============================================================================= Trigger Types and Status
TriggerType defines the category of standalone trigger.
Variants§
TRIGGER_TYPE_UNSPECIFIED = 0
Trigger type was not provided.
STOP_LOSS = 1
Stop-loss: fires when the price crosses a threshold.
TAKE_PROFIT = 2
Take-profit: fires when the price crosses a threshold.
TRAILING_STOP = 3
Trailing stop: dynamic stop that trails price by a distance.
TWAP = 4
TWAP: Time-Weighted Average Price execution over a duration.
LADDER = 5
Ladder/Scaled: Multiple orders placed across a price range.
Implementations§
Source§impl TriggerType
impl TriggerType
Sourcepub const TriggerTypeUnspecified: Self = Self::TRIGGER_TYPE_UNSPECIFIED
pub const TriggerTypeUnspecified: Self = Self::TRIGGER_TYPE_UNSPECIFIED
Idiomatic alias for Self::TRIGGER_TYPE_UNSPECIFIED; Debug prints the variant name.
Sourcepub const StopLoss: Self = Self::STOP_LOSS
pub const StopLoss: Self = Self::STOP_LOSS
Idiomatic alias for Self::STOP_LOSS; Debug prints the variant name.
Sourcepub const TakeProfit: Self = Self::TAKE_PROFIT
pub const TakeProfit: Self = Self::TAKE_PROFIT
Idiomatic alias for Self::TAKE_PROFIT; Debug prints the variant name.
Sourcepub const TrailingStop: Self = Self::TRAILING_STOP
pub const TrailingStop: Self = Self::TRAILING_STOP
Idiomatic alias for Self::TRAILING_STOP; Debug prints the variant name.
Sourcepub const Twap: Self = Self::TWAP
pub const Twap: Self = Self::TWAP
Idiomatic alias for Self::TWAP; Debug prints the variant name.
Sourcepub const Ladder: Self = Self::LADDER
pub const Ladder: Self = Self::LADDER
Idiomatic alias for Self::LADDER; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for TriggerType
impl Clone for TriggerType
Source§fn clone(&self) -> TriggerType
fn clone(&self) -> TriggerType
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 TriggerType
Source§impl Debug for TriggerType
impl Debug for TriggerType
Source§impl Default for TriggerType
impl Default for TriggerType
Source§impl<'de> Deserialize<'de> for TriggerType
impl<'de> Deserialize<'de> for TriggerType
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Source§impl Enumeration for TriggerType
impl Enumeration for TriggerType
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
.proto file.impl Eq for TriggerType
Source§impl Hash for TriggerType
impl Hash for TriggerType
Source§impl PartialEq for TriggerType
impl PartialEq for TriggerType
Source§impl ProtoElemJson for TriggerType
impl ProtoElemJson for TriggerType
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
Source§impl Serialize for TriggerType
impl Serialize for TriggerType
impl StructuralPartialEq for TriggerType
Auto Trait Implementations§
impl Freeze for TriggerType
impl RefUnwindSafe for TriggerType
impl Send for TriggerType
impl Sync for TriggerType
impl Unpin for TriggerType
impl UnsafeUnpin for TriggerType
impl UnwindSafe for TriggerType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.