pub struct OrderFlowMetrics {
pub volume_imbalance: f64,
pub book_pressure: f64,
pub trade_intensity: f64,
pub avg_trade_size: Decimal,
pub price_volatility: f64,
pub avg_spread_bps: f64,
pub max_spread_bps: f64,
pub market_impact_bps: f64,
}Expand description
Order flow specific metrics for HFT trading analysis
Captures market microstructure dynamics including volume imbalances, spread analysis, and market impact estimation crucial for HFT strategies.
Fields§
§volume_imbalance: f64Buy/sell volume imbalance ratio (-1.0 to 1.0, positive = buy pressure)
book_pressure: f64Order book pressure ratio (bid volume / ask volume)
trade_intensity: f64Trade intensity measured in trades per second
avg_trade_size: DecimalAverage trade size in base currency
price_volatility: f64Price volatility as rolling standard deviation
avg_spread_bps: f64Average spread in basis points
max_spread_bps: f64Maximum observed spread in basis points
market_impact_bps: f64Estimated market impact in basis points
Trait Implementations§
Source§impl Clone for OrderFlowMetrics
impl Clone for OrderFlowMetrics
Source§fn clone(&self) -> OrderFlowMetrics
fn clone(&self) -> OrderFlowMetrics
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 moreAuto Trait Implementations§
impl Freeze for OrderFlowMetrics
impl RefUnwindSafe for OrderFlowMetrics
impl Send for OrderFlowMetrics
impl Sync for OrderFlowMetrics
impl Unpin for OrderFlowMetrics
impl UnwindSafe for OrderFlowMetrics
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