US Treasury Yield Curve
treasury_yield_curveCurrent and recent U.S. Treasury par yield curve rates, with the spreads traders actually watch already computed.
Returns every published tenor (1 month through 30 years) for the latest business day, plus the 2s10s spread, the 3m10y spread, and an inversion flag. Source is the U.S. Treasury's official daily par yield curve (public domain, no attribution required).
When to use: you need risk-free rates for discounting, a read on the curve's shape, or recession-signal context (curve inversion).
When NOT to use: you need intraday quotes (this publishes once per business day) or non-U.S. sovereign curves.
Args:
days (integer, optional, default 1): how many recent business days to return, newest first (1-30).
Returns structuredContent: { "asOf": "2026-08-14", "latest": { "date": "2026-08-14", "tenors": { "1M": 3.79, "3M": 3.86, "2Y": 4.17, "10Y": 4.68, "30Y": 5.25 }, "spread2s10s": 0.51, "spread3m10y": 0.82, "inverted": false }, "history": [ ...same shape, newest first... ], "source": "https://home.treasury.gov/..." }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many recent business days of the curve to return, newest first. Default 1. |