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.
See ts_recv.
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. Will be UNDEF_PRICE
when unused.
See Prices.
auction_time: u64Projected auction timestamp expressed as the number of nanoseconds since the UNIX epoch.
Will be UNDEF_TIMESTAMP when unused.
cont_book_clr_price: i64The hypothetical auction-clearing price for both cross and continuous orders where every
1 unit corresponds to 1e-9, i.e. 1/1,000,000,000 or 0.000000001.
Will be UNDEF_PRICE when unused.
See Prices.
auct_interest_clr_price: i64The hypothetical auction-clearing price for cross orders only where every 1 unit corresponds
to 1e-9, i.e. 1/1,000,000,000 or 0.000000001. Will be UNDEF_PRICE when unused.
See Prices.
ssr_filling_price: i64The price at which sell short interest will be filed if a sell short restriction is
in effect, where every 1 unit corresponds to 1e-9, i.e. 1/1,000,000,000 or 0.000000001.
Will be UNDEF_PRICE when unused.
See Prices.
ind_match_price: i64The price at which the highest number of shares would trade, subject to auction collars,
where every 1 unit corresponds to 1e-9, i.e. 1/1,000,000,000 or 0.000000001.
Will be UNDEF_PRICE when unused.
See Prices.
upper_collar: i64Upper limit of the auction collar, where every 1 unit corresponds
to 1e-9, i.e. 1/1,000,000,000 or 0.000000001. Will be UNDEF_PRICE when unused.
See Prices.
lower_collar: i64Lower limit of the auction collar, where every 1 unit corresponds
to 1e-9, i.e. 1/1,000,000,000 or 0.000000001. Will be UNDEF_PRICE when unused.
See Prices.
paired_qty: u32The quantity of shares that are eligible to be matched at ref_price.
Will be UNDEF_ORDER_SIZE when unused.
total_imbalance_qty: u32The quantity of shares that are not paired at ref_price.
Will be UNDEF_ORDER_SIZE when not used.
market_imbalance_qty: u32The total market order imbalance quantity at the ref_price.
Will be UNDEF_ORDER_SIZE when unused.
unpaired_qty: u32During the Closing Auction, the number of unpaired shares priced at or better than the
ref_price. Will be UNDEF_ORDER_SIZE when unused.
auction_type: c_charVenue-specific character code indicating the auction type. Will be ~ when unused.
Refer to the venue-specific documentation.
side: c_charThe market side of the total_imbalance_qty.
Can be Ask, Bid, or None.
See Side.
auction_status: u8Venue-specific status code.
Refer to the venue-specific documentation.
freeze_status: u8Venue-specific status code.
Refer to the venue-specific documentation.
num_extensions: u8The number of times the halt period has been extended.
unpaired_side: c_charThe side of the unpaired_qty.
Can be Ask, Bid, or None. Will be None when unused or not applicable.
See Side.
significant_imbalance: c_charVenue-specific character code. For Nasdaq, contains the raw Price Variation Indicator.
Refer to the venue-specific documentation.
Implementations§
Source§impl ImbalanceMsg
impl ImbalanceMsg
Sourcepub fn ts_recv(&self) -> Option<OffsetDateTime>
pub fn ts_recv(&self) -> Option<OffsetDateTime>
Parses the 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
Converts the ref price to a floating point.
UNDEF_PRICE will be converted to NaN.
Sourcepub fn auction_time(&self) -> Option<OffsetDateTime>
pub fn auction_time(&self) -> Option<OffsetDateTime>
Parses the auction time into a datetime.
Returns None if auction_time contains the sentinel for a null timestamp.
Sourcepub fn cont_book_clr_price_f64(&self) -> f64
pub fn cont_book_clr_price_f64(&self) -> f64
Converts the cont book clr price to 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
Converts the auct interest clr price to a floating point.
UNDEF_PRICE will be converted to NaN.
Sourcepub fn ssr_filling_price_f64(&self) -> f64
pub fn ssr_filling_price_f64(&self) -> f64
Converts the ssr filling price to a floating point.
UNDEF_PRICE will be converted to NaN.
Sourcepub fn ind_match_price_f64(&self) -> f64
pub fn ind_match_price_f64(&self) -> f64
Converts the ind match price to a floating point.
UNDEF_PRICE will be converted to NaN.
Sourcepub fn upper_collar_f64(&self) -> f64
pub fn upper_collar_f64(&self) -> f64
Converts the upper collar to a floating point.
UNDEF_PRICE will be converted to NaN.
Sourcepub fn lower_collar_f64(&self) -> f64
pub fn lower_collar_f64(&self) -> f64
Converts the lower collar to 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§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
Source§const RAW_DOC: &'static CStr = /// An auction imbalance message.
const RAW_DOC: &'static CStr = /// An auction imbalance message.
Source§const DOC: &'static CStr
const DOC: &'static CStr
text_signature if a constructor is defined. Read moreSource§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 for ImbalanceMsg
Available on crate feature python only.
impl PyClassNewTextSignature for ImbalanceMsg
python only.const TEXT_SIGNATURE: &'static str = "(publisher_id, instrument_id, ts_event, ts_recv, ref_price, auction_time, cont_book_clr_price, auct_interest_clr_price, paired_qty, total_imbalance_qty, auction_type, side, significant_imbalance, ssr_filling_price=..., ind_match_price=..., upper_collar=..., lower_collar=..., market_imbalance_qty=..., unpaired_qty=..., auction_status=0, freeze_status=0, num_extensions=0, unpaired_side=None)"
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§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
Source§impl WritePyRepr for ImbalanceMsg
Available on crate feature python only.
impl WritePyRepr for ImbalanceMsg
python only.Source§fn write_py_repr(&self, s: &mut String) -> Result
fn write_py_repr(&self, s: &mut String) -> Result
s. Read moreSource§const SHOULD_FLATTEN: bool = false
const SHOULD_FLATTEN: bool = false
impl Copy for ImbalanceMsg
impl DerefToPyAny for ImbalanceMsg
impl Eq for ImbalanceMsg
impl ExtractPyClassWithClone 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<'a, 'py, T> FromPyObject<'a, 'py> for T
impl<'a, 'py, T> FromPyObject<'a, 'py> for T
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.