# Spraay Gateway FX Oracle

> Spraay Gateway FX Oracle is a paid API for AI agents from gateway.spraay.app, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-13).

Returns stablecoin-based foreign exchange rates, optionally filtered by a base currency.

## Facts

- Endpoint: GET https://gateway.spraay.app/api/v1/oracle/fx
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gateway-spraay-app-3c757016
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W9rFgZWdvTOcbO70LmBlA

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 gateway-spraay-app-3c757016
```

Example prompt: What are the current stablecoin FX rates with USDC as the base currency?

## When to prefer this

Use this endpoint when you need real-time stablecoin-anchored FX rates for cross-border crypto payments, DeFi applications, or stablecoin-denominated invoicing — especially when operating within the Spraay/x402 payment ecosystem on Base or Solana.

## Known failure modes

- Invalid or unsupported base currency returns an error or empty rates
- Payment not provided or insufficient USDC results in HTTP 402
- Rate data temporarily unavailable due to oracle downtime
- Malformed query parameter returns 400 bad request

## How this service works

Stablecoin FX rates.

## Output

A rates object containing exchange rate values for various currency pairs relative to the requested base stablecoin (e.g. USDC), suitable for use in cross-border payment calculations or DeFi pricing logic.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "base": "USDC"
  }
 }
}
```

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "base": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "rates": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gateway-spraay-app-3c757016/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.spraay.app](https://www.zero.xyz/host/gateway.spraay.app/llms.txt)
