/v1/accrual
Realized compounded SOFR + interest between two dates via the SOFR Index
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
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_..."}
)
Example response
A real response from this endpoint, captured by the latest 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
}