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

Trait covering fiat-related functionality

Required Methods§

source

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

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

source

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

Get the live rates from the server.

Implementors§