Treasury Par Yield Curve
treasury_par_yield_curveThe full US Treasury daily par yield curve (also called the Treasury yield curve) for ONE date — every published maturity from 1-month through 30-year in a single call. Sourced from the Federal Reserve Bank of St. Louis (FRED)'s DGS* constant-maturity series, matching the US Treasury's own daily par yield curve rates. Use this (not fred_get_series) whenever the question wants more than one maturity at once: "treasury yield curve", "par yield curve", "full yield curve today/on ", "treasury rates across maturities". Pass date (YYYY-MM-DD) for a specific day; if that date has no published rate (a weekend or federal holiday), the curve as of the nearest PRIOR business day is returned instead, and the response says so (used_prior_business_day_fallback). Omit date for the most recently published curve. For a single maturity's own history over time, use fred_get_series with the matching DGS series id instead (e.g. DGS10 for the 10-year).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The date to get the par yield curve for, YYYY-MM-DD. Omit for the most recently published curve. If the date falls on a weekend or federal holiday (no published rate), the nearest PRIOR business day's curve is returned instead. | |
| _apiKey | Yes | FRED API key |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Present only when one or more maturities had no published rate as of date_used. | |
| curve | Yes | Maturity key -> percent (null if that maturity has no observation for date_used). Keys: 1mo, 3mo, 6mo, 1yr, 2yr, 3yr, 5yr, 7yr, 10yr, 20yr, 30yr. | |
| source | Yes | Publisher and dataset — Federal Reserve Bank of St. Louis (FRED), US Treasury daily par yield curve rates. | |
| date_used | Yes | The actual trading date the curve is as of (may differ from requested_date on a weekend/holiday). | |
| statement | Yes | Human-readable summary of the curve, naming the date used and every maturity. | |
| data_as_of | Yes | Same as date_used — the freshness date of this curve. | |
| maturities | Yes | One entry per maturity, with the underlying FRED series id. | |
| requested_date | Yes | The `date` argument as passed, or null if omitted. | |
| used_prior_business_day_fallback | Yes | True when requested_date had no published rate and the nearest prior business day was used instead. |