1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! Analytics module for market data analysis.
//!
//! This module provides tools for analyzing market microstructure data,
//! including order flow analysis, trade flow metrics, toxicity detection,
//! and dynamic parameter estimation.
//!
//! # Submodules
//!
//! - `order_flow`: Order flow imbalance analysis and trade tracking
//! - `vpin`: VPIN (Volume-Synchronized Probability of Informed Trading) calculation
//! - `intensity`: Dynamic order intensity estimation for A-S model
//! - `live_metrics`: Real-time operational metrics tracking
//! - `prometheus_export`: Prometheus metrics export (feature: `prometheus`)
//!
//! # Example
//!
//! ```rust
//! use market_maker_rs::analytics::order_flow::{OrderFlowAnalyzer, Trade, TradeSide};
//! use market_maker_rs::dec;
//!
//! let mut analyzer = OrderFlowAnalyzer::new(5000);
//! analyzer.add_trade(Trade::new(dec!(100.0), dec!(10.0), TradeSide::Buy, 1000));
//!
//! let stats = analyzer.get_stats(2000);
//! println!("Imbalance: {}", stats.imbalance);
//! ```
/// Order flow imbalance analysis.
/// VPIN (Volume-Synchronized Probability of Informed Trading) calculation.
/// Dynamic order intensity estimation.
/// Live metrics tracking for real-time monitoring.
/// Prometheus metrics export (requires `prometheus` feature).
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;