US Treasury yield curve: daily par yields 1m-30y, 2s10s and 3m10y spreads, inversion, history
macro_treasury_curveUse when an agent needs the official US Treasury par yield curve for a day or a recent stretch. Input: optional date (YYYY-MM-DD, default latest), days (1-366 history ending at date). Output: JSON yields per tenor (1m to 30y, percent), 2s10s and 3m10y spreads in bp, inversion flags, change over the range, history. Weekend or holiday dates fall back to the prior business day. Example: ?days=5 Price: $0.003 USDC (Base or Solana) via x402.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "macro_treasury_curve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Curve date YYYY-MM-DD (default latest published; no curve that day → previous business day) | |
| days | No | Business days of history ending at date (default 1) |