Fetching Forward Starting Swap Rates
Use the /swap_rate endpoint to price forward starting swaps where the effective date is in the future. Specify start dates using tenors (6M, 1Y) or specific dates.
A forward starting swap is an interest rate swap where the effective date is set in the future rather than starting immediately (spot). This allows hedging of future interest rate exposure.
Basic Example
Use SPOT to start on the index's spot date, 0D to start today, or a tenor like 6M, 1Y for forward starts:
import requests
url = "https://api.bluegamma.io/v1/swap_rate"
headers = {"x-api-key": "your_api_key"}
params = {
"index": "6M EURIBOR",
"start_date": "1Y", # Forward start in 1 year
"maturity_date": "5Y", # 5 year swap from start
"fixed_leg_frequency": "6M"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())curl -X GET "https://api.bluegamma.io/v1/swap_rate?index=6M%20EURIBOR&start_date=1Y&maturity_date=5Y&fixed_leg_frequency=6M" \
-H "x-api-key: your_api_key_here"Response:
Using Specific Dates
You can also specify exact dates:
Fetching Multiple Forward Starts with asyncio
Use asyncio to fetch multiple forward starting rates efficiently:
Results (6M EURIBOR, Jan 2026):
0D (today)
2.4491%
2.5925%
2.7751%
3M
2.4864%
2.6277%
2.8069%
6M
2.5245%
2.6641%
2.8388%
1Y
2.6083%
2.7424%
2.9062%
2Y
2.7687%
2.8896%
3.0329%
3Y
2.9121%
3.0181%
3.1417%

Parameters
index
Yes
Interest rate index (e.g., 6M EURIBOR, SOFR, SONIA)
start_date
Yes
SPOT for the index's spot date, 0D for today, or a tenor (6M, 1Y) / date (2026-06-15)
maturity_date
Yes
Swap tenor (5Y, 10Y) or specific date
fixed_leg_frequency
No
Payment frequency (6M, 1Y). Omit to price at the index's market-standard conventions
valuation_time
No
Historical timestamp (ISO 8601)
🧠Tips
maturity_dateis the swap tenor from thestart_date, not from todaystart_dateandmaturity_dateaccept tenors (6M,1Y) or ISO dates (2026-06-15)Use
valuation_timeto get historical forward starting rates
Need an API key? 📩 support@bluegamma.io | 📅 Book a call
Last updated
Was this helpful?

