Catalog/finance-yield-curve

Finance

US Treasury yield curve API

The latest US Treasury constant-maturity yields across tenors (1mo→30yr) from FRED, in one call, with the 2s10s spread and an inversion flag. Answers 'Treasury yield curve today', 'is the curve inverted', '10-year yield', '2s10s spread', 'current interest rates'.

Price$0.01per request
MethodPOST
Route/v1/finance/yield-curve
StatusLive
MIME typeapplication/json
Rate limit30/minute
Cache3600s public
financeyield-curvetreasuryratesbondsinversionfredmacro
API URLhttps://x402.hexl.dev/v1/finance/yield-curve
Integration docs
Example request
{}
Example response
{
  "asOf": "2026-06-01",
  "curve": [
    {
      "tenor": "2Y",
      "months": 24,
      "yieldPct": 4.1,
      "date": "2026-06-01"
    },
    {
      "tenor": "10Y",
      "months": 120,
      "yieldPct": 4.4,
      "date": "2026-06-01"
    }
  ],
  "spread2s10s": 0.3,
  "inverted": false
}
Input schema
{
  "type": "object",
  "properties": {}
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}