ecb_fx 0.1.1

Dart native js
Flutter Android iOS web

Current, 90-day and historical Foreign Exchange (FX) rates from the European Central Bank.

ecb_fx #

Foreign Exchange (FX) rates from the European Central Bank. The rates refresh around 4 PM CET daily.

Usage #

A simple usage example:

import 'dart:async';

import 'package:ecb_fx/ecb_fx.dart';
import 'package:http_client/console.dart' as http;

Future main() async {
  http.Client httpClient = new http.ConsoleClient();
  EcbFxClient ecbFxClient = new EcbFxClient(httpClient);

  EcbFxRates rates = await ecbFxClient.getCurrent();
  print('Current USD/EUR rate: ${rates.getDecimal('USD')}');
}
0
likes
75
pub points
0%
popularity

Current, 90-day and historical Foreign Exchange (FX) rates from the European Central Bank.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

istvan.soos@agilord.com

License

BSD (LICENSE)

Dependencies

decimal, http_client, xml

More

Packages that depend on ecb_fx