# Foundry FX Rate

> Foundry FX Rate is a paid API for AI agents from minty-sprout.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Converts currency amounts or lists exchange rates using European Central Bank data via the Frankfurter API.

## Facts

- Endpoint: POST https://minty-sprout.onrender.com/v1/fx-rate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-fx-rate-12dd5c92
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R_qDiWKBx8uJTyNa_M67X

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 foundry-fx-rate-12dd5c92 -d '<json body>'
```

Example prompt: What's 350 USD worth in EUR right now, using the European Central Bank rate?

## When to prefer this

Prefer this endpoint when you need reliable, authoritative currency exchange rates sourced from the European Central Bank, especially for financial calculations, invoice conversion, or travel budgeting. It is well-suited for single-call conversions between two currencies or bulk rate lookups for a base currency against multiple targets. Choose this over generic forex APIs when ECB provenance and rate accuracy matter.

## Known failure modes

- Unsupported or misspelled currency code returns an error or empty rates object
- Malformed input string (wrong format) may result in a parse error or unexpected output
- ECB does not publish rates on weekends or holidays — rate may reflect last business day
- Network timeout if the upstream Frankfurter API is unavailable
- Amount field missing when only listing rates will return rates without conversion

## How this service works

Currency exchange rates from the European Central Bank: convert an amount or list rates. Input: '100 USD to EUR'.

## Output

Returns a JSON object with the base currency, target currency rate(s), the converted amount (if an amount was specified), the date of the rate, and attribution to the European Central Bank via Frankfurter. Example: {base: 'USD', date: '2026-10-30', rates: {EUR: 89.51}, amount: 100, source: 'European Central Bank via Frankfurter'}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 8000,
   "description": "'<amount> <CUR> to <CUR>' or 'USD EUR,GBP'"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "USD",
  "date": "2026-10-30",
  "rates": {
   "EUR": 89.51
  },
  "amount": 100,
  "source": "European Central Bank via Frankfurter"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-fx-rate-12dd5c92/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minty-sprout.onrender.com](https://www.zero.xyz/host/minty-sprout.onrender.com/llms.txt)
