X4
Market Data · x402 · early usage

Official US Treasury reporting rates of exchange — government FX reference rates for ~1…

Official US Treasury reporting rates of exchange — government FX reference rates for ~170 currencies, in units of foreign currency per 1 USD, for the latest quarter. Use for accounting-grade and exotic-currency conversion the market /api/v1/forex feed lacks.…

by x402stock.xyz · discovered, not yet claimed by its owner · updated 2026-10-09

30d calls6
30d payers5
MethodGET
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Official US Treasury reporting rates of exchange — government FX reference rates for ~170 currencies, in units of foreign currency per 1 USD, for the latest quarter. Use for accounting-grade and exotic-currency conversion the market /api/v1/forex feed lacks. Filter with `?currency=Euro`. Updated quarterly. From the US Treasury (FiscalData). From x402stock

Tags: bazaar

Call contract

Method
GET
Input
query parameters
Output
json
Last paid call
2026-10-09
Input example from Bazaar metadata
{
  "currency": "Euro"
}
Output example
{
  "as_of": "2026-03-31T00:00:00.000Z",
  "count": 168,
  "note": "Official US Treasury reporting rates of exchange — units of foreign currency per 1 USD. Updated quarterly; use for accounting/reference conversion, not live FX (see /api/v1/forex for market rates).",
  "rates": [
    {
      "country": "Euro Zone",
      "country_currency": "Euro Zone-Euro",
      "currency": "Euro",
      "effective_date": "2026-03-31",
      "exchange_rate": 0.924
    },
    {
      "country": "Japan",
      "country_currency": "Japan-Yen",
      "currency": "Yen",
      "effective_date": "2026-03-31",
      "exchange_rate": 149.32
    }
  ],
  "record_date": "2026-03-31",
  "series": "rates_of_exchange",
  "source": "us_treasury"
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/39905.json for the price and payment options.
  3. Pay. Call GET https://x402stock.xyz/api/v1/exchange-rates. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.02 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
6 calls · 5 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.020x3070Fbb3803819fB5BdfE9286fdc6325A877fA85300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "amountUsd": 0.02,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "as_of": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "count": {
          "type": "number"
        },
        "note": {
          "type": "string"
        },
        "rates": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "country": {
                "type": "string"
              },
              "country_currency": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              },
              "effective_date": {
                "type": "string"
              },
              "exchange_rate": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "country",
              "currency",
              "country_currency",
              "exchange_rate",
              "effective_date"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "record_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "series": {
          "type": "string"
        },
        "source": {
          "const": "us_treasury",
          "type": "string"
        }
      },
      "required": [
        "source",
        "as_of",
        "series",
        "note",
        "record_date",
        "count",
        "rates"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "as_of": null,
    "count": 0,
    "note": "string",
    "rates": [
      {
        "country": "string",
        "country_currency": "string",
        "currency": "string",
        "effective_date": "string",
        "exchange_rate": null
      }
    ],
    "record_date": null,
    "series": "string",
    "source": "string"
  },
  "type": "string"
}

Examples

curl
curl "https://x402stock.xyz/api/v1/exchange-rates"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402stock.xyz/api/v1/exchange-rates");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://x402stock.xyz/api/v1/exchange-rates")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
x402stock.xyz
Endpoint
https://x402stock.xyz/api/v1/exchange-rates
Machine-readable
/resources/39905.json