# FX Spot Price Oracle

> FX Spot Price Oracle is a paid API for AI agents from hcrb.in, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Returns a real-time foreign exchange spot price for a given currency pair, including the rate, inverse, timestamp, and source.

## Facts

- Endpoint: POST https://hcrb.in/v1/tools/fx-spot-price-oracle/call?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fx-spot-price-oracle-35745e86
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d-aoVptB23tyI-PTgpPAL

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 fx-spot-price-oracle-35745e86 -d '<json body>'
```

Example prompt: What's the current spot exchange rate for USD to EUR? I need the live rate, the inverse, and when it was last updated.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call FX spot rate lookup with cryptographic payment receipts (x402/USDC on Base) and no subscription required. Ideal for agents that make infrequent or low-volume FX queries and want verifiable, receipted micropayments rather than a monthly API key billing arrangement. Not suited for tick-by-tick high-frequency trading feeds or historical rate series.

## Known failure modes

- Unsupported or malformed currency pair returns an error or empty result
- Network or oracle downtime may return a stale or unavailable rate
- Payment failure via x402 (insufficient USDC balance) blocks the call
- Rate limiting beyond the 3 free calls/day without payment
- Invalid pair format (e.g. wrong delimiter or unknown ticker) causes rejection

## How this service works

Offline deterministic checks (no ML, no scraping) for business identifiers and rental due-diligence, paid per call via x402 (gasless EIP-3009 USDC on Base). Checksum-verifiable (IBAN, LEI, VAT, ABA, ISBN, SEDOL…) vs format-only (EIN, IFSC, SWIFT/BIC…) — every response returns a scope field. Non-custodial, signed receipts. First 3 calls/day free.

## Output

A JSON object containing the currency pair string, the spot rate as a number, the inverse rate, a Unix timestamp of when the price was fetched, and the data source identifier.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "base",
    "quote"
   ],
   "properties": {
    "base": {
     "type": "string",
     "description": "Base currency symbol (e.g. USDC, EUR, GBP, JPY)."
    },
    "quote": {
     "type": "string",
     "description": "Quote currency symbol (e.g. USD, EUR, JPY)."
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "required": [
   "pair",
   "rate",
   "inverse",
   "timestamp",
   "source"
  ],
  "properties": {
   "pair": {
    "type": "string"
   },
   "rate": {
    "type": "number"
   },
   "source": {
    "type": "string"
   },
   "inverse": {
    "type": "number"
   },
   "timestamp": {
    "type": "number"
   }
  }
 },
 "example": {
  "valid": true,
  "reason": "checksum valid"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fx-spot-price-oracle-35745e86/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hcrb.in](https://www.zero.xyz/host/hcrb.in/llms.txt)
