pub struct DualModeOFI<const N: usize = 32> { /* private fields */ }Expand description
Order Flow Imbalance (OFI) dual-mode implementation Order Flow Imbalance (OFI) dual-mode implementation.
Implementations§
Trait Implementations§
Source§impl<const N: usize> DualModeFeature<N> for DualModeOFI<N>
impl<const N: usize> DualModeFeature<N> for DualModeOFI<N>
Source§fn calculate_incremental(
&mut self,
update: &MarketUpdate<N, 16>,
) -> FeatureValue
fn calculate_incremental( &mut self, update: &MarketUpdate<N, 16>, ) -> FeatureValue
Calculate feature incrementally for real-time trading
Source§fn calculate_batch(&self, data: &[MarketData]) -> Vec<FeatureValue>
fn calculate_batch(&self, data: &[MarketData]) -> Vec<FeatureValue>
Calculate feature in batch mode for backtesting
Auto Trait Implementations§
impl<const N: usize> Freeze for DualModeOFI<N>
impl<const N: usize> RefUnwindSafe for DualModeOFI<N>
impl<const N: usize> Send for DualModeOFI<N>
impl<const N: usize> Sync for DualModeOFI<N>
impl<const N: usize> Unpin for DualModeOFI<N>
impl<const N: usize> UnwindSafe for DualModeOFI<N>
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