#[non_exhaustive]#[repr(u16)]pub enum StatType {
Show 15 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,
}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.
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.
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.
Trait Implementations§
source§impl IntoEnumIterator for StatType
impl IntoEnumIterator for StatType
type Iterator = StatTypeIter
fn iter() -> StatTypeIter ⓘ
source§impl PartialEq for StatType
impl PartialEq 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
§type ThreadChecker = SendablePyClass<StatType>
type ThreadChecker = SendablePyClass<StatType>
§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<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 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
§type AsRefTarget = PyCell<StatType>
type AsRefTarget = PyCell<StatType>
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.