Market Data · x402

Official daily foreign exchange reference rates from the European Central Bank (~30 cur…

Official daily foreign exchange reference rates from the European Central Bank (~30 currencies vs EUR, published each business day around 16:00 CET), rebased on request to any listed currency via EUR cross-rates and filtered to a requested symbol list; return…

by 4yearcycle.com · discovered, not yet claimed by its owner · updated 2026-10-11

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

Official daily foreign exchange reference rates from the European Central Bank (~30 currencies vs EUR, published each business day around 16:00 CET), rebased on request to any listed currency via EUR cross-rates and filtered to a requested symbol list; returns the reference date, the rate table and the ECB source attribution.

Tags: fx · forex · exchange-rates · currencies · ecb · bazaar

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/26942.json for the price and payment options.
  3. Pay. Call GET https://4yearcycle.com/x402/fx-rates. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with 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.005 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Calls (30d)
8 · 8 unique payers (third-party data from the public x402 Bazaar)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.0050x9862ca83b72aB95521F457aFf6e6EFb03d8164C3300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x9862ca83b72aB95521F457aFf6e6EFb03d8164C3",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "amountUsd": 0.005,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "properties": {
        "base": {
          "description": "Base currency of the rate table (ISO 4217)",
          "type": "string"
        },
        "date": {
          "description": "ECB reference date of the rates (YYYY-MM-DD, last business day)",
          "type": "string"
        },
        "notice": {
          "description": "ECB attribution notice: the underlying data is available free of charge from the ECB; cross-rates are computed values",
          "type": "string"
        },
        "rates": {
          "additionalProperties": {
            "type": "number"
          },
          "description": "Units of each quoted currency per 1 unit of base, e.g. rates.USD = USD per base. ECB publishes vs EUR; other bases are cross-rates via EUR rounded to 6 decimals.",
          "type": "object"
        },
        "source": {
          "description": "Always \"ECB\" — European Central Bank euro foreign exchange reference rates",
          "type": "string"
        }
      },
      "required": [
        "base",
        "date",
        "rates",
        "source",
        "notice"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "base": "string",
    "date": "string",
    "notice": "string",
    "rates": {},
    "source": "string"
  },
  "type": "string"
}

Examples

curl
curl "https://4yearcycle.com/x402/fx-rates"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://4yearcycle.com/x402/fx-rates");
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://4yearcycle.com/x402/fx-rates")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
4yearcycle.com
Endpoint
https://4yearcycle.com/x402/fx-rates
Machine-readable
/resources/26942.json