{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cryptodataapi-com/json-schema/cryptodataapi-com-quant-regime-history-response-schema.json",
  "title": "QuantRegimeHistoryResponse",
  "description": "Pre-signed download for the full market 6-regime history Parquet.\n\nOne hourly row per bar from 2020 to yesterday (market scope), each carrying\nthe full distribution over the 6 regimes at three horizons — now, 4h and 24h\n(`p_now_*`, `p_4h_*`, `p_24h_*`, keyed by regime id per `regime_map`). The\ndeep history is labelled by the same model that serves live (no hindsight);\nthe `source` column marks the Binance-archive vs live-Hyperliquid seam.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cryptodataapi-com-openapi.json#/components/schemas/QuantRegimeHistoryResponse",
  "properties": {
    "download_url": {
      "type": "string",
      "title": "Download Url",
      "description": "Pre-signed URL to the Parquet file"
    },
    "expires_in": {
      "type": "integer",
      "title": "Expires In",
      "description": "Seconds until the download URL expires"
    },
    "format": {
      "type": "string",
      "title": "Format",
      "default": "parquet"
    },
    "rows": {
      "type": "integer",
      "title": "Rows",
      "description": "Number of hourly rows in the file"
    },
    "start": {
      "type": "integer",
      "title": "Start",
      "description": "First row timestamp (ms epoch)"
    },
    "end": {
      "type": "integer",
      "title": "End",
      "description": "Last row timestamp (ms epoch)"
    },
    "model_version": {
      "type": "string",
      "title": "Model Version"
    },
    "horizons": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Horizons",
      "description": "Distribution horizons, e.g. [now, 4h, 24h]"
    },
    "regime_map": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Regime Map",
      "description": "regime_id -> label"
    },
    "columns": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Columns",
      "description": "Parquet column order"
    },
    "generated_at": {
      "type": "string",
      "title": "Generated At",
      "description": "When the file was last rebuilt (ISO 8601)"
    }
  },
  "type": "object",
  "required": [
    "download_url",
    "expires_in",
    "rows",
    "start",
    "end",
    "model_version",
    "horizons",
    "regime_map",
    "columns",
    "generated_at"
  ]
}