#[non_exhaustive]pub enum Grouping {
Na,
NormalTpsl,
PositionTpsl,
}Expand description
Order grouping for a bulk order action.
Controls how the exchange links the orders in a single action. Na (the
default) treats them as independent. NormalTpsl links a parent entry order
(index 0) with its take-profit / stop-loss children as an OCO bracket;
PositionTpsl attaches the TP/SL to the whole position.
Wire format: "na", "normalTpsl", "positionTpsl".
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Na
Independent orders (no bracket linkage).
NormalTpsl
TP/SL bracket linked to a parent entry order (parent must be index 0).
PositionTpsl
TP/SL attached to the whole position.
Implementations§
Trait Implementations§
impl Copy for Grouping
impl Eq for Grouping
impl StructuralPartialEq for Grouping
Auto Trait Implementations§
impl Freeze for Grouping
impl RefUnwindSafe for Grouping
impl Send for Grouping
impl Sync for Grouping
impl Unpin for Grouping
impl UnsafeUnpin for Grouping
impl UnwindSafe for Grouping
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.