A signed, timestamped euro reference exchange rate from the European Central Bank, for any
A signed, timestamped euro reference exchange rate from the European Central Bank, for any pair among the ~30 currencies it publishes. Returns the rate, the ECB reference date, the underlying euro base rates, a SHA-256 of the exact bytes returned, and an Ed25519 signature. Non-EUR pairs are crossed via EUR and that is stated in the response, because it is our calculation and not an ECB figure.
10000 (raw units)
price
2
calls / 30d
1
unique payers
2026-08-26
updated
Provider
soren.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xaDc3A47EFbD82Ed724a0E9A3D08D5A1A8e6586fd",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 120
},
{
"scheme": "exact",
"network": "base",
"payTo": "0xaDc3A47EFbD82Ed724a0E9A3D08D5A1A8e6586fd",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 120
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"pair": "EURUSD"
},
"type": "http"
},
"output": {
"example": {
"provenance": {
"observed_at": "<ISO-8601 UTC>",
"signature": {
"algorithm": "Ed25519",
"value": "<base64>"
},
"upstream_sha256": "<hex>"
},
"source": {
"name": "European Central Bank",
"notice": "Available free of charge from the ECB."
},
"value": {
"derivation": "<text>",
"pair": "EURUSD",
"rate": "<number>",
"reference_date": "<YYYY-MM-DD>"
}
},
"type": "json"
}
},
"routeTemplate": "/v1/oracle/fx",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"pair": {
"description": "Six-letter currency pair, e.g. EURUSD. Any pair among the ECB reference currencies; non-EUR pairs are crossed via EUR.",
"examples": [
"EURUSD"
],
"type": "string"
}
},
"required": [
"pair"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
}
}
}
}
}Use it
curl
curl "https://soren.com/v1/oracle/fx" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://soren.com/v1/oracle/fx");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://soren.com/v1/oracle/fx")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/9086.json, and this resource appears in /discovery/resources and /discovery/search.