What is a Swap Curve?
An interest rate swap is a contract where two parties exchange interest rate payments — typically one pays a fixed rate and receives a floating rate (or vice versa). The swap curve plots the fixed rates at which swaps can be executed across different maturities (2-year, 5-year, 10-year, 30-year, etc.). It is one of the most important references in fixed income markets because it reflects the market’s expectations of future interest rates, credit conditions, and funding costs. The swap spread — the difference between the swap rate and the government bond yield at the same maturity — is a key indicator of financial system health. Swap spreads widen when credit concerns or funding stresses increase, and narrow when conditions are stable. Rates strategists analyze the shape of the swap curve (steep vs. flat vs. inverted) and the relationship between different tenors to identify trading opportunities.Command
Workflow
Build Swap Curve
Calls
ir_swap in price mode for standard tenors (2Y through 30Y). Extracts par swap rates and DV01.Decompose Real Rates
Calls
inflation_curve to compute real swap rate = nominal minus inflation breakeven.