FX
Market Data · x402 · early usage
Convert an amount between currencies using public daily/historical FX rates backed by E…
Convert an amount between currencies using public daily/historical FX rates backed by ECB reference data.
by api.edifiedlab.com · discovered, not yet claimed by its owner · updated 2026-09-19
30d calls1
30d payers1
MethodPOST
Outputjson
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Convert an amount between currencies using public daily/historical FX rates backed by ECB reference data.
Tags: finance · foreign-exchange · currency · rates · x402 · bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-09-19
Input example from Bazaar metadata
{
"action": "convert",
"amount": 100,
"from": "USD",
"to": "EUR"
}Output example
{
"action": "convert",
"amount": 100,
"converted": 92,
"from": "USD",
"payload": "fx_convert",
"rate": 0.92,
"source": "ecb_reference",
"to": "EUR"
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/33404.jsonfor the price and payment options. - Pay. Call
GET https://api.edifiedlab.com/v1/market/fx-convert. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.011 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base
- Demand
- 1 calls · 1 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.011 | 0x5037546753d64F77A6fA95B6f85659B6a4A7F6FD | 600s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x5037546753d64F77A6fA95B6f85659B6a4A7F6FD",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "11000",
"amountUsd": 0.011,
"maxTimeoutSeconds": 600
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"action": {
"enum": [
"convert",
"latest",
"historical",
"currencies"
],
"type": "string"
},
"amount": {
"type": [
"number",
"null"
]
},
"base": {
"type": "string"
},
"converted": {
"type": [
"number",
"null"
]
},
"currencies": {
"type": "object"
},
"date": {
"type": [
"string",
"null"
]
},
"from": {
"type": "string"
},
"payload": {
"const": "fx_convert",
"type": "string"
},
"rate": {
"type": [
"number",
"null"
]
},
"rates": {
"type": "object"
},
"source": {
"enum": [
"ecb_reference",
"local_identity"
],
"type": "string"
},
"to": {
"type": "string"
}
},
"required": [
"payload",
"action",
"source"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"action": "convert",
"amount": 0,
"base": "string",
"converted": 0,
"currencies": {},
"date": "string",
"from": "string",
"payload": "string",
"rate": 0,
"rates": {},
"source": "ecb_reference",
"to": "string"
},
"type": "string"
}Examples
curl
curl -X POST 'https://api.edifiedlab.com/v1/market/fx-convert' -H 'Content-Type: application/json' --data '{"action":"convert","amount":100,"from":"USD","to":"EUR"}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATUREJavaScript
const res = await fetch("https://api.edifiedlab.com/v1/market/fx-convert", {
"method": "POST",
"headers": {
"content-type": "application/json"
},
"body": "{\"action\":\"convert\",\"amount\":100,\"from\":\"USD\",\"to\":\"EUR\"}"
});
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
import json
res = httpx.request("POST", "https://api.edifiedlab.com/v1/market/fx-convert", json=json.loads("{\"action\":\"convert\",\"amount\":100,\"from\":\"USD\",\"to\":\"EUR\"}"))
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- api.edifiedlab.com
- Endpoint
- https://api.edifiedlab.com/v1/market/fx-convert
- Machine-readable
/resources/33404.json