Yield dashboard
Current yield curve snapshot: full Treasury curve, key spreads, and average rates in one call.
3 tools run server-side in one request. You pay once, settle once, and get a single response - no orchestration, no per-step payments, and a partial-success envelope if any step fails. USDC over x402 on any supported chain.
When to use this pack
Quick fixed-income read - is the curve inverted, what are spreads doing, and where are average rates.
Tools in this pack
All 3 run inside the single $0.014 call above. Each is also callable on its own if you only need one part.
- US Treasury daily yield curve GET /api/treasury-yield-curve Latest US Treasury daily constant-maturity yield curve in one object: recordDate plus mo1, mo3, mo6, yr1, yr2, yr3, yr5, yr7, yr10, yr20 and yr30, each a yield in percent. Source: FRED DGS* series (St. Louis Fed), public domain. No params - always returns the most recent published curve, which trails today by a business day or two; for a date range use treasury-yield-history.
- Treasury yield-curve spreads + inversion GET /api/yield-curve-spread Derived 2s10s and 3m10y Treasury yield-curve spreads (in basis points) plus a boolean recession-signal flag when the curve is inverted. Source: FRED constant-maturity yields (public domain). No params.
- Average interest rates on Treasury securities GET /api/treasury-avg-rates Latest average interest rates the US Treasury is paying by security type (Bills, Notes, Bonds, TIPS, FRNs, marketable vs non-marketable). Public domain, no key. No params - returns the most recent reporting month.
Bought one at a time, these 3 tools cost $0.015 together; the pack is that sum less a 10% bundle discount, rounded up to the $0.001 settlement floor, which is $0.014.
Workflow
- Pull the live Treasury yield curve across all maturities.
- Get the 10Y-2Y and 10Y-3M spreads - inversion signals.
- Pull Treasury average interest rates for context on the cost of government debt.
What one call returns
A JSON object with pack, args, steps, summary; steps holds one entry per tool (treasury-yield-curve, yield-curve-spread, treasury-avg-rates), each with its own result or error. Full example on the API page.
Call it directly
Any x402 client pays the 402 and gets the whole workflow back in one response. With the agent402-client SDK (npm i agent402-client, an ES module):
import { Agent402 } from "agent402-client";
// payFetch: an x402-wrapped fetch your wallet signs (@x402/fetch).
// Tools on the free tier need no options: new Agent402() pays them by proof-of-work.
// an existing prepaid credits key also works: new Agent402({ creditsKey })
const client = new Agent402({ fetch: payFetch });
const result = await client.call("skill-yield-dashboard", {});
Run it in Claude
claude mcp add agent402 -s user -- npx -y agent402-mcp@latest
Then paste this prompt into Claude:
Give me a yield curve snapshot using Agent402's yield-dashboard skill pack. Pull (1) the full Treasury curve, (2) key spreads (10Y-2Y, 10Y-3M), (3) average rates. Flag any inversion.