# FastX402 Currency Pair Rate

> FastX402 Currency Pair Rate is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-27).

Returns the current exchange rate between two currency codes (e.g. USD to EUR) as a pay-per-call lookup.

## Facts

- Endpoint: GET https://fastx402.tools/currency-pair-rate?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-currency-pair-rate-7bfd50b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zSdVsF9_0RTCsgzLbbRG9

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 fastx402-currency-pair-rate-7bfd50b2
```

Example prompt: What's the current exchange rate from USD to EUR?

## When to prefer this

Choose this endpoint when you need a simple, real-time spot exchange rate between two standard currency codes without an API key or account setup, especially when operating in a pay-per-call agent context using x402 micropayments on Base or Solana.

## Known failure modes

- Invalid or unsupported currency code returns an error (e.g. unknown three-letter code)
- Missing required query parameters (base or quote) results in a 400-level error
- Payment failure or insufficient USDC balance causes a 402 Payment Required response
- Network or upstream data provider unavailability may return a 5xx error

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object containing the base currency code, quote currency code, the numeric exchange rate (how many units of quote per 1 unit of base), and the date of the rate.

## 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",
     "required": [
      "base",
      "quote"
     ],
     "properties": {
      "base": {
       "type": "string",
       "description": "Three-letter base currency code, such as USD"
      },
      "quote": {
       "type": "string",
       "description": "Three-letter quote currency code, such as EUR"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "base": {
       "type": "string"
      },
      "date": {
       "type": "string"
      },
      "rate": {
       "type": "number"
      },
      "quote": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "USD",
  "date": "2026-01-15",
  "rate": 0.8621,
  "quote": "EUR"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-currency-pair-rate-7bfd50b2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
