#[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,
InstitutionalPrioritization = 86,
}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.
TimeProRata = 80
Trade quantity is shared between all orders at the best price. Orders with the highest time priority receive a higher matched quantity.
InstitutionalPrioritization = 86
A two-pass FIFO algorithm. The first pass fills the Institutional Group the aggressing order is associated with. The second pass matches orders without an Institutional Group association. See CME documentation.
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(value: MatchAlgorithm) -> Self
fn from(value: 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<'a, 'py> FromPyObject<'a, 'py> for MatchAlgorithmwhere
Self: Clone,
impl<'a, 'py> FromPyObject<'a, 'py> for MatchAlgorithmwhere
Self: Clone,
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<'py> IntoPyObject<'py> for MatchAlgorithm
impl<'py> IntoPyObject<'py> for MatchAlgorithm
Source§type Target = MatchAlgorithm
type Target = MatchAlgorithm
Source§type Output = Bound<'py, <MatchAlgorithm as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <MatchAlgorithm as IntoPyObject<'py>>::Target>
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'py>>::Output, <Self as IntoPyObject<'py>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'py>>::Output, <Self as IntoPyObject<'py>>::Error>
Source§impl Ord for MatchAlgorithm
impl Ord for MatchAlgorithm
Source§fn cmp(&self, other: &MatchAlgorithm) -> Ordering
fn cmp(&self, other: &MatchAlgorithm) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MatchAlgorithm
impl PartialEq for MatchAlgorithm
Source§impl PartialOrd for MatchAlgorithm
impl PartialOrd 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§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
Source§const RAW_DOC: &'static CStr = /// The type of matching algorithm used for the instrument at the exchange.
const RAW_DOC: &'static CStr = /// The type of matching algorithm used for the instrument at the exchange.
Source§const DOC: &'static CStr
const DOC: &'static CStr
text_signature if a constructor is defined. Read moreSource§type Layout = <<MatchAlgorithm as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<MatchAlgorithm>
type Layout = <<MatchAlgorithm as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<MatchAlgorithm>
Source§type ThreadChecker = NoopThreadChecker
type ThreadChecker = NoopThreadChecker
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
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
Source§fn dict_offset() -> Option<PyObjectOffset>
fn dict_offset() -> Option<PyObjectOffset>
Source§fn weaklist_offset() -> Option<PyObjectOffset>
fn weaklist_offset() -> Option<PyObjectOffset>
Source§impl PyClassNewTextSignature for MatchAlgorithm
Available on crate feature python only.
impl PyClassNewTextSignature for MatchAlgorithm
python only.const TEXT_SIGNATURE: &'static str = "(value)"
Source§impl PyClass__eq__SlotFragment<MatchAlgorithm> for PyClassImplCollector<MatchAlgorithm>
Available on crate feature python only.
impl PyClass__eq__SlotFragment<MatchAlgorithm> for PyClassImplCollector<MatchAlgorithm>
python only.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
Source§const NAME: &str = <Self as ::pyo3::PyClass>::NAME
const NAME: &str = <Self as ::pyo3::PyClass>::NAME
prefer using ::type_object(py).name() to get the correct runtime value
Source§const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
prefer using ::type_object(py).module() to get the correct runtime value
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Source§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
Source§impl Serialize for MatchAlgorithm
impl Serialize for MatchAlgorithm
Source§impl TryFrom<u8> for MatchAlgorithm
impl TryFrom<u8> for MatchAlgorithm
Source§type Error = TryFromPrimitiveError<MatchAlgorithm>
type Error = TryFromPrimitiveError<MatchAlgorithm>
Source§impl TryFromPrimitive for MatchAlgorithm
impl TryFromPrimitive for MatchAlgorithm
const NAME: &'static str = "MatchAlgorithm"
type Primitive = u8
type Error = TryFromPrimitiveError<MatchAlgorithm>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl WritePyRepr for MatchAlgorithm
Available on crate feature python only.
impl WritePyRepr for MatchAlgorithm
python only.Source§fn write_py_repr(&self, s: &mut String) -> Result
fn write_py_repr(&self, s: &mut String) -> Result
s. Read moreSource§const SHOULD_FLATTEN: bool = false
const SHOULD_FLATTEN: bool = false
impl Copy for MatchAlgorithm
impl Eq for MatchAlgorithm
impl StructuralPartialEq for MatchAlgorithm
Auto Trait Implementations§
impl Freeze for MatchAlgorithm
impl RefUnwindSafe for MatchAlgorithm
impl Send for MatchAlgorithm
impl Sync for MatchAlgorithm
impl Unpin for MatchAlgorithm
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
Source§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
self into an owned Python object, dropping type information.Source§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
Source§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
Source§const NAME: &'static str = T::NAME
const NAME: &'static str = T::NAME
Use ::classinfo_object() instead and format the type name at runtime. Note that using built-in cast features is often better than manual PyTypeCheck usage.