apiverve_currencyconverter 1.2.3
apiverve_currencyconverter: ^1.2.3 copied to clipboard
Currency Converter calculates foreign exchange conversions across 170+ currencies using real-time rates. Pass an amount with source and target currency codes to receive the converted total, exchange r [...]
Currency Converter API - Dart/Flutter Client #
Currency Converter calculates foreign exchange conversions across 170+ currencies using real-time rates. Pass an amount with source and target currency codes to receive the converted total, exchange rate, and 24-hour trend direction.
This is the Dart/Flutter client for the Currency Converter API.
Installation #
Add this to your pubspec.yaml:
dependencies:
apiverve_currencyconverter: ^1.2.3
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage #
import 'package:apiverve_currencyconverter/apiverve_currencyconverter.dart';
void main() async {
final client = CurrencyconverterClient('YOUR_API_KEY');
try {
final response = await client.execute({
'value': 1,
'from': 'USD',
'to': 'EUR',
'date': '2025-06-02'
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response #
{
"status": "ok",
"error": null,
"data": {
"from": "USD",
"to": "EUR",
"value": 1,
"convertedValue": 0.866496,
"rate": 0.866496,
"change24h": 0.000493,
"change24hPct": 0.0569,
"changeDirection": "up",
"high24h": 0.866914,
"low24h": 0.865725,
"lastUpdated": "2026-09-15T21:00:17.674Z"
}
}
API Reference #
- API Home: Currency Converter API
- Documentation: docs.apiverve.com/ref/currencyconverter
Authentication #
All requests require an API key. Get yours at apiverve.com.
License #
MIT License - see LICENSE for details.
Built with Dart for APIVerve