Skip to main content

SpotPriceSource

Trait SpotPriceSource 

Source
pub trait SpotPriceSource: Send + Sync {
    // Required method
    fn get_spot_price<'life0, 'life1, 'async_trait>(
        &'life0 self,
        underlying: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Option<f64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Source for spot prices. Implemented by GreeksCache.

Required Methods§

Source

fn get_spot_price<'life0, 'life1, 'async_trait>( &'life0 self, underlying: &'life1 str, ) -> Pin<Box<dyn Future<Output = Option<f64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§