{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/owlsinsight-com/json-schema/owlsinsight-com-odds-history-response-schema.json",
  "title": "OddsHistoryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/owlsinsight-com-odds-api-openapi.yml#/components/schemas/OddsHistoryResponse",
  "properties": {
    "data": {
      "properties": {
        "book": {
          "type": "string"
        },
        "dataPoints": {
          "format": "double",
          "type": "number"
        },
        "eventId": {
          "type": "string"
        },
        "history": {
          "items": {
            "$ref": "#/$defs/HistoryPoint"
          },
          "type": "array"
        },
        "market": {
          "type": "string"
        },
        "openingLine": {
          "properties": {
            "point": {
              "description": "Same column, same query and same type as `history[].point`: the stored\nline, which may arrive as a decimal string such as `\"-1.50\"`."
            },
            "price": {
              "format": "double",
              "type": "number"
            },
            "timestamp": {
              "type": "string"
            }
          },
          "type": "object",
          "x-owls-required": [
            "price",
            "timestamp"
          ]
        },
        "side": {
          "type": "string"
        },
        "timeRange": {
          "properties": {
            "durationHours": {
              "format": "double",
              "type": "number"
            },
            "end": {
              "type": "string"
            },
            "mode": {
              "type": "string",
              "x-extensible-enum": [
                "absolute",
                "hours",
                "opening"
              ]
            },
            "start": {
              "type": "string"
            }
          },
          "type": "object",
          "x-owls-required": [
            "start",
            "end",
            "mode",
            "durationHours"
          ]
        }
      },
      "type": "object",
      "x-owls-required": [
        "eventId",
        "book",
        "market",
        "side",
        "timeRange",
        "history",
        "dataPoints"
      ]
    },
    "success": {
      "type": "boolean"
    }
  },
  "type": "object",
  "x-owls-required": [
    "success",
    "data"
  ],
  "$defs": {
    "HistoryPoint": {
      "properties": {
        "point": {
          "description": "The stored line, which may arrive as a decimal string such as `\"-1.50\"`."
        },
        "price": {
          "format": "double",
          "type": "number"
        },
        "timestamp": {
          "type": "string"
        }
      },
      "type": "object",
      "x-owls-required": [
        "timestamp",
        "price"
      ]
    }
  }
}