Federal Reserve Yield Curve
Retrieves the US Treasury zero-coupon yield curve that the Federal Reserve Board fits every day with the method of Gürkaynak, Sack and Wright: the single rate that discounts a payment at each maturity, for the nominal curve from 1961 (maturities of 1 to 30 years) and the TIPS (real) curve from 1999 (2 to 20 years).
The Board fits the Svensson (1994) curve to the prices of off-the-run Treasury notes and bonds, leaving out bills and the most recently issued securities whose liquidity premium distorts their yields, so the curve is smooth and free of the quirks of single bonds. The real curve is fitted the same way to TIPS. Unlike get_zero_coupon_curve, which bootstraps the Treasury’s par yields of the day, this is the curve most academic work on US yields uses, with history back to 1961. The parameters of each day’s fit are in get_federal_reserve_svensson_parameters.
Gürkaynak, R. S., Sack, B., & Wright, J. H. (2007). The U.S. Treasury Yield Curve: 1961 to the Present. Journal of Monetary Economics, 54(8), 2291-2304. https://doi.org/10.1016/j.jmoneco.2007.06.029
Gürkaynak, R. S., Sack, B., & Wright, J. H. (2010). The TIPS Yield Curve and Inflation Compensation. American Economic Journal: Macroeconomics, 2(1), 70-92. https://doi.org/10.1257/mac.2.1.70
The Board publishes the zero-coupon yields continuously compounded; they are returned annually compounded, like the other zero-coupon curves of the Finance Toolkit. The formula is as follows:
\[\text{Annually Compounded Yield} = e^{\text{Continuously Compounded Yield}} - 1\]A curve is fitted only to the maturities the securities of the day span, so the longest maturities start later (the 10-year point in 1971, the 20-year point in 1981 and the 30-year point in 1985). The Board updates the files every week and notes that they are a staff research product rather than an official statistical release. Weekly and monthly periods take the curve on the last day of each period.
See definitions: https://www.federalreserve.gov/data/nominal-yield-curve.htm and https://www.federalreserve.gov/data/tips-yield-curve-and-inflation-compensation.htm
Also known as: GSW yield curve, Gürkaynak-Sack-Wright curve, Fed zero-coupon curve, TIPS real yield curve, Svensson curve.
Example · 2026
Install the Finance Toolkit with pip install financetoolkit -U, then call get_federal_reserve_yield_curve:
from financetoolkit import FixedIncome
fixedincome = FixedIncome(start_date='2026-05-01', end_date='2026-10-31')
fixedincome.get_federal_reserve_yield_curve(period='monthly', maturity_years=[1, 2, 5, 10, 20, 30])
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What were the 1, 2, 5, 10, 20 and 30-year zero-coupon yields of the Federal Reserve's fitted Treasury yield curve at the end of each month from May to October 2026?
Which returns:
| Item | 1Y | 2Y | 5Y | 10Y | 20Y | 30Y |
|---|---|---|---|---|---|---|
| 2026-05 | 0.0395 | 0.0401 | 0.0423 | 0.0463 | 0.0520 | 0.0532 |
| 2026-06 | 0.0414 | 0.0415 | 0.0427 | 0.0459 | 0.0512 | 0.0521 |
| 2026-07 | 0.0423 | 0.0430 | 0.0454 | 0.0495 | 0.0551 | 0.0562 |
| 2026-08 | 0.0428 | 0.0436 | 0.0458 | 0.0494 | 0.0544 | 0.0560 |
| 2026-09 | 0.0466 | 0.0496 | 0.0517 | 0.0543 | 0.0591 | 0.0583 |
| 2026-10 | 0.0449 | 0.0465 | 0.0479 | 0.0506 | 0.0556 | 0.0554 |
6 rows
Parameters
get_federal_reserve_yield_curve accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
curve | str | The curve. Options are: “nominal” (Treasury notes and bonds), “real” (TIPS). Defaults to “nominal”. | "nominal" |
maturity_years | list[int] | str | None | The maturities in years to keep, from 1 to 30 for the nominal curve and 2 to 20 for the real curve, e.g. [2, 5, 10] (or “2,5,10”). Defaults to None, which keeps every maturity. | [1, 5, 10, 30] |
period | str | The frequency of the data. Options are: “daily”, “weekly”, “monthly”. Defaults to “daily”. | "weekly" |
rounding | int | None | The number of decimals to round the results to. Defaults to None. | 2 |
growth | bool | Whether to return the growth data or the actual data. Defaults to False. | True |
lag | int | The number of periods to lag the growth data by. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
transform | str | list[str] | None | Time series steps applied in order, such as “sma:12” (moving average), “ema:12”, “std:12”, “zscore:60”, “percentile:120”, “yoy”, “pct_change:3,annualize:3”, “log”, “diff”, “cumsum” or “hp_trend” and “hp_cycle” (Hodrick-Prescott), before growth. A window needs that many periods of history, so the first periods can be empty. Defaults to None. | None |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
References
- Source Federal Reserve Board, The U.S. Treasury Yield Curve: 1961 to the Present (feds200628)
- Source Federal Reserve Board, The TIPS Yield Curve and Inflation Compensation (feds200805)