{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/skylit-ai/json-schema/skylit-ai-vol-history-response-schema.json",
  "title": "VolHistoryResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/skylit-ai-openapi.yml#/components/schemas/VolHistoryResponse",
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "type": "object",
      "required": [
        "symbols",
        "missing",
        "from",
        "to"
      ],
      "properties": {
        "from": {
          "type": "string",
          "format": "date"
        },
        "to": {
          "type": "string",
          "format": "date"
        },
        "symbols": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "symbol",
              "dates",
              "columns"
            ],
            "properties": {
              "symbol": {
                "type": "string"
              },
              "dates": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "date"
                }
              },
              "columns": {
                "type": "object",
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                }
              }
            }
          }
        },
        "missing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/VolMissing"
          }
        }
      }
    },
    "meta": {
      "$ref": "#/$defs/VolMeta"
    }
  },
  "$defs": {
    "Attribution": {
      "type": "object",
      "required": [
        "text",
        "url"
      ],
      "description": "Whether and how this response's data may be published. See\n`/legal/api#sharing`. An Agent or MCP client should never publish\ndata where `shareable` is false, regardless of `shareClass`.\n`required`, `license`, `shareable` and `shareClass` are always sent\non `/v1/options/*` and absent from the short form.\n",
      "properties": {
        "text": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "required": {
          "type": "boolean"
        },
        "license": {
          "type": "string",
          "enum": [
            "personal",
            "commercial",
            "connected_app"
          ]
        },
        "shareable": {
          "type": "boolean"
        },
        "shareClass": {
          "type": "string",
          "enum": [
            "derived",
            "derived_levels_only",
            "raw"
          ],
          "description": "\"raw\" (e.g. option quotes, greeks) must never be auto-published."
        },
        "terms": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "VolMeta": {
      "type": "object",
      "required": [
        "module",
        "marketState",
        "frozen",
        "cached"
      ],
      "properties": {
        "module": {
          "type": "string",
          "description": "Which endpoint answered (iv, cones, screener, ...)."
        },
        "asOf": {
          "type": "string",
          "format": "date-time",
          "description": "When Tempest computed the newest value in this response."
        },
        "sessionDate": {
          "type": "string",
          "format": "date",
          "description": "The trading session (ET) that asOf belongs to. The close state is stamped 15:59 ET and always belongs to its own session."
        },
        "marketState": {
          "type": "string",
          "enum": [
            "pre_open",
            "open",
            "post_close",
            "closed"
          ],
          "description": "US equity session at request time."
        },
        "frozen": {
          "type": "boolean",
          "description": "True while Tempest serves the previous close (outside regular hours)."
        },
        "publishedAt": {
          "type": "string",
          "format": "date-time",
          "description": "When Tempest last published to the API."
        },
        "cached": {
          "type": "boolean"
        },
        "attribution": {
          "$ref": "#/$defs/Attribution"
        }
      }
    },
    "VolMissing": {
      "type": "object",
      "required": [
        "symbol",
        "reason"
      ],
      "properties": {
        "symbol": {
          "type": "string"
        },
        "reason": {
          "type": "string",
          "enum": [
            "not_covered",
            "no_history"
          ]
        }
      }
    }
  }
}