Aller au contenu
GET /v1/accrual

Realized compounded SOFR + interest between two dates via the SOFR Index

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/sofraverages-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}