Enum dbn::enums::MatchAlgorithm
source · #[repr(u8)]pub enum MatchAlgorithm {
Fifo = 70,
Configurable = 75,
ProRata = 67,
FifoLmm = 84,
ThresholdProRata = 79,
FifoTopLmm = 83,
ThresholdProRataLmm = 81,
EurodollarFutures = 89,
}Expand description
The type of matching algorithm used for the instrument at the exchange.
Variants§
Fifo = 70
First-in-first-out matching.
Configurable = 75
A configurable match algorithm.
ProRata = 67
Trade quantity is allocated to resting orders based on a pro-rata percentage: resting order quantity divided by total quantity.
FifoLmm = 84
Like Self::Fifo but with LMM allocations prior to FIFO allocations.
ThresholdProRata = 79
Like Self::ProRata but includes a configurable allocation to the first order that
improves the market.
FifoTopLmm = 83
Like Self::FifoLmm but includes a configurable allocation to the first order that
improves the market.
ThresholdProRataLmm = 81
Like Self::ThresholdProRata but includes a special priority to LMMs.
EurodollarFutures = 89
Special variant used only for Eurodollar futures on CME. See CME documentation.
Trait Implementations§
source§impl Clone for MatchAlgorithm
impl Clone for MatchAlgorithm
source§fn clone(&self) -> MatchAlgorithm
fn clone(&self) -> MatchAlgorithm
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MatchAlgorithm
impl Debug for MatchAlgorithm
source§impl From<MatchAlgorithm> for char
impl From<MatchAlgorithm> for char
source§fn from(algo: MatchAlgorithm) -> Self
fn from(algo: MatchAlgorithm) -> Self
Converts to this type from the input type.
source§impl From<MatchAlgorithm> for u8
impl From<MatchAlgorithm> for u8
source§fn from(enum_value: MatchAlgorithm) -> Self
fn from(enum_value: MatchAlgorithm) -> Self
Converts to this type from the input type.
source§impl Hash for MatchAlgorithm
impl Hash for MatchAlgorithm
source§impl PartialEq for MatchAlgorithm
impl PartialEq for MatchAlgorithm
source§fn eq(&self, other: &MatchAlgorithm) -> bool
fn eq(&self, other: &MatchAlgorithm) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u8> for MatchAlgorithm
impl TryFrom<u8> for MatchAlgorithm
§type Error = TryFromPrimitiveError<MatchAlgorithm>
type Error = TryFromPrimitiveError<MatchAlgorithm>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for MatchAlgorithm
impl TryFromPrimitive for MatchAlgorithm
type Primitive = u8
type Error = TryFromPrimitiveError<MatchAlgorithm>
const NAME: &'static str = "MatchAlgorithm"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for MatchAlgorithm
impl Eq for MatchAlgorithm
impl StructuralEq for MatchAlgorithm
impl StructuralPartialEq for MatchAlgorithm
Auto Trait Implementations§
impl RefUnwindSafe for MatchAlgorithm
impl Send for MatchAlgorithm
impl Sync for MatchAlgorithm
impl Unpin for MatchAlgorithm
impl UnwindSafe for MatchAlgorithm
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