Official Macro & FX Data
treasury_yieldsUse when an agent needs US government bond yields, a risk-free rate or the yield curve (e.g. 2Y/10Y spread, recession signal, discounting): official US Treasury daily par yield curve, 1 month to 30 years, latest or any day since 1990 (weekends/holidays return the previous business day). Includes 10Y-2Y and 10Y-3M spreads. Source named in every answer. Bad input: HTTP 400 before payment; outage is not charged. Price: 0.002 USDC per successful call (x402).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Day as YYYY-MM-DD (1990-01-02 or later). Default: latest published curve. |