Official US Treasury reporting rates of exchange — government FX reference rates for ~170
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
20000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-14
updated
Provider
x402stock.xyz · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "20000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"currency": "Euro"
},
"type": "http"
},
"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"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"queryParams": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"currency": {
"maxLength": 64,
"minLength": 1,
"type": "string"
}
},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"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"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
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 headerMachine-readable
Everything on this page is also available as clean JSON at /resources/5301.json, and this resource appears in /discovery/resources and /discovery/search.