utilpeek: US Treasury par yield curve (daily, 1 Mo to 30 Yr)
treasury_yield_curveRetrieve official US Treasury par yields for a chosen date, covering 1-month to 30-year maturities. Defaults to the current curve; dates without one return the nearest earlier published date.
Instructions
utilpeek: Get US Treasury yields: the daily par yield curve for a date. For SOFR, FX and oil too use get_macro_snapshot. Returns the official US Treasury daily par yield curve for a date (default: the latest): yields in percent from 1 Mo to 30 Yr (null where none was published); a date without a curve returns the nearest earlier one (adjusted: true). Informational only, not investment advice. Data: U.S. Treasury (public domain), cached up to 6 hours; no Treasury endorsement implied. A bad, pre-1990 or future date is a 422 (not charged); an upstream outage is a 503 (not charged). Typically under 0.1 s from cache; up to about 25 s when the Treasury feed is fetched (it is slow). Price: USD 0.002. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/treasury-yield-curve-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Curve date YYYY-MM-DD (1990-01-02 to today). Default: the latest published curve. A date with no curve (weekend, holiday, not yet published) returns the nearest earlier one, with adjusted: true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| note | No | ||
| unit | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| stale | No | ||
| cached | No | ||
| source | No | ||
| adjusted | No | ||
| disclaimer | No | ||
| yields_pct | No | tenor ('1 Mo' ... '30 Yr') -> percent | |
| cache_seconds | No | ||
| requested_date | No |