Trait IVDataFetcher
Source pub trait IVDataFetcher: Send + Sync {
// Required methods
fn fetch_iv_data<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
currency: &'life1 str,
kind: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<ImpliedVolatilityData>, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn fetch_iv_data_filtered<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
currency: &'life1 str,
expiry: Option<&'life2 str>,
strike: Option<f64>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ImpliedVolatilityData>, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}