pub struct MicrostructureSnapshot {
pub avg_spread_bps: Option<f64>,
pub order_imbalance: Option<f64>,
pub kyle_lambda: Option<f64>,
pub amihud_illiquidity: Option<f64>,
pub roll_spread: Option<f64>,
}Expand description
Aggregated snapshot of all available microstructure metrics for a symbol.
Each field is Some if the underlying tracker has enough data (window full),
or None if still warming up.
Fields§
§avg_spread_bps: Option<f64>Rolling average bid-ask spread in basis points.
order_imbalance: Option<f64>Rolling mean order imbalance ratio [-1, 1].
kyle_lambda: Option<f64>Kyle’s lambda (price impact per unit of signed order flow).
amihud_illiquidity: Option<f64>Amihud illiquidity ratio (|return| / volume).
roll_spread: Option<f64>Roll implied spread (autocovariance-based).
Trait Implementations§
Source§impl Clone for MicrostructureSnapshot
impl Clone for MicrostructureSnapshot
Source§impl Debug for MicrostructureSnapshot
impl Debug for MicrostructureSnapshot
Auto Trait Implementations§
impl Freeze for MicrostructureSnapshot
impl RefUnwindSafe for MicrostructureSnapshot
impl Send for MicrostructureSnapshot
impl Sync for MicrostructureSnapshot
impl Unpin for MicrostructureSnapshot
impl UnsafeUnpin for MicrostructureSnapshot
impl UnwindSafe for MicrostructureSnapshot
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