fixer_sdk 1.0.0 copy "fixer_sdk: ^1.0.0" to clipboard
fixer_sdk: ^1.0.0 copied to clipboard

Get currency rates and convert currencies

Fixer Unofficial SDK #

Get currency rates and convert currencies
Hecho en 🇵🇷 por Radamés J. Valentín Reyes

Get API key #

Subscribe and get an API key from here

Import #

import 'package:fixer_sdk/fixer_sdk.dart';

Examples #

Get latest rates #

ExchangeRates rates = await FixerSDK(
      apikey: apikey,
).getLatestRates();

Convert currencies #

ExchangeRates rates = await FixerSDK(
      apikey: apikey,
    ).getLatestRates();
    Currency converted = FixerSDK.equivalentIn(
      fromCurrency: Currency(
        amount: 15, 
        currencyCode: "USD",
      ), 
      toCurrency: "CAD", 
      rates: rates,
    );
    print("15 USD = ${converted.amount} CAD");

References #

0
likes
120
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

Get currency rates and convert currencies

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

sexy_api_client

More

Packages that depend on fixer_sdk