{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/skylit-ai/json-schema/skylit-ai-symbol-heatmap-schema.json",
  "title": "SymbolHeatmap",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/skylit-ai-openapi.yml#/components/schemas/SymbolHeatmap",
  "type": "object",
  "required": [
    "symbol",
    "asOf",
    "spot",
    "previousClose",
    "priceChange",
    "priceChangePercent",
    "expirations",
    "strikes"
  ],
  "properties": {
    "symbol": {
      "type": "string",
      "description": "Canonical ticker for the returned data."
    },
    "asOf": {
      "type": "string",
      "format": "date-time",
      "description": "RFC3339 timestamp of the snapshot actually returned (nearest to the requested instant)."
    },
    "spot": {
      "type": "number",
      "description": "On `/v1/heatmap`, the latest underlying price at the time of the\nrequest, which can be newer than the board. On `/v1/historical`\nand in stream frames, the spot the board was computed at. The\nboard's own spot is `previousClose + priceChange`.\n"
    },
    "previousClose": {
      "type": "number"
    },
    "priceChange": {
      "type": "number",
      "description": "The board's spot minus previous close (the board's spot, not `spot`, on `/v1/heatmap`)."
    },
    "priceChangePercent": {
      "type": "number"
    },
    "expirations": {
      "type": "array",
      "description": "Expiration dates (YYYY-MM-DD) contributing to each strike's net value.",
      "items": {
        "type": "string",
        "format": "date"
      }
    },
    "strikes": {
      "type": "array",
      "description": "Per-strike nodes, ordered by strike ascending.",
      "items": {
        "$ref": "#/$defs/StrikeNode"
      }
    },
    "matrix": {
      "type": "array",
      "description": "Present only with `layout=matrix`. One row per entry in `strikes`,\none column per entry in `expirations`: `matrix[i][j]` is the\nexposure at strike i for expiration j.\n",
      "items": {
        "type": "array",
        "items": {
          "type": "number"
        }
      }
    },
    "velocity": {
      "$ref": "#/$defs/VelocityDetail"
    }
  },
  "$defs": {
    "NodeVelocity": {
      "type": "object",
      "properties": {
        "strike": {
          "type": "number"
        },
        "expiration": {
          "type": "string"
        },
        "currentValue": {
          "type": "number"
        },
        "delta1Min": {
          "type": "number"
        },
        "delta5Min": {
          "type": "number"
        },
        "delta10Min": {
          "type": "number"
        },
        "delta15Min": {
          "type": "number"
        },
        "delta1Hour": {
          "type": "number"
        },
        "delta4Hour": {
          "type": "number"
        },
        "delta1Day": {
          "type": "number"
        },
        "percent1Min": {
          "type": "number"
        },
        "percent5Min": {
          "type": "number"
        },
        "percent10Min": {
          "type": "number"
        },
        "percent15Min": {
          "type": "number"
        },
        "percent1Hour": {
          "type": "number"
        },
        "percent4Hour": {
          "type": "number"
        },
        "percent1Day": {
          "type": "number"
        },
        "velocity": {
          "type": "number",
          "description": "Average change per minute over 5 minutes."
        },
        "trend": {
          "type": "string",
          "enum": [
            "increasing",
            "decreasing",
            "stable"
          ]
        },
        "history": {
          "type": "array",
          "items": {
            "type": "number"
          }
        },
        "belowFloor": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Additive. Timeframes (\"1m\"..\"1d\") whose base was below the mover floor ($100K gamma, $500K vanna), sent only while a mover floor is applied (none is at present). Their percent is withheld and reads 0 (not a real no-change); the delta is kept. Absent when nothing is withheld."
        }
      }
    },
    "StrikeNode": {
      "type": "object",
      "required": [
        "strike",
        "value",
        "nodeType"
      ],
      "properties": {
        "strike": {
          "type": "number",
          "description": "Strike price."
        },
        "value": {
          "type": "number",
          "description": "Net exposure for the selected `metric` at this strike (summed across the returned expirations)."
        },
        "nodeType": {
          "type": "string",
          "description": "Skylit's node classification for this strike.",
          "enum": [
            "king",
            "gatekeeper",
            "pika",
            "barney",
            "significant",
            "normal"
          ]
        },
        "velocityPct": {
          "type": "number",
          "deprecated": true,
          "description": "Deprecated: use `velocityPctSigned` (same value) or\n`velocityPctMagnitude`. Live signed percent change of this strike's\nnet value vs the board 5 minutes earlier, `(v - pv) / |pv| x 100`.\nPresent on `/v1/heatmap` only; omitted on `/v1/historical`.\n"
        },
        "velocityPctSigned": {
          "type": "number",
          "description": "Same as `velocityPct`: `(v - pv) / |pv| x 100` of the strike's net\nvalue vs 5 minutes earlier; negative exposure growing is negative.\n0 when there was no prior value. `/v1/heatmap` only.\n"
        },
        "velocityPctMagnitude": {
          "type": "number",
          "description": "`(|v| - |pv|) / |pv| x 100` of the same inputs: the magnitude change,\nthe metric the app's velocity uses (exposure growing in either sign\nis positive). 0 when there was no prior value. `/v1/heatmap` only.\n"
        }
      }
    },
    "VelocityAnchor": {
      "type": "object",
      "required": [
        "ts",
        "bucket"
      ],
      "properties": {
        "ts": {
          "type": "integer",
          "format": "int64",
          "description": "Build time of the anchor snapshot, Unix ms."
        },
        "bucket": {
          "type": "integer",
          "format": "int64",
          "description": "Its 30 s bucket, Unix seconds."
        }
      }
    },
    "VelocityDetail": {
      "type": "object",
      "description": "Present only with `velocity=nodes` (`/v1/heatmap`). See *Velocity* in\nthe API description.\n",
      "required": [
        "lookbacks",
        "expirations",
        "rank",
        "rankExpirations",
        "movers",
        "nodes"
      ],
      "properties": {
        "asOf": {
          "type": "string",
          "format": "date-time",
          "description": "The instant the velocity describes. Absent when stale."
        },
        "lookbacks": {
          "type": "object",
          "description": "Per timeframe (`1m`..`1d`), the anchor snapshot compared against. A missing timeframe had none.",
          "additionalProperties": {
            "$ref": "#/$defs/VelocityAnchor"
          }
        },
        "expirations": {
          "type": "array",
          "description": "Expirations with per-node velocity.",
          "items": {
            "type": "string",
            "format": "date"
          }
        },
        "rank": {
          "type": "string",
          "enum": [
            "nearest",
            "all",
            "requested"
          ]
        },
        "rankExpirations": {
          "type": "array",
          "description": "Expirations the movers and halo were ranked over.",
          "items": {
            "type": "string",
            "format": "date"
          }
        },
        "movers": {
          "type": "object",
          "description": "Every timeframe `1m`..`1d` is present; lists are empty when that timeframe had no lookback.",
          "additionalProperties": {
            "$ref": "#/$defs/VelocityMovers"
          }
        },
        "halo": {
          "$ref": "#/$defs/VelocityHalo"
        },
        "nodes": {
          "type": "array",
          "description": "Per-node velocity for the returned strikes x expirations (non-zero nodes).",
          "items": {
            "$ref": "#/$defs/VelocityNode"
          }
        },
        "stale": {
          "type": "boolean",
          "description": "True when no velocity was available (the block is empty)."
        },
        "reason": {
          "type": "string",
          "description": "Why a stale block is empty (reserved for historical velocity).",
          "enum": [
            "no_frame",
            "point_reads_unavailable",
            "busy"
          ]
        }
      }
    },
    "VelocityHalo": {
      "type": "object",
      "description": "Per-strike direction per timeframe. `strikes[i]` corresponds to character i of each vector.",
      "properties": {
        "strikes": {
          "type": "array",
          "items": {
            "type": "number"
          }
        },
        "vectors": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "front": {
                "type": "string",
                "description": "Nearest expiration: `+`, `-` or `0` per strike."
              },
              "net": {
                "type": "string",
                "description": "Sum across the ranked expirations: `+`, `-` or `0` per strike."
              }
            }
          }
        }
      }
    },
    "VelocityMovers": {
      "type": "object",
      "required": [
        "topRisers",
        "topFallers"
      ],
      "properties": {
        "topRisers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NodeVelocity"
          }
        },
        "topFallers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NodeVelocity"
          }
        },
        "new": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NodeVelocity"
          },
          "description": "Additive. NEW positions: strikes with no exposure at the lookback that now hold at least $100K (gamma) or $500K (vanna), top 10 by size now. Only strikes the lookback covered: a strike that entered the strike window because spot moved, or a new expiration, is not NEW. In this list's own timeframe, delta is the exposure now (from zero) and the percent is 0; the other timeframes are filled as for movers. Only while a mover floor is applied (none is at present) does a strike that rises from below that floor to at least it also count, with delta now minus then and percent 0. Absent when the server does not compute positions; [] when there are none."
        },
        "closed": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NodeVelocity"
          },
          "description": "Additive. CLOSED positions: strikes that held at least $100K (gamma) or $500K (vanna) at the lookback and now hold none, top 10 by size then. Only strikes still in the strike window on an expiration still ranked: an expired expiration, or a strike that left the window, is not CLOSED. currentValue is 0, and in this list's own timeframe delta is minus the exposure then and the percent is -100; the other timeframes are filled as for movers. Only while a mover floor is applied (none is at present) does a strike that falls from at least that floor to below it also count; currentValue is then the exposure now, and delta and percent are the real change. Absent when the server does not compute positions."
        }
      }
    },
    "VelocityNode": {
      "type": "object",
      "required": [
        "strike",
        "expiration",
        "value",
        "delta",
        "pct"
      ],
      "properties": {
        "strike": {
          "type": "number"
        },
        "expiration": {
          "type": "string",
          "format": "date"
        },
        "value": {
          "type": "number",
          "description": "Exposure now."
        },
        "delta": {
          "type": "object",
          "description": "Per timeframe, `now - then`. A timeframe is absent when unknown (no lookback, or the node had no value then).",
          "additionalProperties": {
            "type": "number"
          }
        },
        "pct": {
          "type": "object",
          "description": "Per timeframe, `(|now| - |then|) / |then| x 100`. Absent when unknown. Only while a mover floor is applied (none is at present) is it also absent when `|then|` is below that floor ($100K gamma, $500K vanna); `delta` is still given.",
          "additionalProperties": {
            "type": "number"
          }
        }
      }
    }
  }
}