{
  "x402Version": 2,
  "id": 26942,
  "slug": "26942",
  "resource": "https://4yearcycle.com/x402/fx-rates",
  "description": "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.",
  "type": "http",
  "serviceName": "ECB FX Rates",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x9862ca83b72aB95521F457aFf6e6EFb03d8164C3",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "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"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "base": "USD",
            "symbols": "EUR,GBP,JPY,CHF"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "base": "USD",
            "date": "2026-08-17",
            "notice": "ECB euro foreign exchange reference rates, available free of charge at ecb.europa.eu; non-EUR bases are cross-rates computed via EUR.",
            "rates": {
              "CHF": 0.809885,
              "EUR": 0.862589,
              "GBP": 0.737514,
              "JPY": 159.225395
            },
            "source": "ECB"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "additionalProperties": false,
                "properties": {
                  "base": {
                    "default": "EUR",
                    "description": "Base currency as ISO 4217 code (case-insensitive). EUR or any of the ~30 ECB-listed currencies (USD, GBP, JPY, CHF, ...); non-EUR bases are computed as cross-rates via EUR. Default: EUR.",
                    "examples": [
                      "EUR",
                      "USD",
                      "GBP"
                    ],
                    "pattern": "^[A-Za-z]{3}$",
                    "type": "string"
                  },
                  "symbols": {
                    "description": "Optional comma-separated ISO 4217 codes to restrict the rate table to (case-insensitive); codes the ECB does not list are ignored. Empty = all listed currencies.",
                    "examples": [
                      "USD,GBP,JPY",
                      "CHF"
                    ],
                    "type": "string"
                  }
                },
                "required": [],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "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"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "fx",
    "forex",
    "exchange-rates",
    "currencies",
    "ecb",
    "bazaar"
  ],
  "sourceHost": "4yearcycle.com",
  "lastUpdated": "2026-10-11T01:18:51.229Z",
  "quality": {
    "calls30d": 8,
    "uniquePayers30d": 8,
    "lastCalledAt": "2026-10-11T01:18:50.618Z"
  },
  "metadata": {
    "serviceName": "ECB FX Rates",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "base": "USD",
              "symbols": "EUR,GBP,JPY,CHF"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "base": "USD",
              "date": "2026-08-17",
              "notice": "ECB euro foreign exchange reference rates, available free of charge at ecb.europa.eu; non-EUR bases are cross-rates computed via EUR.",
              "rates": {
                "CHF": 0.809885,
                "EUR": 0.862589,
                "GBP": 0.737514,
                "JPY": 159.225395
              },
              "source": "ECB"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "additionalProperties": false,
                  "properties": {
                    "base": {
                      "default": "EUR",
                      "description": "Base currency as ISO 4217 code (case-insensitive). EUR or any of the ~30 ECB-listed currencies (USD, GBP, JPY, CHF, ...); non-EUR bases are computed as cross-rates via EUR. Default: EUR.",
                      "examples": [
                        "EUR",
                        "USD",
                        "GBP"
                      ],
                      "pattern": "^[A-Za-z]{3}$",
                      "type": "string"
                    },
                    "symbols": {
                      "description": "Optional comma-separated ISO 4217 codes to restrict the rate table to (case-insensitive); codes the ECB does not list are ignored. Empty = all listed currencies.",
                      "examples": [
                        "USD,GBP,JPY",
                        "CHF"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "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"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "4yearcycle.com",
    "manifest_name": "4yearcycle.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "base": "string",
      "date": "string",
      "notice": "string",
      "rates": {},
      "source": "string"
    },
    "type": "string"
  }
}