X

X402stock · AVG Interest Rates

by X402stock

GETBase

$0.01

per call · USD Coin on Base

The average interest rate the US Treasury currently pays on its outstanding debt, broken out by security (Treasury Bills, Notes, Bonds, TIPS, FRNs, savings, and the marketable/total aggregates) for the latest reported month, in percent. No ticker needed. A read on the government's cost of borrowing that complements the /treasury-yields curve. Sourced from the US Treasury (FiscalData).

Endpoint

GET https://x402stock.xyz/api/v1/avg-interest-rates

2

Calls / 30d

2

Unique payers / 30d

Aug 30

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402stock.xyz/api/v1/avg-interest-rates", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402stock.xyz/api/v1/avg-interest-rates" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "as_of": "2026-05-31T00:00:00.000Z",
  "count": 16,
  "rates": [
    {
      "avg_interest_rate": 3.69,
      "security": "Treasury Bills",
      "security_type": "Marketable"
    },
    {
      "avg_interest_rate": 3.248,
      "security": "Treasury Notes",
      "security_type": "Marketable"
    },
    {
      "avg_interest_rate": 3.413,
      "security": "Treasury Bonds",
      "security_type": "Marketable"
    },
    {
      "avg_interest_rate": 3.386,
      "security": "Total Marketable",
      "security_type": "Marketable"
    },
    {
      "avg_interest_rate": 3.353,
      "security": "Total Interest-bearing Debt",
      "security_type": "Interest-bearing Debt"
    }
  ],
  "record_date": "2026-05-31",
  "series": "avg_interest_rates",
  "source": "us_treasury",
  "unit": "percent"
}

Payment details

Pay to0x3070fbb3803819fb5bdfe9286fdc6325a877fa85
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from X402stock & similar services