{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/owlsinsight-com/json-schema/owlsinsight-com-history-odds-response-schema.json",
  "title": "HistoryOddsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/owlsinsight-com-historical-data-api-openapi.yml#/components/schemas/HistoryOddsResponse",
  "properties": {
    "data": {
      "properties": {
        "count": {
          "format": "double",
          "type": "number"
        },
        "dataQuality": {
          "$ref": "#/$defs/HistoryOddsDataQuality",
          "description": "What these rows are and what was left out of them."
        },
        "eventId": {
          "type": "string"
        },
        "limit": {
          "format": "double",
          "type": "number"
        },
        "offset": {
          "format": "double",
          "type": "number"
        },
        "opening": {
          "type": "boolean"
        },
        "snapshots": {
          "items": {
            "$ref": "#/$defs/OddsSnapshot"
          },
          "type": "array"
        },
        "timeRange": {
          "properties": {
            "end": {
              "type": [
                "string",
                "null"
              ]
            },
            "start": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": "object",
          "x-owls-required": [
            "start",
            "end"
          ]
        }
      },
      "type": "object",
      "x-owls-required": [
        "eventId",
        "opening",
        "timeRange",
        "snapshots",
        "count",
        "limit",
        "offset"
      ]
    },
    "meta": {
      "description": "`archive` when a completed game was served from the history archive store,\n`live` when read from the database. The payload shape is identical either\nway. Note this one object mixes casings: `source` and `archiveBuiltAt` are\ncamelCase, the ignored report is snake_case, and that is the wire.",
      "properties": {
        "archiveBuiltAt": {
          "type": "string"
        },
        "ignored_params": {
          "description": "Query parameters the endpoint did not honour, sorted. Absent when none were.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "ignored_reasons": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Why, keyed by parameter name; only for entries that have a reason.",
          "type": "object"
        },
        "source": {
          "type": "string",
          "x-extensible-enum": [
            "archive",
            "live"
          ]
        }
      },
      "type": "object",
      "x-owls-required": [
        "source"
      ]
    },
    "success": {
      "type": "boolean"
    }
  },
  "type": "object",
  "x-owls-required": [
    "success",
    "data"
  ],
  "$defs": {
    "HistoryOddsDataQuality": {
      "description": "What `/history/odds` says about the rows it just returned. Both flags are\nalways `true`; they exist so the accompanying notes have somewhere to hang.",
      "properties": {
        "mainLineNote": {
          "type": "string"
        },
        "mainLineOnly": {
          "description": "Each row is one book's main line for that market and side.",
          "type": "boolean"
        },
        "note": {
          "type": "string"
        },
        "suspectPricesExcluded": {
          "description": "Unusable rows (a destroyed price, or no market label) are excluded.",
          "type": "boolean"
        }
      },
      "type": "object",
      "x-owls-required": [
        "suspectPricesExcluded",
        "note",
        "mainLineOnly",
        "mainLineNote"
      ]
    },
    "OddsSnapshot": {
      "properties": {
        "book": {
          "type": "string"
        },
        "inPlay": {
          "description": "Whether the game was in play when the row was captured.\n\nThree states, and the third is an ABSENT KEY: `true` in play, `false`\npre-game, absent when the phase was not recorded. Absent covers every row\nwritten before 2026-09-20, every esports row, and rows from sources that\ndo not derive a phase. Do NOT read a missing key as `false`: that files\nunknown-phase rows as pre-game.",
          "type": "boolean"
        },
        "market": {
          "type": "string"
        },
        "point": {
          "description": "The line (spread or total) as stored: a decimal string such as \"-1.50\",\nbecause the archive keeps two-decimal precision as text. Prefer\n`pointValue`, which is the same line already parsed. null for moneylines."
        },
        "pointValue": {
          "description": "`point` as a number, always present: `-1.5` beside `\"-1.50\"`. `null` when\nthe line is null or could not be parsed, and never `0` for either, so\n`null` and a genuine zero line stay distinguishable.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "price": {
          "description": "American odds (integer). For decimal-native books (e.g. 1xBet) this is the\nAmerican conversion; see `priceDecimal` for the exact upstream value.",
          "format": "double",
          "type": "number"
        },
        "priceDecimal": {
          "description": "Exact upstream decimal (European) odds at full precision, e.g. 1xBet 2.387.\nPopulated for decimal-native books; null for American-native books.\nAvailable on snapshots archived after the price-precision fix (2026-07).",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "recordedAt": {
          "type": "string"
        },
        "side": {
          "type": "string"
        }
      },
      "type": "object",
      "x-owls-required": [
        "book",
        "market",
        "side",
        "price",
        "point",
        "recordedAt"
      ]
    }
  }
}