81trust / 100

Yield Curve Spread

by Treasury yield-curve spreads + in Other

x402 APIPassing, checked 2 h ago

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.

GET https://agent402.tools/api/yield-curve-spread

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
194 ms typical, 194 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agent402.tools/api/yield-curve-spread"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fyield-curve-spread
const res = await pay("https://agent402.tools/api/yield-curve-spread");
console.log(await res.json());

Example input

{}

Example output

{
  "asOf": "FRED constant-maturity Treasury yields",
  "inverted2s10s": true,
  "inverted3m10y": true,
  "recordDate": "2026-06-12",
  "spread2s10sBps": -27,
  "spread3m10yBps": -88
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402204 ms$0.005
7 h agoPassed402194 ms$0.005