77trust / 100

Latest

by US Overnight Rates in Markets & finance

x402 APIPassing, checked 5 h ago

US overnight interest rates — latest SOFR secured financing and EFFR effective federal funds benchmarks, volumes and policy target range for dollar borrowing-cost comparisons. x402Atlas is not affiliated with the New York Fed. The New York Fed does not sanction, endorse, or recommend any products or services offered by x402Atlas.

GET
https://us-rates.use.x402atlas.com/latest
Price
$0.01
per call in USDC
Uptime
100%
last 30 days
Response time
448 ms
610 ms slowest 5%
Last check
Passed
5 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://us-rates.use.x402atlas.com/latest

Each call costs $0.01 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

Built from the input schema. Replace the values with your own.

GET https://us-rates.use.x402atlas.com/latest

Example response

The provider's example. We can't check it without paying.

Example response, 50 lines
{
  "changes": "x402Atlas selects series, normalizes field names and sorts effective dates; original rate values are unchanged. Omitted optional metadata is null; no interpolation. Original data is freely available from the source and retains the same permissions, conditions and restrictions under its Terms of Use. The fee is for API integration.",
  "disclaimer": "x402Atlas is not affiliated with the New York Fed. The New York Fed does not sanction, endorse, or recommend any products or services offered by x402Atlas.",
  "notice": "The Secured Overnight Financing Rate and Effective Federal Funds Rate data are subject to the Terms of Use posted at newyorkfed.org. The New York Fed is not responsible for publication of these data by x402Atlas, does not endorse any particular republication, and has no liability for your use.",
  "operation": "latest",
  "retrieved_at": "2024-01-08T14:00:00Z",
  "schema_version": "1",
  "series": [
    {
      "alias": "sofr",
      "frequency": "business_daily",
      "name": "Secured Overnight Financing Rate",
      "observations": [
        {
          "date": "2024-01-05",
          "source_footnote_id": null,
          "source_revision_indicator": "",
          "target_lower_percent": null,
          "target_upper_percent": null,
          "value": 5.31,
          "volume_usd_billions": 1674
        }
      ],
      "source_id": "SOFR",
      "unit": "percent_per_annum"
    },
    {
      "alias": "effr",
      "frequency": "business_daily",
      "name": "Effective Federal Funds Rate",
      "observations": [
        {
          "date": "2024-01-05",
          "source_footnote_id": null,
          "source_revision_indicator": "",
          "target_lower_percent": 5.25,
          "target_upper_percent": 5.5,
          "value": 5.33,
          "volume_usd_billions": 84
        }
      ],
      "source_id": "EFFR",
      "unit": "percent_per_annum"
    }
  ],
  "source": "Federal Reserve Bank of New York",
  "source_url": "https://www.newyorkfed.org/markets/reference-rates",
  "terms_url": "https://www.newyorkfed.org/privacy/termsofuse.html",
  "warnings": []
}

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.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://us-rates.use.x402atlas.com/latest'

# 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 - 'https://us-rates.use.x402atlas.com/latest' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: 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.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
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.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fus-rates.use.x402atlas.com%2Flatest
const res = await pay("https://us-rates.use.x402atlas.com/latest");
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.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://us-rates.use.x402atlas.com/latest")
    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

WhenResultHTTPTimePrice
5 h agoPassed402431 ms$0.01
9 h agoPassed402432 ms$0.01
14 h agoPassed402501 ms$0.01
18 h agoPassed402447 ms$0.01
23 h agoPassed402464 ms$0.01
Show 10 older checks
27 h agoPassed402462 ms$0.01
31 h agoPassed402483 ms$0.01
35 h agoPassed402432 ms$0.01
40 h agoPassed402455 ms$0.01
44 h agoPassed402448 ms$0.01
2 days agoPassed402453 ms$0.01
2 days agoPassed402522 ms$0.01
2 days agoPassed402447 ms$0.01
3 days agoPassed402475 ms$0.01
3 days agoPassed402441 ms$0.01