Enum dbn::enums::MatchAlgorithm
source · #[repr(u8)]
pub enum MatchAlgorithm {
Fifo,
Configurable,
ProRata,
FifoLmm,
ThresholdProRata,
FifoTopLmm,
ThresholdProRataLmm,
EurodollarFutures,
}Expand description
The type of matching algorithm used for the instrument at the exchange.
Variants§
Fifo
First-in-first-out matching.
Configurable
A configurable match algorithm.
ProRata
Trade quantity is allocated to resting orders based on a pro-rata percentage: resting order quantity divided by total quantity.
FifoLmm
Like Self::Fifo but with LMM allocations prior to FIFO allocations.
ThresholdProRata
Like Self::ProRata but includes a configurable allocation to the first order that
improves the market.
FifoTopLmm
Like Self::FifoLmm but includes a configurable allocation to the first order that
improves the market.
ThresholdProRataLmm
Like Self::ThresholdProRata but includes a special priority to LMMs.
EurodollarFutures
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<MatchAlgorithm> for MatchAlgorithm
impl PartialEq<MatchAlgorithm> 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 Serialize for MatchAlgorithm
impl Serialize for MatchAlgorithm
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.