#[non_exhaustive]#[repr(u16)]pub enum StatType {
Show 16 variants
OpeningPrice = 1,
IndicativeOpeningPrice = 2,
SettlementPrice = 3,
TradingSessionLowPrice = 4,
TradingSessionHighPrice = 5,
ClearedVolume = 6,
LowestOffer = 7,
HighestBid = 8,
OpenInterest = 9,
FixingPrice = 10,
ClosePrice = 11,
NetChange = 12,
Vwap = 13,
Volatility = 14,
Delta = 15,
UncrossingPrice = 16,
}Expand description
The type of statistic contained in a StatMsg.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OpeningPrice = 1
The price of the first trade of an instrument. price will be set.
quantity will be set when provided by the venue.
IndicativeOpeningPrice = 2
The probable price of the first trade of an instrument published during pre-
open. Both price and quantity will be set.
SettlementPrice = 3
The settlement price of an instrument. price will be set and flags indicate
whether the price is final or preliminary and actual or theoretical. ts_ref
will indicate the trading date of the settlement price.
TradingSessionLowPrice = 4
The lowest trade price of an instrument during the trading session. price will
be set.
TradingSessionHighPrice = 5
The highest trade price of an instrument during the trading session. price will
be set.
ClearedVolume = 6
The number of contracts cleared for an instrument on the previous trading date.
quantity will be set. ts_ref will indicate the trading date of the volume.
LowestOffer = 7
The lowest offer price for an instrument during the trading session. price
will be set.
HighestBid = 8
The highest bid price for an instrument during the trading session. price
will be set.
OpenInterest = 9
The current number of outstanding contracts of an instrument. quantity will
be set. ts_ref will indicate the trading date for which the open interest was
calculated.
FixingPrice = 10
The volume-weighted average price (VWAP) for a fixing period. price will be
set.
ClosePrice = 11
The last trade price during a trading session. price will be set.
quantity will be set when provided by the venue.
NetChange = 12
The change in price from the close price of the previous trading session to the
most recent trading session. price will be set.
Vwap = 13
The volume-weighted average price (VWAP) during the trading session.
price will be set to the VWAP while quantity will be the traded
volume.
Volatility = 14
The implied volatility associated with the settlement price. price will be set
with the standard precision.
Delta = 15
The option delta associated with the settlement price. price will be set with
the standard precision.
UncrossingPrice = 16
The auction uncrossing price. This is used for auctions that are neither the
official opening auction nor the official closing auction. price will be set.
quantity will be set when provided by the venue.
Trait Implementations§
Source§impl IntoEnumIterator for StatType
impl IntoEnumIterator for StatType
type Iterator = StatTypeIter
fn iter() -> StatTypeIter ⓘ
Source§impl<'py> IntoPyObject<'py> for StatType
impl<'py> IntoPyObject<'py> for StatType
Source§type Output = Bound<'py, <StatType as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <StatType 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 StatType
impl Ord for StatType
Source§impl PartialOrd for StatType
impl PartialOrd for StatType
Source§impl PyClassImpl for StatType
impl PyClassImpl for StatType
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§type ThreadChecker = SendablePyClass<StatType>
type ThreadChecker = SendablePyClass<StatType>
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<StatType> for PyClassImplCollector<StatType>
Available on crate feature python only.
impl PyClassNewTextSignature<StatType> for PyClassImplCollector<StatType>
python only.fn new_text_signature(self) -> Option<&'static str>
Source§impl PyClass__eq__SlotFragment<StatType> for PyClassImplCollector<StatType>
Available on crate feature python only.
impl PyClass__eq__SlotFragment<StatType> for PyClassImplCollector<StatType>
python only.Source§impl PyMethods<StatType> for PyClassImplCollector<StatType>
Available on crate feature python only.
impl PyMethods<StatType> for PyClassImplCollector<StatType>
python only.fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for StatType
impl PyTypeInfo for StatType
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 TryFromPrimitive for StatType
impl TryFromPrimitive for StatType
impl Copy for StatType
impl Eq for StatType
impl StructuralPartialEq for StatType
Auto Trait Implementations§
impl Freeze for StatType
impl RefUnwindSafe for StatType
impl Send for StatType
impl Sync for StatType
impl Unpin for StatType
impl UnwindSafe for StatType
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.