Supporting fiat currencies

You can get the full details of supported fiat currencies, such as symbols and localized names:

Rust
let supported_fiat_currencies = sdk.list_fiat_currencies().await?;
Swift
let supportedFiatCurrencies = try? sdk.listFiatCurrencies()
Kotlin
try {
    val fiatCurrencyList = sdk.listFiatCurrencies()
} catch (e: Exception) {
    // handle error
}
React Native
try {
  const fiatCurrencies = await listFiatCurrencies()
} catch (err) {
  console.error(err)
}
Dart
List<FiatCurrency> fiatCurrencyList = await breezSDK.listFiatCurrencies();
Python
supported_fiat_currencies = sdk_services.list_fiat_currencies()
Go
if fiatCurrencies, err := sdk.ListFiatCurrencies(); err == nil {
    log.Printf("%#v", fiatCurrencies)
}
C#
try
{
    var fiatCurrencies = sdk.ListFiatCurrencies();
}
catch (Exception)
{
    // Handle error
}

To get the current BTC rate in the various supported fiat currencies:

Rust
let fiat_rates = sdk.fetch_fiat_rates().await?;
Swift
let fiatRates = try? sdk.fetchFiatRates()
Kotlin
try {
    val fiatRatesMap = sdk.fetchFiatRates()
} catch (e: Exception) {
    // handle error
}
React Native
try {
  const fiatRates = await fetchFiatRates()
} catch (err) {
  console.error(err)
}
Dart
Map<String, Rate> fiatRatesMap = await breezSDK.fetchFiatRates();
// print your desired rate
print(fiatRatesMap["USD"]?.value);
Python
fiat_rates = sdk_services.fetch_fiat_rates
Go
if fiatRates, err := sdk.FetchFiatRates(); err == nil {
    log.Printf("%#v", fiatRates)
}
C#
try
{
    var fiatRates = sdk.FetchFiatRates();
}
catch (Exception)
{
    // Handle error
}