apiverve_exchangerate 1.2.3
apiverve_exchangerate: ^1.2.3 copied to clipboard
Exchange Rate looks up the conversion rate between two currency codes across 170+ currencies, with both currency names and the last-updated time. Paid plans add the inverse rate, the pair's 1-day to 1 [...]
Exchange Rate API - Dart/Flutter Client #
Exchange Rate looks up the conversion rate between two currency codes across 170+ currencies, with both currency names and the last-updated time. Paid plans add the inverse rate, the pair's 1-day to 1-year change, its 30-day high, low, average and volatility, past dates, and hourly and 30-day daily history.
This is the Dart/Flutter client for the Exchange Rate API.
Installation #
Add this to your pubspec.yaml:
dependencies:
apiverve_exchangerate: ^1.2.3
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage #
import 'package:apiverve_exchangerate/apiverve_exchangerate.dart';
void main() async {
final client = ExchangerateClient('YOUR_API_KEY');
try {
final response = await client.execute({
'currency1': 'USD',
'currency2': 'EUR',
'date': '2025-06-02',
'history': true,
'hourly': true
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response #
{
"status": "ok",
"error": null,
"data": {
"currency1": "USD",
"currency2": "EUR",
"exchangeRate": "0.895099",
"inverseRate": "1.117195",
"date": "2026-10-27",
"lastUpdated": "2026-10-27T17:41:09.810Z",
"currency1Name": "US Dollar",
"currency2Name": "Euro",
"change1d": 0.4467,
"change7d": 0.5739,
"change30d": 1.9699,
"change1y": 4.1682,
"high30d": 0.895099,
"low30d": 0.878037,
"average30d": 0.889911,
"volatility30d": 0.2427,
"history": [
{
"date": "2026-09-28",
"rate": 0.878037
},
{
"date": "2026-09-29",
"rate": 0.880226
},
{
"date": "2026-09-30",
"rate": 0.882434
},
{
"date": "2026-10-01",
"rate": 0.883652
},
{
"date": "2026-10-02",
"rate": 0.888626
},
{
"date": "2026-10-03",
"rate": 0.888626
},
{
"date": "2026-10-04",
"rate": 0.888246
},
{
"date": "2026-10-05",
"rate": 0.894174
},
{
"date": "2026-10-06",
"rate": 0.891674
},
{
"date": "2026-10-07",
"rate": 0.890419
},
{
"date": "2026-10-08",
"rate": 0.892463
},
{
"date": "2026-10-09",
"rate": 0.889796
},
{
"date": "2026-10-10",
"rate": 0.892716
},
{
"date": "2026-10-11",
"rate": 0.892571
},
{
"date": "2026-10-12",
"rate": 0.892822
},
{
"date": "2026-10-13",
"rate": 0.894845
},
{
"date": "2026-10-14",
"rate": 0.891987
},
{
"date": "2026-10-15",
"rate": 0.890861
},
{
"date": "2026-10-16",
"rate": 0.88987
},
{
"date": "2026-10-17",
"rate": 0.889757
},
{
"date": "2026-10-18",
"rate": 0.889761
},
{
"date": "2026-10-19",
"rate": 0.890515
},
{
"date": "2026-10-20",
"rate": 0.889991
},
{
"date": "2026-10-21",
"rate": 0.890629
},
{
"date": "2026-10-22",
"rate": 0.889437
},
{
"date": "2026-10-23",
"rate": 0.891773
},
{
"date": "2026-10-24",
"rate": 0.892532
},
{
"date": "2026-10-25",
"rate": 0.892668
},
{
"date": "2026-10-26",
"rate": 0.891118
},
{
"date": "2026-10-27",
"rate": 0.895099
}
],
"hourly": [
{
"hour": 18,
"rate": 0.891512,
"timestamp": "2026-10-26T18:41:09.810Z"
},
{
"hour": 19,
"rate": 0.891173,
"timestamp": "2026-10-26T19:41:09.810Z"
},
{
"hour": 20,
"rate": 0.8911,
"timestamp": "2026-10-26T20:41:09.810Z"
},
{
"hour": 21,
"rate": 0.891849,
"timestamp": "2026-10-26T21:41:09.810Z"
},
{
"hour": 22,
"rate": 0.89212,
"timestamp": "2026-10-26T22:41:09.810Z"
},
{
"hour": 23,
"rate": 0.891692,
"timestamp": "2026-10-26T23:41:09.810Z"
},
{
"hour": 0,
"rate": 0.891922,
"timestamp": "2026-10-27T00:41:09.810Z"
},
{
"hour": 1,
"rate": 0.892681,
"timestamp": "2026-10-27T01:41:09.810Z"
},
{
"hour": 2,
"rate": 0.892646,
"timestamp": "2026-10-27T02:41:09.810Z"
},
{
"hour": 3,
"rate": 0.892287,
"timestamp": "2026-10-27T03:41:09.810Z"
},
{
"hour": 4,
"rate": 0.892805,
"timestamp": "2026-10-27T04:41:09.810Z"
},
{
"hour": 5,
"rate": 0.893422,
"timestamp": "2026-10-27T05:41:09.810Z"
},
{
"hour": 6,
"rate": 0.893135,
"timestamp": "2026-10-27T06:41:09.810Z"
},
{
"hour": 7,
"rate": 0.892984,
"timestamp": "2026-10-27T07:41:09.810Z"
},
{
"hour": 8,
"rate": 0.8937,
"timestamp": "2026-10-27T08:41:09.810Z"
},
{
"hour": 9,
"rate": 0.894058,
"timestamp": "2026-10-27T09:41:09.810Z"
},
{
"hour": 10,
"rate": 0.89364,
"timestamp": "2026-10-27T10:41:09.810Z"
},
{
"hour": 11,
"rate": 0.893781,
"timestamp": "2026-10-27T11:41:09.810Z"
},
{
"hour": 12,
"rate": 0.894553,
"timestamp": "2026-10-27T12:41:09.810Z"
},
{
"hour": 13,
"rate": 0.894604,
"timestamp": "2026-10-27T13:41:09.810Z"
},
{
"hour": 14,
"rate": 0.894209,
"timestamp": "2026-10-27T14:41:09.810Z"
},
{
"hour": 15,
"rate": 0.894651,
"timestamp": "2026-10-27T15:41:09.810Z"
},
{
"hour": 16,
"rate": 0.895323,
"timestamp": "2026-10-27T16:41:09.810Z"
},
{
"hour": 17,
"rate": 0.895099,
"timestamp": "2026-10-27T17:41:09.810Z"
}
]
}
}
API Reference #
- API Home: Exchange Rate API
- Documentation: docs.apiverve.com/ref/exchangerate
Authentication #
All requests require an API key. Get yours at apiverve.com.
License #
MIT License - see LICENSE for details.
Built with Dart for APIVerve