Trait oracle::feeds::PriceFeed

source ·
trait PriceFeed {
    // Required method
    fn get_price<'life0, 'life1, 'async_trait>(
        &'life0 self,
        currency_pair: CurrencyPair<Currency>,
        currency_store: &'life1 BTreeMap<String, CurrencyConfig>
    ) -> Pin<Box<dyn Future<Output = Result<CurrencyPairAndPrice<Currency>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn get_price<'life0, 'life1, 'async_trait>( &'life0 self, currency_pair: CurrencyPair<Currency>, currency_store: &'life1 BTreeMap<String, CurrencyConfig> ) -> Pin<Box<dyn Future<Output = Result<CurrencyPairAndPrice<Currency>, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§