{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stockmarketscan-com/json-schema/stockmarketscan-com-options-flow-day-schema.json",
  "title": "OptionsFlowDay",
  "description": "Aggregated unusual-options flow of one symbol on one trading day.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stockmarketscan-com-openapi.json#/components/schemas/OptionsFlowDay",
  "type": "object",
  "required": [
    "symbol",
    "data_date",
    "stock_price",
    "call_contracts",
    "call_volume",
    "call_open_interest",
    "call_avg_vol_oi",
    "call_avg_iv",
    "call_avg_delta",
    "call_total_premium",
    "put_contracts",
    "put_volume",
    "put_open_interest",
    "put_avg_vol_oi",
    "put_avg_iv",
    "put_avg_delta",
    "put_total_premium",
    "total_volume",
    "total_oi",
    "call_put_volume_ratio",
    "call_put_oi_ratio",
    "net_delta",
    "avg_days_to_expiry",
    "consecutive_days"
  ],
  "additionalProperties": false,
  "properties": {
    "symbol": {
      "type": "string"
    },
    "data_date": {
      "type": "string",
      "format": "date"
    },
    "stock_price": {
      "type": [
        "number",
        "null"
      ],
      "description": "Underlying price."
    },
    "call_contracts": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Number of unusual call contracts."
    },
    "call_volume": {
      "type": [
        "integer",
        "null"
      ]
    },
    "call_open_interest": {
      "type": [
        "integer",
        "null"
      ]
    },
    "call_avg_vol_oi": {
      "type": [
        "number",
        "null"
      ],
      "description": "Average volume/OI ratio of the calls."
    },
    "call_avg_iv": {
      "type": [
        "number",
        "null"
      ],
      "description": "Average implied volatility of the calls, in percent."
    },
    "call_avg_delta": {
      "type": [
        "number",
        "null"
      ]
    },
    "call_total_premium": {
      "type": [
        "number",
        "null"
      ],
      "description": "Sum of last_price * volume * 100 for calls, USD."
    },
    "put_contracts": {
      "type": [
        "integer",
        "null"
      ]
    },
    "put_volume": {
      "type": [
        "integer",
        "null"
      ]
    },
    "put_open_interest": {
      "type": [
        "integer",
        "null"
      ]
    },
    "put_avg_vol_oi": {
      "type": [
        "number",
        "null"
      ]
    },
    "put_avg_iv": {
      "type": [
        "number",
        "null"
      ]
    },
    "put_avg_delta": {
      "type": [
        "number",
        "null"
      ],
      "description": "Average absolute delta of the puts."
    },
    "put_total_premium": {
      "type": [
        "number",
        "null"
      ]
    },
    "total_volume": {
      "type": [
        "integer",
        "null"
      ]
    },
    "total_oi": {
      "type": [
        "integer",
        "null"
      ]
    },
    "call_put_volume_ratio": {
      "type": [
        "number",
        "null"
      ],
      "description": "Call volume divided by put volume. Null without puts."
    },
    "call_put_oi_ratio": {
      "type": [
        "number",
        "null"
      ],
      "description": "Call open interest divided by put open interest."
    },
    "net_delta": {
      "type": [
        "number",
        "null"
      ]
    },
    "avg_days_to_expiry": {
      "type": [
        "number",
        "null"
      ]
    },
    "consecutive_days": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Consecutive trading days up to this one with the same call/put regime."
    }
  }
}