Zum Inhalt springen
GET /v1/sonia

SONIA overnight benchmark

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/boe-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/boe-api/v1/sonia" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/boe-api/v1/sonia", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/boe-api/v1/sonia");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/boe-api/v1/sonia",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "date": "2026-06-05",
        "name": "SONIA — Sterling Overnight Index Average",
        "source": "Bank of England",
        "history": [
            {
                "date": "2026-05-22",
                "rate_pct": 3.7301
            },
            {
                "date": "2026-05-26",
                "rate_pct": 3.729
            },
            {
                "date": "2026-05-27",
                "rate_pct": 3.729
            },
            {
                "date": "2026-05-28",
                "rate_pct": 3.7295
            },
            {
                "date": "2026-05-29",
                "rate_pct": 3.7302
            },
            {
                "date": "2026-06-01",
                "rate_pct": 3.7291
            },
            {
                "date": "2026-06-02",
                "rate_pct": 3.7308
            },
            {
                "date": "2026-06-03",
                "rate_pct": 3.7306
            },
            {
                "date": "2026-06-04",
                "rate_pct": 3.7308
            },
            {
                "date": "2026-06-05",
                "rate_pct": 3.7312
            }
        ],
        "rate_pct": 3.7312
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:48.345Z",
        "request_id": "f27a2be1-3d38-448b-b7f4-f6947584b372"
    },
    "status": "ok",
    "message": "SONIA retrieved successfully",
    "success": true
}