#[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<'py> IntoPyObject<'py> for Schema
impl<'py> IntoPyObject<'py> for Schema
Source§type Output = Bound<'py, <Schema as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <Schema 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 Schema
impl Ord for Schema
Source§impl PartialOrd for Schema
impl PartialOrd for Schema
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§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
Source§const RAW_DOC: &'static CStr = /// A data record schema.
///
/// Each schema has a particular [record](crate::record) type associated with it.
///
/// See [List of supported market data schemas](https://databento.com/docs/schemas-and-data-formats/whats-a-schema)
/// for an overview of the differences and use cases of each schema.
const RAW_DOC: &'static CStr = /// A data record schema. /// /// Each schema has a particular [record](crate::record) type associated with it. /// /// See [List of supported market data schemas](https://databento.com/docs/schemas-and-data-formats/whats-a-schema) /// for an overview of the differences and use cases of each schema.
Source§const DOC: &'static CStr
const DOC: &'static CStr
text_signature if a constructor is defined. Read moreSource§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
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 for Schema
Available on crate feature python only.
impl PyClassNewTextSignature for Schema
python only.const TEXT_SIGNATURE: &'static str = "(value)"
Source§impl PyClass__eq__SlotFragment<Schema> for PyClassImplCollector<Schema>
Available on crate feature python only.
impl PyClass__eq__SlotFragment<Schema> for PyClassImplCollector<Schema>
python only.Source§impl PyMethods<Schema> for PyClassImplCollector<Schema>
Available on crate feature python only.
impl PyMethods<Schema> for PyClassImplCollector<Schema>
python only.fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for Schema
impl PyTypeInfo for Schema
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 Schema
impl TryFromPrimitive for Schema
impl Copy for Schema
impl Eq for Schema
impl StructuralPartialEq for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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.