#[repr(C)]pub struct ImbalanceMsg {Show 21 fields
pub hd: RecordHeader,
pub ts_recv: u64,
pub ref_price: i64,
pub auction_time: u64,
pub cont_book_clr_price: i64,
pub auct_interest_clr_price: i64,
pub ssr_filling_price: i64,
pub ind_match_price: i64,
pub upper_collar: i64,
pub lower_collar: i64,
pub paired_qty: u32,
pub total_imbalance_qty: u32,
pub market_imbalance_qty: u32,
pub unpaired_qty: u32,
pub auction_type: c_char,
pub side: c_char,
pub auction_status: u8,
pub freeze_status: u8,
pub num_extensions: u8,
pub unpaired_side: c_char,
pub significant_imbalance: c_char,
/* private fields */
}Expand description
An auction imbalance message.
Fields§
§hd: RecordHeaderThe common header.
ts_recv: u64The capture-server-received timestamp expressed as the number of nanoseconds since the UNIX epoch.
ref_price: i64The price at which the imbalance shares are calculated, where every 1 unit corresponds to 1e-9, i.e. 1/1,000,000,000 or 0.000000001.
auction_time: u64Reserved for future use.
cont_book_clr_price: i64The hypothetical auction-clearing price for both cross and continuous orders.
auct_interest_clr_price: i64The hypothetical auction-clearing price for cross orders only.
ssr_filling_price: i64Reserved for future use.
ind_match_price: i64Reserved for future use.
upper_collar: i64Reserved for future use.
lower_collar: i64Reserved for future use.
paired_qty: u32The quantity of shares that are eligible to be matched at ref_price.
total_imbalance_qty: u32The quantity of shares that are not paired at ref_price.
market_imbalance_qty: u32Reserved for future use.
unpaired_qty: u32Reserved for future use.
auction_type: c_charVenue-specific character code indicating the auction type.
side: c_charThe market side of the total_imbalance_qty. Can be Ask, Bid, or None.
auction_status: u8Reserved for future use.
freeze_status: u8Reserved for future use.
num_extensions: u8Reserved for future use.
unpaired_side: c_charReserved for future use.
significant_imbalance: c_charVenue-specific character code. For Nasdaq, contains the raw Price Variation Indicator.
Implementations§
Source§impl ImbalanceMsg
impl ImbalanceMsg
Sourcepub fn ts_recv(&self) -> Option<OffsetDateTime>
pub fn ts_recv(&self) -> Option<OffsetDateTime>
Parses the raw capture-server-received timestamp into a datetime. Returns None
if ts_recv contains the sentinel for a null timestamp.
Sourcepub fn ref_price_f64(&self) -> f64
pub fn ref_price_f64(&self) -> f64
Returns the reference price as a floating point.
UNDEF_PRICE will be converted to NaN.
Sourcepub fn cont_book_clr_price_f64(&self) -> f64
pub fn cont_book_clr_price_f64(&self) -> f64
Returns the hypothetical auction-clearing price for cross and continuous orders as a floating point.
UNDEF_PRICE will be converted to NaN.
Sourcepub fn auct_interest_clr_price_f64(&self) -> f64
pub fn auct_interest_clr_price_f64(&self) -> f64
Returns the hypothetical auction-clearing price for cross orders only as a floating point.
UNDEF_PRICE will be converted to NaN.
Trait Implementations§
Source§impl AsRef<[u8]> for ImbalanceMsg
impl AsRef<[u8]> for ImbalanceMsg
Source§impl Clone for ImbalanceMsg
impl Clone for ImbalanceMsg
Source§fn clone(&self) -> ImbalanceMsg
fn clone(&self) -> ImbalanceMsg
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ImbalanceMsg
impl Debug for ImbalanceMsg
Source§impl Default for ImbalanceMsg
impl Default for ImbalanceMsg
Source§impl<'de> Deserialize<'de> for ImbalanceMsg
impl<'de> Deserialize<'de> for ImbalanceMsg
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<'a> From<&'a ImbalanceMsg> for RecordRefEnum<'a>
impl<'a> From<&'a ImbalanceMsg> for RecordRefEnum<'a>
Source§fn from(rec: &'a ImbalanceMsg) -> Self
fn from(rec: &'a ImbalanceMsg) -> Self
Source§impl From<ImbalanceMsg> for RecordEnum
impl From<ImbalanceMsg> for RecordEnum
Source§fn from(rec: ImbalanceMsg) -> Self
fn from(rec: ImbalanceMsg) -> Self
Source§impl HasRType for ImbalanceMsg
impl HasRType for ImbalanceMsg
Source§impl Hash for ImbalanceMsg
impl Hash for ImbalanceMsg
Source§impl<'py> IntoPyObject<'py> for ImbalanceMsg
impl<'py> IntoPyObject<'py> for ImbalanceMsg
Source§type Target = ImbalanceMsg
type Target = ImbalanceMsg
Source§type Output = Bound<'py, <ImbalanceMsg as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <ImbalanceMsg 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 PartialEq for ImbalanceMsg
impl PartialEq for ImbalanceMsg
Source§impl PartialOrd for ImbalanceMsg
impl PartialOrd for ImbalanceMsg
Source§impl PyClass for ImbalanceMsg
impl PyClass for ImbalanceMsg
Source§impl PyClassImpl for ImbalanceMsg
impl PyClassImpl for ImbalanceMsg
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<ImbalanceMsg>
type ThreadChecker = SendablePyClass<ImbalanceMsg>
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 dict_offset() -> Option<Py_ssize_t>
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn weaklist_offset() -> Option<isize>
Source§impl PyClassNewTextSignature<ImbalanceMsg> for PyClassImplCollector<ImbalanceMsg>
Available on crate feature python only.
impl PyClassNewTextSignature<ImbalanceMsg> for PyClassImplCollector<ImbalanceMsg>
python only.fn new_text_signature(self) -> Option<&'static str>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py, false> for &'a ImbalanceMsg
impl<'a, 'py> PyFunctionArgument<'a, 'py, false> for &'a ImbalanceMsg
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py, false> for &'a mut ImbalanceMsg
impl<'a, 'py> PyFunctionArgument<'a, 'py, false> for &'a mut ImbalanceMsg
Source§impl PyMethods<ImbalanceMsg> for PyClassImplCollector<ImbalanceMsg>
Available on crate feature python only.
impl PyMethods<ImbalanceMsg> for PyClassImplCollector<ImbalanceMsg>
python only.fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for ImbalanceMsg
impl PyTypeInfo for ImbalanceMsg
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 Record for ImbalanceMsg
impl Record for ImbalanceMsg
Source§fn header(&self) -> &RecordHeader
fn header(&self) -> &RecordHeader
RecordHeader that comes at the beginning of all
record types.Source§fn raw_index_ts(&self) -> u64
fn raw_index_ts(&self) -> u64
Source§fn record_size(&self) -> usize
fn record_size(&self) -> usize
Source§fn rtype(&self) -> Result<RType>
fn rtype(&self) -> Result<RType>
Source§fn publisher(&self) -> Result<Publisher>
fn publisher(&self) -> Result<Publisher>
publisher_id into an enum which is useful for
exhaustive pattern matching. Read moreSource§fn index_ts(&self) -> Option<OffsetDateTime>
fn index_ts(&self) -> Option<OffsetDateTime>
None if the primary
timestamp contains the sentinel value for a null timestamp. Read moreSource§fn index_date(&self) -> Option<Date>
fn index_date(&self) -> Option<Date>
index_ts()). Returns None if the primary timestamp contains the
sentinel value for a null timestamp.Source§impl RecordMut for ImbalanceMsg
impl RecordMut for ImbalanceMsg
Source§fn header_mut(&mut self) -> &mut RecordHeader
fn header_mut(&mut self) -> &mut RecordHeader
RecordHeader that comes at the beginning of
all record types.Source§impl Serialize for ImbalanceMsg
impl Serialize for ImbalanceMsg
impl Copy for ImbalanceMsg
impl DerefToPyAny for ImbalanceMsg
impl Eq for ImbalanceMsg
impl StructuralPartialEq for ImbalanceMsg
Auto Trait Implementations§
impl Freeze for ImbalanceMsg
impl RefUnwindSafe for ImbalanceMsg
impl Send for ImbalanceMsg
impl Sync for ImbalanceMsg
impl Unpin for ImbalanceMsg
impl UnwindSafe for ImbalanceMsg
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.