templar_common::oracle::pyth

Trait Pyth

Source
pub trait Pyth {
    // Required methods
    fn price_feed_exists(&self, price_identifier: PriceIdentifier) -> bool;
    fn list_ema_prices_no_older_than(
        &self,
        price_ids: Vec<PriceIdentifier>,
        age: u64,
    ) -> HashMap<PriceIdentifier, Option<Price>>;
}

Required Methods§

Implementors§