# Greeneris FX Official Rates

> Greeneris FX Official Rates is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Retrieves official US Treasury quarterly foreign exchange rates (rate per USD) for one or more currencies, optionally filtered by date

## Facts

- Endpoint: GET https://data.greeneris.io/v1/fx/official
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/greeneris-fx-official-rates-467d160f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SlHlePSAYB9P9chB2KZpO

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 greeneris-fx-official-rates-467d160f
```

Example prompt: What is the official US Treasury exchange rate for Euro Zone-Euro as of 2025-06-30?

## When to prefer this

Use this endpoint when you need official, government-authoritative USD exchange rates (US Treasury quarterly rates) rather than real-time market rates — ideal for compliance, invoicing, financial reporting, or any scenario requiring a defensible official rate source. Prefer this over market FX feeds when audit-readiness or official sourcing matters.

## Known failure modes

- Invalid date format returns an error — must be YYYY-MM-DD
- Unknown or misspelled Country-Currency descriptor returns empty or error
- No rate available before the requested date returns empty result set
- Requesting more than 30 currencies in one call may be rejected
- HTTP 402 returned if payment not provided — must pay 0.005 USDC on Base via x402 protocol before retrying

## How this service works

Official US Treasury Reporting Rates of Exchange: the legal USD conversion rates required for FBAR/8938 filings and US federal accounting, covering ~170 currencies including exotics absent from ECB feeds. Query: ?currencies=Euro Zone-Euro,Japan-Yen (optional, all if omitted) and ?date=YYYY-MM-DD (latest quarterly rate at or before that date, default today). Returns units of foreign currency per 1 USD. Source updates quarterly; served with a 7-day cache.

## Output

Returns a JSON object with the as-of date, count of results, and an array of rate records each containing country, currency, country_currency descriptor, record_date, effective_date, and rate_per_usd. Source is US Treasury FiscalData quarterly official rates.

## 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",
     "properties": {
      "date": {
       "type": "string",
       "description": "YYYY-MM-DD; latest quarterly rate at or before this date (default today)"
      },
      "currencies": {
       "type": "string",
       "description": "Comma-separated Treasury 'Country-Currency' descriptors, max 30 (optional -> all)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "as_of": "2026-06-30",
  "count": 2,
  "rates": [
   {
    "country": "Euro Zone",
    "currency": "Euro",
    "record_date": "2026-06-30",
    "rate_per_usd": 0.877,
    "effective_date": "2026-06-30",
    "country_currency": "Euro Zone-Euro"
   }
  ],
  "source": "US Treasury FiscalData, Reporting Rates of Exchange (quarterly official rates, public domain)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/greeneris-fx-official-rates-467d160f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
