80trust / 100
Treasury Yields
by Tanod utilpeek in Markets & finance
x402 APIPassing, checked 1 h ago
utilpeek (Tanod) US Treasury daily par yield curve, 1 Mo to 30 Yr, for any date since 1990.
POST https://tanod.dev/v1/finance/treasury/yields
Last 30 days
All checks passedSome failedAll failedNot checked
Status and outage history · Atom feed
- Uptime
- 100%
- Response time
- 275 ms typical, 1.2 s slowest 5%
- Last check
- 1 h ago
- Next check
- any minute now
How to call it
POST https://tanod.dev/v1/finance/treasury/yields
Each call costs $0.002 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://tanod.dev/v1/finance/treasury/yields
content-type: application/json
{
"date": "2026-10-04"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
date | string or null | No | Curve date YYYY-MM-DD (1990-01-02 to today). Default: the latest published curve. A date with no curve (weekend, holiday, not yet published) returns the nearest earlier one, with adjusted: true. Default: null. |
Example response
The provider's example. We can't check it without paying.
Example response, 34 lines
{
"adjusted": true,
"cache_seconds": 21600,
"cached": false,
"date": "2026-10-02",
"disclaimer": "Informational only. Not investment advice.",
"note": "No curve was published for 2026-10-04 (weekend, US federal holiday, market closure or not yet published); this is the nearest earlier date with a published curve.",
"requested_date": "2026-10-04",
"source": {
"license": "US Government work, public domain",
"name": "U.S. Department of the Treasury, Daily Treasury Par Yield Curve Rates",
"notice": "Data: U.S. Department of the Treasury. No endorsement by the Treasury is implied.",
"terms": "https://home.treasury.gov/subfooter/site-policies-and-notices",
"url": "https://home.treasury.gov/resource-center/data-chart-center/interest-rates/TextView?type=daily_treasury_yield_curve"
},
"stale": false,
"unit": "percent per year (bond-equivalent par yields, Treasury CMT curve)",
"yields_pct": {
"1 Mo": 4.04,
"1 Yr": 4.46,
"1.5 Mo": 4.09,
"10 Yr": 5.28,
"2 Mo": 4.11,
"2 Yr": 4.83,
"20 Yr": 5.67,
"3 Mo": 4.19,
"3 Yr": 4.96,
"30 Yr": 5.63,
"4 Mo": 4.26,
"5 Yr": 5.06,
"6 Mo": 4.27,
"7 Yr": 5.17
}
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.002.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://tanod.dev/v1/finance/treasury/yields' \
-H 'content-type: application/json' \
--data-raw '{"date":"2026-10-04"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://tanod.dev/v1/finance/treasury/yields' \
-H 'content-type: application/json' \
--data-raw '{"date":"2026-10-04"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.002 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.002" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.002 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Ffinance%2Ftreasury%2Fyields&method=POST
const res = await pay("https://tanod.dev/v1/finance/treasury/yields", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"date": "2026-10-04"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.002 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.002"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://tanod.dev/v1/finance/treasury/yields",
json={
"date": "2026-10-04",
},
)
print(res.status_code, res.text)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 | 684 ms | $0.002 |
| 5 h ago | Passed | 402 | 255 ms | $0.002 |
| 9 h ago | Passed | 402 | 339 ms | $0.002 |
| 13 h ago | Passed | 402 | 1.2 s | $0.002 |
| 17 h ago | Passed | 402 | 256 ms | $0.002 |
| 21 h ago | Passed | 402 | 267 ms | $0.002 |
| 24 h ago | Passed | 402 | 548 ms | $0.002 |
| 28 h ago | Passed | 402 | 1.0 s | $0.002 |
| 31 h ago | Passed | 402 | 2.1 s | $0.002 |
| 35 h ago | Passed | 402 | 275 ms | $0.002 |
| 39 h ago | Passed | 402 | 486 ms | $0.002 |
| 42 h ago | Passed | 402 | 280 ms | $0.002 |
| 46 h ago | Passed | 402 | 272 ms | $0.002 |
| 2 days ago | Passed | 402 | 266 ms | $0.002 |
| 2 days ago | Passed | 402 | 269 ms | $0.002 |