Fetching Zero Rates
Fetch zero-coupon rates for discounting cash flows, building DCF models, and valuing debt portfolios.
When to Use Zero Rates
Use Case
Why Zero Rates?
Basic Example
import requests
url = "https://api.bluegamma.io/v1/zero_rate"
headers = {"x-api-key": "your_api_key"}
params = {
"index": "SOFR",
"date": "2030-12-17" # 5 years from now
}
response = requests.get(url, headers=headers, params=params)
print(response.json())Field
Description
Use Case: Discounting Cash Flows
Example: Value a 5-Year Amortising Loan
Use Case: Building a Zero Curve
Maturity
Zero Rate
Use Case: Comparing USD vs GBP Rates
Visualising Zero Curves

Converting Zero Rates to Discount Factors
Parameters
Parameter
Required
Description
Supported Indices
Index
Currency
Day Count
Related Endpoints
If you need...
Use
Excel Alternative
Last updated
Was this helpful?

