pub struct FeatureSnapshot {Show 24 fields
pub timestamp: u64,
pub vwap: f64,
pub trade_intensity: f64,
pub buy_sell_ratio: f64,
pub large_trade_ratio: f64,
pub order_flow_imbalance: f64,
pub bid_liquidity: f64,
pub ask_liquidity: f64,
pub spread_bps: f64,
pub mid_price: f64,
pub queue_imbalance: f64,
pub book_depth_ratio: f64,
pub bid_slope: f64,
pub ask_slope: f64,
pub orderbook_skew: f64,
pub orderbook_imbalance: f64,
pub weighted_mid_price: f64,
pub vpin: f64,
pub weighted_queue_imbalance: f64,
pub ofi: f64,
pub weighted_ofi: f64,
pub realized_volatility: f64,
pub kyles_lambda: f64,
pub asymmetry_index: f64,
}Expand description
Snapshot of all calculated features at a point in time
Fields§
§timestamp: u64Timestamp of this snapshot in nanoseconds
vwap: f64Volume-weighted average price over the window
trade_intensity: f64Number of trades per unit time
buy_sell_ratio: f64Ratio of buy trades to sell trades
large_trade_ratio: f64Proportion of volume from large trades
order_flow_imbalance: f64Net order flow (buy volume - sell volume) normalized
bid_liquidity: f64Total quantity on bid side
ask_liquidity: f64Total quantity on ask side
spread_bps: f64Bid-ask spread in basis points
mid_price: f64Current mid price
queue_imbalance: f64Imbalance at best bid/ask levels
book_depth_ratio: f64Ratio of bid depth to ask depth
bid_slope: f64Rate of price decay on bid side
ask_slope: f64Rate of price increase on ask side
orderbook_skew: f64Asymmetry in order book shape
orderbook_imbalance: f64Overall bid-ask imbalance
weighted_mid_price: f64Mid price weighted by best level quantities
vpin: f64Volume-Synchronized Probability of Informed Trading
weighted_queue_imbalance: f64Multi-level weighted queue imbalance
ofi: f64Order Flow Imbalance
weighted_ofi: f64Volume-weighted OFI
realized_volatility: f64Realized volatility estimate
kyles_lambda: f64Kyle’s lambda (price impact coefficient)
asymmetry_index: f64Market asymmetry index
Trait Implementations§
Source§impl Clone for FeatureSnapshot
impl Clone for FeatureSnapshot
Source§fn clone(&self) -> FeatureSnapshot
fn clone(&self) -> FeatureSnapshot
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FeatureSnapshot
impl Debug for FeatureSnapshot
Source§impl Default for FeatureSnapshot
impl Default for FeatureSnapshot
Source§fn default() -> FeatureSnapshot
fn default() -> FeatureSnapshot
Auto Trait Implementations§
impl Freeze for FeatureSnapshot
impl RefUnwindSafe for FeatureSnapshot
impl Send for FeatureSnapshot
impl Sync for FeatureSnapshot
impl Unpin for FeatureSnapshot
impl UnwindSafe for FeatureSnapshot
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,
§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>
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>
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