Convert an amount between currencies using ECB exchange rates
Convert an amount between currencies using ECB exchange rates. Supports all major currencies. Returns converted amount and rate.
21600 (raw units)
price
2
calls / 30d
1
unique payers
2026-09-18
updated
Provider
api.strale.io · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "base",
"payTo": "0x66D7C2F952362BFB24FD7F02a9beC9c754ea83bC",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "21600",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"amount": {
"description": "Amount to convert",
"required": true,
"type": "number"
},
"from": {
"description": "Source currency (ISO 4217)",
"required": true,
"type": "string"
},
"to": {
"description": "Target currency (ISO 4217)",
"required": true,
"type": "string"
}
},
"type": "http"
},
"output": {}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://api.strale.io/x402/currency-convert" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.strale.io/x402/currency-convert");
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://api.strale.io/x402/currency-convert")
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/8559.json, and this resource appears in /discovery/resources and /discovery/search.