80trust / 100
Avg Interest Rates
by x402stock.xyz in Markets & finance
x402 APIPassing, checked 1 h ago
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).
GET https://x402stock.xyz/api/v1/avg-interest-rates
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 407 ms typical, 407 ms slowest 5%
- Last check
- 1 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402stock.xyz/api/v1/avg-interest-rates"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%2Fx402stock.xyz%2Fapi%2Fv1%2Favg-interest-rates
const res = await pay("https://x402stock.xyz/api/v1/avg-interest-rates");
console.log(await res.json());Example input
{}Example output
{
"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"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 453 ms | $0.01 |
| 6 h ago | Passed | 402 | 407 ms | $0.01 |