{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sportwizzard-com/json-schema/sportwizzard-com-api-response-historical-odds-row-schema.json",
  "title": "ApiResponseHistoricalOddsRow",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sportwizzard-com-openapi.json#/components/schemas/ApiResponseHistoricalOddsRow",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/HistoricalOddsRow"
      }
    },
    "nextCursor": {
      "type": "string"
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "HistoricalOddsRow": {
      "type": "object",
      "properties": {
        "eventId": {
          "type": "string"
        },
        "sportsbook": {
          "type": "string"
        },
        "market": {
          "type": "string"
        },
        "marketSubtype": {
          "type": "string"
        },
        "period": {
          "type": "string"
        },
        "selection": {
          "type": "string"
        },
        "outcomeCode": {
          "type": "string",
          "enum": [
            "OVER",
            "UNDER",
            "YES",
            "NO",
            "WIN",
            "DRAW",
            "NEITHER",
            "WIN_OR_DRAW",
            "EITHER",
            "ODD",
            "EVEN",
            "SCORE",
            "RANGE",
            "OTHER",
            "LABEL"
          ],
          "description": "Canonical outcome code. WIN is the leg's side or named participant winning (moneyline, spread, a futures team); SCORE is an exact score (read side1Score/side2Score); LABEL is a categorical answer only the selection label explains."
        },
        "statType": {
          "type": "string",
          "description": "Canonical stat type (synonyms folded, keyed by sport), e.g. points, rec_yards, threes_made. Stat props only."
        },
        "side": {
          "type": "integer",
          "format": "int32",
          "enum": [
            1,
            2
          ],
          "description": "Which event side (participants[].side) the outcome is about: 1, 2 or absent. A player prop's side is the player's team's side. Absent for totals, draws, neither, futures and anything without a side."
        },
        "outcomeParticipants": {
          "type": "array",
          "description": "Who the outcome names, as the source sent it. Absent when the outcome is about a side only (read participants on that side).",
          "items": {
            "$ref": "#/$defs/OutcomeParticipant"
          }
        },
        "side1Score": {
          "type": "integer",
          "format": "int32",
          "description": "Exact-score (SCORE) outcomes: side 1's score."
        },
        "side2Score": {
          "type": "integer",
          "format": "int32",
          "description": "Exact-score (SCORE) outcomes: side 2's score."
        },
        "playerId": {
          "type": "string",
          "description": "Resolved player id on player props. Returned only to an API key on a paid (non-Free) plan."
        },
        "playerName": {
          "type": "string",
          "description": "The player name as the source sent it (player props only)."
        },
        "line": {
          "type": "number",
          "format": "double"
        },
        "priceAmerican": {
          "type": "integer",
          "format": "int32"
        },
        "priceDecimal": {
          "type": "number",
          "format": "double"
        },
        "dfsMultiplier": {
          "type": "number",
          "format": "double"
        },
        "asOf": {
          "type": "string"
        },
        "selectionPrice": {
          "type": "array",
          "description": "Price runs, oldest first.",
          "items": {
            "$ref": "#/$defs/PriceHistoryRow"
          }
        }
      }
    },
    "Meta": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer",
          "format": "int32"
        },
        "updated": {
          "type": "string",
          "format": "date-time"
        },
        "note": {
          "type": "string"
        }
      }
    },
    "OutcomeParticipant": {
      "type": "object",
      "description": "A competitor or player the outcome names, as the source sent it. A side 1/2 competitor is the event participant on that side.",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "competitor",
            "player"
          ]
        },
        "name": {
          "type": "string",
          "description": "The name as the source sent it."
        },
        "competitorId": {
          "type": "string",
          "description": "Set for a named competitor outside the event's sides (a futures winner). Returned only to an API key on a paid (non-Free) plan."
        },
        "playerId": {
          "type": "string",
          "description": "Set for a resolved player. Returned only to an API key on a paid (non-Free) plan."
        }
      }
    },
    "PriceHistoryRow": {
      "type": "object",
      "description": "One run of an unchanged price, oldest first. The last row's lastObservedAt is the selection's last sighting.",
      "properties": {
        "observedAt": {
          "type": "string",
          "format": "date-time",
          "description": "When this price was first seen."
        },
        "lastObservedAt": {
          "type": "string",
          "format": "date-time",
          "description": "When this price was last seen unchanged."
        },
        "priceAmerican": {
          "type": "integer",
          "format": "int32"
        },
        "priceDecimal": {
          "type": "number",
          "format": "double"
        },
        "dfsMultiplier": {
          "type": "number",
          "format": "double",
          "description": "DFS pick'em rows, instead of a price."
        },
        "suspended": {
          "type": "boolean",
          "description": "Present (true) only while the line was suspended."
        },
        "liquidityTier": {
          "type": "string",
          "description": "Exchange selections only: the liquidity tier during this run."
        }
      }
    }
  }
}