/v1/accrual
Realized compounded SOFR + interest between two dates via the SOFR Index
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/sofraverages-api/v1/accrual" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sofraverages-api/v1/accrual", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sofraverages-api/v1/accrual");
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/sofraverages-api/v1/accrual",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"days": 92,
"note": "Realized compounded SOFR over the period, computed from the SOFR Index exactly as a loan servicer or FRN desk would settle an interest period. Dates resolve to the nearest published business day on-or-before the request. Read fresh per call, lightly cached.",
"source": "Federal Reserve Bank of New York, SOFR Index",
"formula": "compounded_sofr = (end_index / start_index − 1) × 360 / days; interest = principal × (end_index / start_index − 1)",
"interest": 9296.19,
"end_index": {
"date": "2026-06-11",
"value": 1.2467126
},
"principal": 1000000,
"convention": "ACT/360",
"start_index": {
"date": "2026-03-11",
"value": 1.23522967
},
"growth_factor": 1.0092961902,
"end_date_requested": "2026-06-11",
"compounded_sofr_pct": 3.63764,
"start_date_requested": "2026-03-11"
},
"meta": {
"timestamp": "2026-06-12T10:34:32.038Z",
"request_id": "98732eef-8e91-4dc0-b094-8b5347ba1c6b"
},
"status": "ok",
"message": "Compounded SOFR accrual computed successfully",
"success": true
}