Returns JSON with currency exchange rates: official ECB euro reference FX rates (free at ecb.europa.eu) for about 30 currencies, rebased to any base as cross rates, with optional conversion.
Use when you need currency exchange rates, fx rates or forex conversion of an amount between two currencies like EUR and GBP.
Do not use for live trading quotes, intraday or crypto rates (ECB rates update once per business day).
Price: 0.005 USDC per call (x402, eip155:8453). Typical response time: 1500 ms (p95).
POST https://x402-gateway.blackwoodstate8.workers.dev/v1/fx-rates. A request without payment gets 402 Payment Required with the
PAYMENT-REQUIRED header; any x402 client signs an EIP-3009 authorization and retries with
PAYMENT-SIGNATURE (or X-PAYMENT). Invalid input is answered with 400 and not charged.
curl -i -X POST https://x402-gateway.blackwoodstate8.workers.dev/v1/fx-rates -H 'content-type: application/json' -d '{"base":"USD","symbols":["EUR","BRL","JPY","GBP"],"amount":100}'
| Pay to | 0xFf918CFB0690FdEd4224DBDab916F6E6F78882b7 |
|---|---|
| Asset | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (USDC) |
| Amount | 5000 atomic units (0.005 USDC) |
| Authorization window | 60 s |
Streamable HTTP at https://x402-gateway.blackwoodstate8.workers.dev/mcp, tool blackwood_fx_rates. Payment goes in
_meta["x402/payment"]; without it the tool returns the payment requirements.
| Field | Type | Meaning |
|---|---|---|
base (optional) | string | Base currency, ISO 4217 (EUR when omitted), e.g. USD |
symbols (optional) | array | Currencies to return, e.g. ["BRL", "JPY"] (all ECB currencies when omitted) |
amount (optional) | number | Amount in the base currency to convert, e.g. 100 |
Example:
{
"base": "USD",
"symbols": [
"EUR",
"BRL",
"JPY",
"GBP"
],
"amount": 100
}
Real example:
{
"date": "2026-10-16",
"base": "USD",
"rates": {
"EUR": 0.888652,
"BRL": 5.08282,
"JPY": 158.02,
"GBP": 0.749889
},
"amount": 100,
"converted": {
"EUR": 88.87,
"BRL": 508.28,
"JPY": 15802,
"GBP": 74.99
},
"attribution": "Source: European Central Bank (ECB) euro foreign exchange reference rates, available free of charge at ecb.europa.eu",
"note": "ECB reference rates are for information purposes only, published once per business day; they are not trading rates. Rates against a base other than EUR and converted amounts are calculated by Blackwood State from the ECB euro rates."
}
{
"type": "object",
"properties": {
"date": {
"type": "string"
},
"base": {
"type": "string"
},
"rates": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number"
}
},
"amount": {
"type": [
"number",
"null"
]
},
"converted": {
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number"
}
},
{
"type": "null"
}
]
},
"attribution": {
"type": "string"
},
"note": {
"type": "string"
},
"next": {
"type": "object",
"properties": {
"service": {
"type": "string",
"description": "Service id of the suggested next paid call"
},
"tool": {
"type": "string",
"description": "MCP tool name of the same call"
},
"method": {
"type": "string",
"enum": [
"GET",
"POST"
]
},
"url": {
"type": "string",
"description": "Paid route of the next call"
},
"useWhen": {
"type": "string",
"description": "When the next call is the right one"
},
"sample": {
"type": "string",
"description": "Free fixed sample of the whole family"
}
},
"required": [
"service",
"tool",
"method",
"url",
"useWhen",
"sample"
],
"additionalProperties": false,
"description": "Suggested next paid call in the same family (call it in a loop when the task continues)"
}
},
"required": [
"date",
"base",
"rates",
"amount",
"converted",
"attribution",
"note"
],
"additionalProperties": false
}Free schema and example: GET https://x402-gateway.blackwoodstate8.workers.dev/v1/fx-rates.
OpenAPI 3.1 · llms.txt · All services