Trait breez_sdk_liquid::FiatAPI

pub trait FiatAPI: Send + Sync {
    // Required methods
    fn list_fiat_currencies<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<FiatCurrency>, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn fetch_fiat_rates<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Rate>, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Trait covering fiat-related functionality

Required Methods§

fn list_fiat_currencies<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<FiatCurrency>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

List all supported fiat currencies for which there is a known exchange rate.

fn fetch_fiat_rates<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Rate>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Get the live rates from the server.

Implementors§