# QuickBuild FX Rate

> QuickBuild FX Rate is a paid API for AI agents from quickbuild.quynguyenbac.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-21).

Returns live or historical foreign-exchange rates from a base currency to one or more target currencies, with optional amount conversion.

## Facts

- Endpoint: GET https://quickbuild.quynguyenbac.workers.dev/api/fx/rate?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quickbuild-fx-rate-37e4d597
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6iyg-CBR_qwV387xHkJxm

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 quickbuild-fx-rate-37e4d597
```

Example prompt: What's the live exchange rate from USD to EUR, GBP, JPY, and INR right now, and how much would 500 USD convert to in each of those currencies?

## When to prefer this

Choose this endpoint when you need live forex rates updated approximately every minute (via Coinbase) for 160+ ISO 4217 currencies including precious metals (XAU/XAG), or ECB reference rates for any trading day back to 1999. It handles both spot conversion and historical lookups in a single API, requires no authentication, and returns structured JSON with converted amounts. Prefer it over static rate tables or cryptocurrency-only price feeds when you need broad fiat currency coverage.

## Known failure modes

- Invalid currency code returns HTTP 400 (not charged)
- Historical date before 1999-01-04 may return no ECB data
- Currencies not covered by ECB Frankfurter (~30 majors) may be missing from historical requests
- Coinbase live feed unavailable falls back to exchangerate-api daily rates
- Requesting more than 50 target currencies at once may be rejected

## How this service works

Landing pages ($15), Google Sheets/Apps Script automation ($10), scrapers, scripts & Telegram bots (from $15), broken-link + sitemap audit reports ($10). See a working demo first, pay after.

## Output

A JSON object containing: the base currency, a timestamp (asOf/fetchedAt), the source used (coinbase, exchangerate-api, or frankfurter), date label, count of returned currencies, a rates map (currency code → units per 1 base unit), and if an amount was provided, a converted map (currency code → converted amount). Also includes a missing array for any invalid or unavailable codes.

## 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": [],
     "properties": {
      "to": {
       "type": "string",
       "description": "Comma-separated target codes (max 50) or \"all\". Default: EUR,GBP,JPY,CNY,CHF,CAD,AUD,INR,KRW,SGD,HKD,MXN,BRL,VND."
      },
      "date": {
       "type": "string",
       "description": "Optional YYYY-MM-DD for historical ECB reference rates (since 1999-01-04). Omit for live rates."
      },
      "from": {
       "type": "string",
       "description": "Base currency, ISO 4217 code (default USD)."
      },
      "amount": {
       "type": "number",
       "minimum": 0,
       "description": "Amount in `from` to convert (default 1)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": "string"
      },
      "date": {
       "type": "string"
      },
      "from": {
       "type": "string"
      },
      "count": {
       "type": "integer"
      },
      "rates": {
       "type": "object",
       "description": "code -> units of that currency per 1 `from`"
      },
      "amount": {
       "type": "number"
      },
      "source": {
       "type": "string"
      },
      "missing": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "converted": {
       "type": "object",
       "description": "code -> amount converted"
      },
      "fetchedAt": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asOf": "2026-10-21T01:20:03.000Z",
  "date": "latest",
  "from": "USD",
  "count": 3,
  "rates": {
   "EUR": 0.8906,
   "JPY": 158.278,
   "VND": 25876.28
  },
  "amount": 100,
  "source": "coinbase",
  "missing": [],
  "converted": {
   "EUR": 89.06,
   "JPY": 15827.8,
   "VND": 2587628.46
  },
  "fetchedAt": "2026-10-21T01:20:03.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quickbuild-fx-rate-37e4d597/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quickbuild.quynguyenbac.workers.dev](https://www.zero.xyz/host/quickbuild.quynguyenbac.workers.dev/llms.txt)
