Enum dbn::enums::MatchAlgorithm
source · #[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§fn eq(&self, other: &MatchAlgorithm) -> bool
fn eq(&self, other: &MatchAlgorithm) -> bool
self
and other
values to be equal, and is used
by ==
.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
§type ThreadChecker = SendablePyClass<MatchAlgorithm>
type ThreadChecker = SendablePyClass<MatchAlgorithm>
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
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.fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for MatchAlgorithm
impl PyTypeInfo for MatchAlgorithm
§type AsRefTarget = PyCell<MatchAlgorithm>
type AsRefTarget = PyCell<MatchAlgorithm>
source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
object
is an instance of this type or a subclass of this type.source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
object
is an instance of this type.