Fetching a Swap Curve
Use the /get_swap_curve endpoint to retrieve par swap rates across tenors for any supported index.
Example: EUR Swap Curve
import requests
url = "https://api.bluegamma.io/v1/get_swap_curve"
headers = {"x-api-key": "your_api_key_here"}
params = {
"index": "6M EURIBOR"
}
response = requests.get(url, headers=headers, params=params)
curve = response.json()
print(f"Index: {curve['index_name']}")
print(f"Start Date: {curve['start_date']}")
print(f"\nSwap Rates:")
for point in curve['swap_rates']:
print(f" {point['tenor']:>4}: {point['swap_rate']:.2f}%")Understanding the Response
Field
Description
Visualizing the Curve

Which Index for Which Currency?
Currency
Index
Description
Use Case
Historical Swap Curves
Alternative: Fetch Individual Swap Rates
Swap Curves vs Government Bond Curves
Swap Curve
Government Bond Curve
Tenor
6M EURIBOR Swap Rate
German Bund Yield
Swap Spread
Complete Example: Building a Swap Curve DataFrame
See Also
Last updated
Was this helpful?

