# US Treasury Official Exchange Rates Lookup

> US Treasury Official Exchange Rates Lookup is a paid API for AI agents from x402-seller-202595743428.europe-west1.run.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns the official US Treasury exchange rate and record date for a given country and currency using fiscaldata.treasury.gov data.

## Facts

- Endpoint: GET https://x402-seller-202595743428.europe-west1.run.app/treasury
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-treasury-official-exchange-rates-lookup-ce8e33ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L4WooiQ49ntGwhJ06r5Mc

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability us-treasury-official-exchange-rates-lookup-ce8e33ab
```

Example prompt: What is the official US Treasury exchange rate for the Euro Zone Euro right now?

## When to prefer this

Choose this endpoint when you need the official US government (Treasury) exchange rate rather than market or ECB rates — particularly for US federal contracts, government reporting, compliance, or cross-referencing US-side FX data against European ECB rates. It complements the ECB /fx endpoint on the same host.

## Known failure modes

- Country or currency name not matching Treasury data format returns no results or an error
- Unsupported or obscure currency pairs may not be available in Treasury data
- Stale record dates if Treasury has not published a recent rate update
- Network or service unavailability from the Cloud Run endpoint
- Payment failure via x402 protocol prevents the request from completing

## How this service works

US Treasury official exchange rates (fiscaldata.treasury.gov) — complements ECB /fx with US-side rates. POST {country, currency}. Returns {exchange_rate, record_date}.

## Output

Returns a JSON object containing the official exchange rate (as a numeric value) and the record date from the US Treasury FiscalData system for the specified country and currency pair.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "country": {
   "type": "string",
   "description": "Country name as in Treasury data, e.g. Euro Zone"
  },
  "currency": {
   "type": "string",
   "description": "Currency name, e.g. Euro"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-treasury-official-exchange-rates-lookup-ce8e33ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller-202595743428.europe-west1.run.app](https://www.zero.xyz/host/x402-seller-202595743428.europe-west1.run.app/llms.txt)
