# US Treasury Reporting Rate of Exchange API

> US Treasury Reporting Rate of Exchange API is a paid API for AI agents from reference-data-api.onrender.com, paid per call via x402, $0.0305/call, status unknown (last checked 2026-11-21).

Returns the official quarterly US Treasury foreign exchange rate (foreign currency per USD) for a given currency and date, with optional amount conversion to USD.

## Facts

- Endpoint: GET https://reference-data-api.onrender.com/v1/treasury-rate?utm_source=zero.xyz
- Price: $0.0305/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-treasury-reporting-rate-of-exchange-api-53ee11cf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ehj5VGyVnP81nerLjAzBp

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-reporting-rate-of-exchange-api-53ee11cf
```

Example prompt: What's the official US Treasury Reporting Rate of Exchange for EUR on 2024-03-15? Also convert 2500 EUR to USD using that rate.

## When to prefer this

Use this endpoint when you need the official US government-sanctioned foreign exchange rate specifically for federal accounting, US tax reporting, or compliance purposes — not for market rates or real-time FX trading. It is the authoritative source for IRS and federal agency reporting obligations. Prefer this over general FX APIs when the regulatory requirement is specifically the Treasury quarterly rate.

## Known failure modes

- Unsupported or unrecognized currency code returns an error or empty result
- Date outside available Treasury reporting quarters may return no data
- Malformed date format (not YYYY-MM-DD) causes a validation error
- Invalid amount string (non-numeric) causes a conversion error
- Rate not yet published for a future quarter returns no data

## How this service works

Returns the official quarterly US Treasury Reporting Rate of Exchange (foreign currency per USD) for a currency and date, as used for US federal accounting and tax reporting, with optional conversion.

## Output

Returns the official quarterly US Treasury Reporting Rate of Exchange for the requested currency and date, including the rate expressed as foreign currency units per USD, the applicable quarter period, and optionally the USD-equivalent converted amount if an input amount was provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "currency"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "YYYY-MM-DD, default today"
      },
      "amount": {
       "type": "string",
       "description": "Amount in foreign currency to convert to USD"
      },
      "currency": {
       "type": "string",
       "description": "ISO code (EUR, CHF, JPY...) or country name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-treasury-reporting-rate-of-exchange-api-53ee11cf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from reference-data-api.onrender.com](https://www.zero.xyz/host/reference-data-api.onrender.com/llms.txt)
