#[repr(align(64))]pub struct MicrostructuralFeatures {Show 14 fields
pub timestamp_ns: u64,
pub ofi_basic: f64,
pub ofi_weighted: f64,
pub vpin: f64,
pub queue_imbalance: f64,
pub weighted_queue_imbalance: f64,
pub bid_liquidity: Decimal,
pub ask_liquidity: Decimal,
pub liquidity_ratio: f64,
pub realized_volatility: f64,
pub price_impact: f64,
pub spread: Decimal,
pub mid_price: Decimal,
pub relative_spread: f64,
}Expand description
Combined microstructural features
Cache-aligned for efficient batch processing
Fields§
§timestamp_ns: u64Timestamp when these features were calculated in nanoseconds
ofi_basic: f64Basic order flow imbalance (level 1 only)
ofi_weighted: f64Volume-weighted order flow imbalance across multiple levels
vpin: f64Volume-Synchronized Probability of Informed Trading
queue_imbalance: f64Imbalance between best bid and ask quantities
weighted_queue_imbalance: f64Queue imbalance weighted by depth levels
bid_liquidity: DecimalTotal bid-side liquidity across tracked levels
ask_liquidity: DecimalTotal ask-side liquidity across tracked levels
liquidity_ratio: f64Ratio of bid to ask liquidity
realized_volatility: f64Realized volatility over recent time window
price_impact: f64Estimated permanent price impact of trades
spread: DecimalCurrent bid-ask spread
mid_price: DecimalCurrent mid price (average of best bid and ask)
relative_spread: f64Spread normalized by mid price (basis points)
Trait Implementations§
Source§impl Clone for MicrostructuralFeatures
impl Clone for MicrostructuralFeatures
Source§fn clone(&self) -> MicrostructuralFeatures
fn clone(&self) -> MicrostructuralFeatures
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MicrostructuralFeatures
impl Debug for MicrostructuralFeatures
Source§impl Default for MicrostructuralFeatures
impl Default for MicrostructuralFeatures
Source§fn default() -> MicrostructuralFeatures
fn default() -> MicrostructuralFeatures
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MicrostructuralFeatures
impl RefUnwindSafe for MicrostructuralFeatures
impl Send for MicrostructuralFeatures
impl Sync for MicrostructuralFeatures
impl Unpin for MicrostructuralFeatures
impl UnwindSafe for MicrostructuralFeatures
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more