#[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<'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<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::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§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
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 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<'a, 'py> PyFunctionArgument<'a, 'py, false> for &'a MatchAlgorithm
impl<'a, 'py> PyFunctionArgument<'a, 'py, false> for &'a MatchAlgorithm
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py, false> for &'a mut MatchAlgorithm
impl<'a, 'py> PyFunctionArgument<'a, 'py, false> 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
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§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
PyTypeInfo::type_objectPyTypeInfo::type_object.Source§fn is_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_type_of(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type or a subclass of this type.Source§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
PyTypeInfo::is_type_ofPyTypeInfo::is_type_of.Source§fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type.Source§fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
PyTypeInfo::is_exact_type_ofPyTypeInfo::is_exact_type_of.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>>
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 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<T> FromPyObject<'_> for T
impl<T> FromPyObject<'_> for T
Source§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
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.