pub trait FeatureExtractor: Send + Sync {
// Required methods
fn extract_features<'life0, 'life1, 'async_trait>(
&'life0 self,
bars: &'life1 [Bar],
) -> Pin<Box<dyn Future<Output = Result<Vec<FeatureVector>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn feature_names(&self) -> Vec<String>;
}Expand description
Trait for feature extraction from market data
Calculates technical indicators and other features for strategy use.
Required Methods§
Sourcefn extract_features<'life0, 'life1, 'async_trait>(
&'life0 self,
bars: &'life1 [Bar],
) -> Pin<Box<dyn Future<Output = Result<Vec<FeatureVector>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn extract_features<'life0, 'life1, 'async_trait>(
&'life0 self,
bars: &'life1 [Bar],
) -> Pin<Box<dyn Future<Output = Result<Vec<FeatureVector>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sourcefn feature_names(&self) -> Vec<String>
fn feature_names(&self) -> Vec<String>
Get list of feature names in order