exchangerateapi_dart 0.1.0
exchangerateapi_dart: ^0.1.0 copied to clipboard
Dart client for exchangerateapi.net with latest and historical endpoints.
exchangerateapi_dart #
Dart client for exchangerateapi.net with two simple endpoints.
- Website: https://exchangerateapi.net
Installation #
Add to your pubspec.yaml:
dependencies:
exchangerateapi_dart: ^0.1.0
Quick start #
import 'package:exchangerateapi_dart/exchangerateapi_dart.dart';
final client = ExchangeRateApiClient(apiKey: const String.fromEnvironment('EXCHANGERATEAPI_KEY'));
final latest = await client.latest(base: 'USD');
Usage #
- Latest with optional symbols filter
- Historical by date and base
Free usage #
A generous free tier is available for testing and light workloads. See https://exchangerateapi.net for current limits.
License #
MIT