{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apiacre-com/json-schema/apiacre-com-ecb-fx-reference-input-schema.json",
  "title": "EcbFxReferenceInput",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apiacre-com-openapi.json#/components/schemas/EcbFxReferenceInput",
  "properties": {
    "base_currency": {
      "type": "string",
      "enum": [
        "AUD",
        "BRL",
        "CAD",
        "CHF",
        "CNY",
        "CZK",
        "DKK",
        "EUR",
        "GBP",
        "HKD",
        "HUF",
        "IDR",
        "ILS",
        "INR",
        "ISK",
        "JPY",
        "KRW",
        "MXN",
        "MYR",
        "NOK",
        "NZD",
        "PHP",
        "PLN",
        "RON",
        "SEK",
        "SGD",
        "THB",
        "TRY",
        "USD",
        "ZAR"
      ],
      "maxLength": 3,
      "minLength": 3,
      "title": "Base Currency",
      "description": "Three-letter currency converted from, for example GBP"
    },
    "quote_currency": {
      "type": "string",
      "enum": [
        "AUD",
        "BRL",
        "CAD",
        "CHF",
        "CNY",
        "CZK",
        "DKK",
        "EUR",
        "GBP",
        "HKD",
        "HUF",
        "IDR",
        "ILS",
        "INR",
        "ISK",
        "JPY",
        "KRW",
        "MXN",
        "MYR",
        "NOK",
        "NZD",
        "PHP",
        "PLN",
        "RON",
        "SEK",
        "SGD",
        "THB",
        "TRY",
        "USD",
        "ZAR"
      ],
      "maxLength": 3,
      "minLength": 3,
      "title": "Quote Currency",
      "description": "Three-letter currency converted to, for example USD"
    },
    "amount": {
      "type": "string",
      "maxLength": 24,
      "minLength": 1,
      "pattern": "^(?:0|[1-9][0-9]{0,14})(?:\\.[0-9]{1,8})?$",
      "title": "Amount",
      "description": "Positive decimal amount with at most 15 integer and 8 fractional digits",
      "default": "1"
    },
    "on_or_before": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "On Or Before",
      "description": "Optional date whose latest available ECB reference observation is used; omit for the latest available common business day"
    }
  },
  "type": "object",
  "required": [
    "base_currency",
    "quote_currency"
  ]
}