Fetching Inflation Curves
Fetch zero-coupon inflation curves for UK RPI and EU HICP for inflation-linked bond analysis, real rate calculations, and inflation hedging.
The /inflation_curve endpoint returns zero-coupon inflation rates for tenors from 1Y to 50Y, derived from inflation swap market data. Use this when you need to price inflation-linked instruments, calculate real rates, or analyse breakeven inflation.
When to Use Inflation Curves
Real rate calculation
Subtract inflation from nominal swap rates to get real rates
Inflation-linked bond analysis
Price or value index-linked gilts and linkers
Breakeven inflation
Compare implied inflation expectations across tenors
Inflation hedging
Size and value inflation swap positions
Basic Example
import requests
url = "https://api.bluegamma.io/v1/inflation_curve"
headers = {"x-api-key": "your_api_key"}
params = {
"index": "UK RPI"
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
for point in data["rates"]:
print(f"{point['tenor']}: {point['zc_rate']:.2f}%")Response:
rates
Array of zero-coupon inflation rate points by tenor
zc_rate
The zero-coupon inflation rate as a percentage
tenor
The maturity point on the curve (1Y to 50Y)
discount_index
The nominal rate index used for discounting
timestamp
When the underlying market data was captured
Use Case: Calculating Real Rates
Subtract the implied inflation rate from nominal swap rates to get the real rate at each tenor:
Use Case: Comparing UK and Eurozone Inflation
Output (April 2026):
UK implied inflation runs 100-175bps above Eurozone across the curve, with the spread narrowing at longer tenors.
Current Inflation Curves (April 2026)
1Y
4.96%
3.20%
2Y
4.32%
2.68%
3Y
4.12%
2.48%
5Y
3.76%
2.28%
7Y
3.55%
2.22%
10Y
3.44%
2.22%
15Y
3.38%
2.26%
20Y
3.35%
2.28%
30Y
3.31%
2.35%
50Y
3.36%
2.55%
Parameters
index
Yes
Inflation index: UK RPI, UK CPI, or EU HICP
valuation_time
No
Historical timestamp (ISO 8601) for reproducibility
Supported Indices
UK RPI
United Kingdom
SONIA
Retail Prices Index
UK CPI
United Kingdom
SONIA
Consumer Prices Index, derived from RPI minus a market-implied wedge (methodology)
EU HICP
Eurozone
6M EURIBOR
Harmonised Index of Consumer Prices
Reproducibility with valuation_time
Lock in the inflation curve at a specific point in time:
Related Endpoints
Nominal swap rates
Government bond yields
Forward rates
Zero rates for discounting
Need an API key? 📩 support@bluegamma.io | 📅 Book a call
Last updated
Was this helpful?

