#[repr(u8)]pub enum MatchAlgorithm {
Undefined = 32,
Fifo = 70,
Configurable = 75,
ProRata = 67,
FifoLmm = 84,
ThresholdProRata = 79,
FifoTopLmm = 83,
ThresholdProRataLmm = 81,
EurodollarFutures = 89,
TimeProRata = 80,
}Expand description
The type of matching algorithm used for the instrument at the exchange.
Variants§
Undefined = 32
No matching algorithm was specified.
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.
TimeProRata = 80
Trade quantity is shared between all orders at the best price. Orders with the highest time priority receive a higher matched quantity.
Trait Implementations§
Source§impl Clone for MatchAlgorithm
impl Clone for MatchAlgorithm
Source§fn clone(&self) -> MatchAlgorithm
fn clone(&self) -> MatchAlgorithm
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MatchAlgorithm
impl Debug for MatchAlgorithm
Source§impl Default for MatchAlgorithm
impl Default for MatchAlgorithm
Source§fn default() -> MatchAlgorithm
fn default() -> MatchAlgorithm
Source§impl<'de> Deserialize<'de> for MatchAlgorithm
impl<'de> Deserialize<'de> for MatchAlgorithm
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 From<MatchAlgorithm> for char
impl From<MatchAlgorithm> for char
Source§fn from(algo: MatchAlgorithm) -> Self
fn from(algo: MatchAlgorithm) -> Self
Source§impl From<MatchAlgorithm> for u8
impl From<MatchAlgorithm> for u8
Source§fn from(enum_value: MatchAlgorithm) -> Self
fn from(enum_value: MatchAlgorithm) -> Self
Source§impl Hash for MatchAlgorithm
impl Hash for MatchAlgorithm
Source§impl IntoEnumIterator for MatchAlgorithm
impl IntoEnumIterator for MatchAlgorithm
type Iterator = MatchAlgorithmIter
fn iter() -> MatchAlgorithmIter ⓘ
Source§impl PartialEq for MatchAlgorithm
impl PartialEq for MatchAlgorithm
Source§impl PyClass for MatchAlgorithm
impl PyClass for MatchAlgorithm
Source§impl PyClassImpl for MatchAlgorithm
impl PyClassImpl for MatchAlgorithm
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§type ThreadChecker = SendablePyClass<MatchAlgorithm>
type ThreadChecker = SendablePyClass<MatchAlgorithm>
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
gil-refs only.PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyClassNewTextSignature<MatchAlgorithm> for PyClassImplCollector<MatchAlgorithm>
Available on crate feature python only.
impl PyClassNewTextSignature<MatchAlgorithm> for PyClassImplCollector<MatchAlgorithm>
python only.fn new_text_signature(self) -> Option<&'static str>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a MatchAlgorithm
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a MatchAlgorithm
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut MatchAlgorithm
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut MatchAlgorithm
Source§impl PyMethods<MatchAlgorithm> for PyClassImplCollector<MatchAlgorithm>
Available on crate feature python only.
impl PyMethods<MatchAlgorithm> for PyClassImplCollector<MatchAlgorithm>
python only.