#[repr(u16)]pub enum Schema {
Show 20 variants
Mbo = 0,
Mbp1 = 1,
Mbp10 = 2,
Tbbo = 3,
Trades = 4,
Ohlcv1S = 5,
Ohlcv1M = 6,
Ohlcv1H = 7,
Ohlcv1D = 8,
Definition = 9,
Statistics = 10,
Status = 11,
Imbalance = 12,
OhlcvEod = 13,
Cmbp1 = 14,
Cbbo1S = 15,
Cbbo1M = 16,
Tcbbo = 17,
Bbo1S = 18,
Bbo1M = 19,
}Expand description
A data record schema.
Each schema has a particular record type associated with it.
See List of supported market data schemas for an overview of the differences and use cases of each schema.
Variants§
Mbo = 0
Market by order.
Mbp1 = 1
Market by price with a book depth of 1.
Mbp10 = 2
Market by price with a book depth of 10.
Tbbo = 3
All trade events with the best bid and offer (BBO) immediately before the effect of the trade.
Trades = 4
All trade events.
Ohlcv1S = 5
Open, high, low, close, and volume at a one-second interval.
Ohlcv1M = 6
Open, high, low, close, and volume at a one-minute interval.
Ohlcv1H = 7
Open, high, low, close, and volume at an hourly interval.
Ohlcv1D = 8
Open, high, low, close, and volume at a daily interval based on the UTC date.
Definition = 9
Instrument definitions.
Statistics = 10
Additional data disseminated by publishers.
Status = 11
Trading status events.
Imbalance = 12
Auction imbalance events.
OhlcvEod = 13
Open, high, low, close, and volume at a daily cadence based on the end of the trading session.
Cmbp1 = 14
Consolidated best bid and offer.
Cbbo1S = 15
Consolidated best bid and offer subsampled at one-second intervals, in addition to trades.
Cbbo1M = 16
Consolidated best bid and offer subsampled at one-minute intervals, in addition to trades.
Tcbbo = 17
All trade events with the consolidated best bid and offer (CBBO) immediately before the effect of the trade.
Bbo1S = 18
Best bid and offer subsampled at one-second intervals, in addition to trades.
Bbo1M = 19
Best bid and offer subsampled at one-minute intervals, in addition to trades.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Schema
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Schema
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl IntoEnumIterator for Schema
impl IntoEnumIterator for Schema
type Iterator = SchemaIter
fn iter() -> SchemaIter ⓘ
Source§impl PyClassImpl for Schema
impl PyClassImpl for Schema
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<Schema>
type ThreadChecker = SendablePyClass<Schema>
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
gil-refs only.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<Schema> for PyClassImplCollector<Schema>
Available on crate feature python only.
impl PyClassNewTextSignature<Schema> for PyClassImplCollector<Schema>
python only.fn new_text_signature(self) -> Option<&'static str>
Source§impl PyMethods<Schema> for PyClassImplCollector<Schema>
Available on crate feature python only.
impl PyMethods<Schema> for PyClassImplCollector<Schema>
python only.