Benchmark Rate API - Dart/Flutter Client

Benchmark Rate is a tool for retrieving current risk-free reference rates that replaced LIBOR. It returns rates for SOFR (US), SONIA (UK), ESTR (EU), TONA (Japan), and SARON (Switzerland).

pub package License: MIT

This is the Dart/Flutter client for the Benchmark Rate API.

Installation

Add this to your pubspec.yaml:

dependencies:
  apiverve_benchmarkrate: ^1.2.0

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage

import 'package:apiverve_benchmarkrate/apiverve_benchmarkrate.dart';

void main() async {
  final client = BenchmarkrateClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'rate': 'SOFR'
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response

{
  "status": "ok",
  "error": null,
  "data": {
    "rate": "SOFR",
    "name": "Secured Overnight Financing Rate",
    "currency": "USD",
    "region": "United States",
    "administrator": "Federal Reserve Bank of New York",
    "value": 4.32,
    "date": "2026-02-04",
    "lastUpdated": "2026-02-05T05:00:00.000Z",
    "change1d": -0.01,
    "changeDirection": "down",
    "previousValue": 4.33,
    "previousDate": "2026-02-03"
  }
}

API Reference

Authentication

All requests require an API key. Get yours at apiverve.com.

License

MIT License - see LICENSE for details.


Built with Dart for APIVerve

Libraries

apiverve_benchmarkrate
Benchmark Rate API client for Dart/Flutter