{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/exchangerate-dev/json-schema/exchangerate-dev-range-response-schema.json",
  "title": "RangeResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/exchangerate-dev-range-api-openapi.yml#/components/schemas/RangeResponse",
  "properties": {
    "result": {
      "type": "string",
      "title": "Result",
      "default": "success"
    },
    "base": {
      "type": "string",
      "title": "Base"
    },
    "start_date": {
      "type": "string",
      "title": "Start Date"
    },
    "end_date": {
      "type": "string",
      "title": "End Date"
    },
    "data": {
      "items": {
        "$ref": "#/$defs/RangeRow"
      },
      "type": "array",
      "title": "Data"
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Next Cursor"
    },
    "has_more": {
      "type": "boolean",
      "title": "Has More",
      "default": false
    },
    "notice": {
      "type": "string",
      "title": "Notice"
    }
  },
  "type": "object",
  "required": [
    "base",
    "start_date",
    "end_date",
    "data",
    "notice"
  ],
  "$defs": {
    "RangeRow": {
      "properties": {
        "date": {
          "type": "string",
          "title": "Date"
        },
        "rates": {
          "additionalProperties": {
            "type": "number"
          },
          "type": "object",
          "title": "Rates"
        },
        "source": {
          "$ref": "#/$defs/Source"
        },
        "is_forward_filled": {
          "type": "boolean",
          "title": "Is Forward Filled"
        },
        "derived_symbols": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Derived Symbols"
        }
      },
      "type": "object",
      "required": [
        "date",
        "rates",
        "source",
        "is_forward_filled",
        "derived_symbols"
      ],
      "title": "RangeRow"
    },
    "Source": {
      "type": "string",
      "enum": [
        "live",
        "ecb_daily",
        "market_daily"
      ],
      "title": "Source",
      "description": "Public `source` enum — wire contract (D2). NO `cached` value (cache lives in X-Cache).\n\n`ecb_daily` is the only reference source (October 2026).\n`market_daily` labels the stored daily close of the live market feed, for the currencies with\nno reference fix, in date history and 1d time series; it is never a live rate."
    }
  }
}