Treasury yield-curve spreads + inversion

$0.005 per call · USDC via x402 · 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. Send GET /api/yield-curve-spread with no input and pay $0.005 per call over x402 or MPP (there is no free tier). It returns a JSON object with recordDate, spread2s10sBps, spread3m10yBps, inverted2s10s, inverted3m10y and 1 more.

Source: FRED constant-maturity yields (public domain). No params.

Category: Live public data · Tags: yield-curve spread 2s10s 3m10y inversion recession macro treasury

TRY IN PLAYGROUND →

Parameters

Treasury yield-curve spreads + inversion takes no parameters.

Example request

curl -i "https://agent402.tools/api/yield-curve-spread"

Without payment this returns HTTP 402 Payment Required with the exact price for yield-curve-spread; any x402 v2 or MPP client pays it and retries.

Example response

{
  "recordDate": "2026-06-12",
  "spread2s10sBps": -27,
  "spread3m10yBps": -88,
  "inverted2s10s": true,
  "inverted3m10y": true,
  "asOf": "FRED constant-maturity Treasury yields"
}
FieldTypeAlways presentIn the example
recordDatestringyes2026-06-12
spread2s10sBpsnumberyes-27
spread3m10yBpsnumberyes-88
inverted2s10sbooleanyestrue
inverted3m10ybooleanyestrue
asOfstringyesFRED constant-maturity Treasury yields

From an MCP client

catalog.call {
  "slug": "yield-curve-spread",
  "params": {}
}

The hosted connector at https://agent402.tools/mcp needs a payment for yield-curve-spread; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/yield-curve-spread");

Part of these workflows

Treasury yield-curve spreads + inversion is one step in these 5 skill packs, each sold as a single call:

Related tools

US Treasury daily yield curve

$0.005 · 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,…

US Treasury yield history

$0.005 · GET /api/treasury-yield-history

Last N business days of US Treasury constant-maturity yields, oldest→newest. Source: FRED DGS* series (St. Louis Fed), p…

Average interest rates on Treasury securities

$0.005 · GET /api/treasury-avg-rates

Latest average interest rates the US Treasury is paying by security type (Bills, Notes, Bonds, TIPS, FRNs, marketable vs…

Sahm Rule recession indicator

$0.005 · GET /api/sahm-rule

Real-time Sahm Rule recession indicator from FRED (SAHMREALTIME series). The Sahm Rule triggers when the 3-month moving …

US total public debt outstanding

$0.002 · GET /api/treasury-debt

Most recent total US public debt outstanding (the headline national-debt number, daily) from the Treasury "Debt to the P…

US CPI year-over-year inflation

$0.005 · GET /api/cpi-yoy

Latest US Consumer Price Index year-over-year inflation rate (headline CPI-U) plus the trailing 12 months of YoY reading…