Last updated:
0 purchases
fixer sdk
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';
copied to clipboard
Examples #
Get latest rates #
ExchangeRates rates = await FixerSDK(
apikey: apikey,
).getLatestRates();
copied to clipboard
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");
copied to clipboard
References #
https://apilayer.com/marketplace/fixer-api#documentation-tab
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.