Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agilord/ecb_fx
Dart client for Foreign Exchange (FX) rates from the European Central Bank.
https://github.com/agilord/ecb_fx
Last synced: about 3 hours ago
JSON representation
Dart client for Foreign Exchange (FX) rates from the European Central Bank.
- Host: GitHub
- URL: https://github.com/agilord/ecb_fx
- Owner: agilord
- License: bsd-3-clause
- Created: 2017-07-25T19:33:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-10T17:05:08.000Z (about 6 years ago)
- Last Synced: 2024-11-15T08:14:19.741Z (2 months ago)
- Language: Dart
- Size: 5.86 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ecb_fx
Foreign Exchange (FX) rates from the European Central Bank.
The rates refresh around 4 PM CET daily.## Usage
A simple usage example:
````dart
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')}');
}
````## Links
- [ECB developer information](http://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html#dev)
- [source code][source]
- contributors: [Agilord][agilord][source]: https://github.com/agilord/ecb_fx
[agilord]: https://www.agilord.com/