Μετάβαση στο περιεχόμενο
GET /v1/accrual

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

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/sofraverages-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

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