Fetching Compounded RFR Rates
Calculate compounded overnight rates (realised rates) for risk-free rate indices like SOFR, SONIA, and ESTR over any custom period.
The /compounded_rate endpoint calculates realised compounded rates for overnight risk-free rate (RFR) indices over a specified period. This is the rate you'd use to settle a floating-rate payment based on actual daily fixings.
Example: 90-Day Compounded SOFR
import requests
url = "https://api.bluegamma.io/v1/compounded_rate"
headers = {"x-api-key": "your_api_key"}
params = {
"index": "SOFR",
"start_date": "2025-09-17",
"end_date": "2025-12-16"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())Response:
{
"start_date": "2025-09-17",
"end_date": "2025-12-16",
"index": "SOFR",
"nominal": 1000000.0,
"spread": 0.0,
"day_counter": "Actual360",
"calendar": "SOFR fixing calendar",
"lookback_days": 0,
"lockout_days": 0,
"apply_observation_shift": false,
"rate": 4.090541348035881,
"amount": 10226.353370089702
}start_date
Start of the compounding period
end_date
End of the compounding period
index
The overnight index used
nominal
Notional amount (default: 1,000,000)
spread
Spread added to the rate (default: 0)
day_counter
Day count convention used
rate
The compounded rate as a percentage
amount
Interest amount on the notional
Validating Against the New York Fed
The New York Fed publishes official SOFR Averages for 30-, 90-, and 180-calendar day periods. You can use these to validate BlueGamma's calculations.

Matching the Fed's 90-Day Average
The Fed's 90-day SOFR average for December 16, 2025 is 4.09054%.
To replicate this with the BlueGamma API, count back exactly 90 calendar days from December 16:
BlueGamma returns: 4.090541% โ matching the Fed's published value.
NY Fed (12/16/2025)
4.09054%
BlueGamma API
4.090541%
Exact match. BlueGamma uses the same compounding methodology as the Fed's SOFR Averages, so results should match when using the correct 90-calendar-day window.
Supported Indices
SOFR
USD
Secured Overnight Financing Rate
SONIA
GBP
Sterling Overnight Index Average
ESTR
EUR
Euro Short-Term Rate
CORRA
CAD
Canadian Overnight Repo Rate Average
SARON
CHF
Swiss Average Rate Overnight
TONAR
JPY
Tokyo Overnight Average Rate
Fed Funds
USD
Federal Funds Effective Rate
Optional Parameters
Spread
Add a fixed spread to the compounded rate:
Nominal Amount
Calculate the actual interest amount on a specific notional:
Response includes:
Lookback and Lockout
For ISDA-style conventions with lookback or lockout periods:
Use Cases
Settling a Floating-Rate Loan Payment
Calculate the interest due on a SOFR-linked loan:
Comparing SONIA vs SOFR
Related Endpoints
Need an API key? ๐ฉ [email protected] | ๐ Book a call
Last updated
Was this helpful?

