pub struct TardisAdvancedFeatures { /* private fields */ }Expand description
Consolidated Tardis Advanced Features
Integrates all advanced microstructure features into a single interface
Implementations§
Source§impl TardisAdvancedFeatures
impl TardisAdvancedFeatures
Sourcepub fn new(config: TardisConfig) -> Self
pub fn new(config: TardisConfig) -> Self
Create new Tardis advanced features with configuration
Sourcepub fn update_with_trade(
&mut self,
trade: &TradeTick,
) -> Result<(), &'static str>
pub fn update_with_trade( &mut self, trade: &TradeTick, ) -> Result<(), &'static str>
Update all features with a new market tick (trade)
Sourcepub fn update_with_snapshot(
&mut self,
snapshot: &OrderBookSnapshot,
) -> Result<(), &'static str>
pub fn update_with_snapshot( &mut self, snapshot: &OrderBookSnapshot, ) -> Result<(), &'static str>
Update with order book snapshot
Sourcepub fn get_features(&self) -> TardisFeatureVector
pub fn get_features(&self) -> TardisFeatureVector
Get all calculated features as a feature vector
Sourcepub fn get_config(&self) -> TardisConfig
pub fn get_config(&self) -> TardisConfig
Get configuration used
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TardisAdvancedFeatures
impl RefUnwindSafe for TardisAdvancedFeatures
impl Send for TardisAdvancedFeatures
impl Sync for TardisAdvancedFeatures
impl Unpin for TardisAdvancedFeatures
impl UnwindSafe for TardisAdvancedFeatures
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
§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>
Converts
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>
Converts
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