{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/owlsinsight-com/json-schema/owlsinsight-com-day-schedule-response-schema.json",
  "title": "DayScheduleResponse",
  "description": "Response from GET /api/v1/schedule. `games` are in start order (larger volume first\namong games starting together).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/owlsinsight-com-schedule-and-results-api-openapi.yml#/components/schemas/DayScheduleResponse",
  "properties": {
    "count": {
      "format": "double",
      "type": "number"
    },
    "date": {
      "description": "The day asked for (or today in `tz`), YYYY-MM-DD.",
      "type": "string"
    },
    "days": {
      "format": "double",
      "type": "number"
    },
    "games": {
      "items": {
        "$ref": "#/$defs/DayScheduleGame"
      },
      "type": "array"
    },
    "meta": {
      "$ref": "#/$defs/DayScheduleMeta"
    },
    "sports": {
      "description": "The sports asked for (all nine by default).",
      "items": {
        "type": "string",
        "x-extensible-enum": [
          "mlb",
          "nba",
          "ncaaf",
          "nfl",
          "nhl",
          "soccer",
          "tennis",
          "ufc",
          "wnba"
        ]
      },
      "type": "array"
    },
    "success": {
      "type": "boolean"
    },
    "tz": {
      "type": "string"
    }
  },
  "type": "object",
  "x-owls-required": [
    "success",
    "date",
    "days",
    "tz",
    "sports",
    "count",
    "games",
    "meta"
  ],
  "$defs": {
    "DayScheduleBuildWindow": {
      "description": "The days the schedule is built for: three UTC days back to nine ahead.",
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        }
      },
      "type": "object",
      "x-owls-required": [
        "from",
        "to"
      ]
    },
    "DayScheduleCompetitor": {
      "description": "One side of a game. Team sports list away then home; tennis and UFC list the\nfirst then the second competitor, with `side` null.",
      "properties": {
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "score": {
          "description": "Null before the game has a score.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "sets": {
          "description": "Tennis only: games won in each set, in set order.",
          "items": {
            "format": "double",
            "type": "number"
          },
          "type": "array"
        },
        "short": {
          "type": "string"
        },
        "side": {
          "type": [
            "string",
            "null"
          ],
          "x-extensible-enum": [
            "away",
            "home"
          ]
        },
        "winPrice": {
          "description": "Kalshi price to buy this side to win, 0 to 1, so the two sides can add to a\nlittle over 1. Null once the market closes, and null when the market is too thin\nto price.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "winner": {
          "description": "Set once the game is final; null before then, and on a level final score.",
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "type": "object",
      "x-owls-required": [
        "side",
        "name",
        "short",
        "code",
        "score",
        "winner",
        "winPrice"
      ]
    },
    "DayScheduleGame": {
      "description": "One game on the day schedule.",
      "properties": {
        "competition": {
          "description": "Tennis tournament or UFC event name; null elsewhere.",
          "type": [
            "string",
            "null"
          ]
        },
        "competitors": {
          "description": "Always two entries; see {@link DayScheduleCompetitor} for the order.",
          "items": {
            "$ref": "#/$defs/DayScheduleCompetitor"
          },
          "type": "array"
        },
        "drawPrice": {
          "description": "Soccer only: Kalshi price for the draw.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "eventId": {
          "description": "The game's eventId on /api/v1/{sport}/odds when it was found there, else null.",
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "description": "Stable for the life of the game, even when it is rescheduled.",
          "type": "string"
        },
        "kalshiEventTicker": {
          "type": [
            "string",
            "null"
          ]
        },
        "league": {
          "type": "string"
        },
        "liveUpdatedAt": {
          "description": "When this game's live data (status, score, clock) was last read; null before it has any.",
          "type": [
            "string",
            "null"
          ]
        },
        "round": {
          "description": "Tennis round, playoff \"Game N\", or UFC weight class; null when none.",
          "type": [
            "string",
            "null"
          ]
        },
        "sport": {
          "type": "string",
          "x-extensible-enum": [
            "mlb",
            "nba",
            "ncaaf",
            "nfl",
            "nhl",
            "soccer",
            "tennis",
            "ufc",
            "wnba"
          ]
        },
        "startCheck": {
          "$ref": "#/$defs/DayScheduleStartCheck"
        },
        "startTime": {
          "description": "Scheduled start, ISO 8601 UTC.",
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/DayScheduleStatus"
        },
        "statusDetail": {
          "description": "Clock or result detail: \"Q2 8:12\", \"Top 5th\", \"45'\", \"Final/OT\", \"KO/TKO R1 3:58\".",
          "type": [
            "string",
            "null"
          ]
        },
        "updatedAt": {
          "type": "string"
        },
        "volume": {
          "description": "Kalshi volume across the game's winner markets, in contracts. Games starting together are ordered by it.",
          "format": "double",
          "type": "number"
        }
      },
      "type": "object",
      "x-owls-required": [
        "id",
        "sport",
        "league",
        "competition",
        "round",
        "startTime",
        "status",
        "statusDetail",
        "competitors",
        "drawPrice",
        "kalshiEventTicker",
        "startCheck",
        "eventId",
        "liveUpdatedAt",
        "volume",
        "updatedAt"
      ]
    },
    "DayScheduleMeta": {
      "description": "Freshness of a day-schedule answer. `status`, first match wins:\n- `no-data`: nothing built for the range.\n- `stale`: built more than 3 minutes ago, the schedule not refreshed for 5\n  minutes, or live scores more than 90 seconds old while a game has started and\n  not finished.\n- `partial`: the range reaches outside `buildWindow`, a day in range was not\n  built, or the list behind the build was cut short.\n- `ok`.",
      "properties": {
        "ageSeconds": {
          "description": "Seconds since `cacheTimestamp`.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "buildWindow": {
          "anyOf": [
            {
              "$ref": "#/$defs/DayScheduleBuildWindow"
            },
            {
              "type": "null"
            }
          ]
        },
        "cacheTimestamp": {
          "description": "Build time of the least recently built day in range; null when none is known.",
          "type": [
            "string",
            "null"
          ]
        },
        "liveAgeSeconds": {
          "description": "Seconds since live data (scores, clocks) was last read in full.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "source": {
          "description": "Where the schedule comes from, currently \"kalshi\".",
          "type": "string"
        },
        "status": {
          "type": "string",
          "x-extensible-enum": [
            "no-data",
            "ok",
            "partial",
            "stale"
          ]
        },
        "timestamp": {
          "type": "string"
        },
        "window": {
          "$ref": "#/$defs/DayScheduleWindow",
          "description": "The UTC range served: local midnight of `date` to local midnight `days` later."
        }
      },
      "type": "object",
      "x-owls-required": [
        "source",
        "status",
        "cacheTimestamp",
        "ageSeconds",
        "liveAgeSeconds",
        "buildWindow",
        "window",
        "timestamp"
      ]
    },
    "DayScheduleStartCheck": {
      "description": "The game's start time compared with independent sources.",
      "properties": {
        "differsByMinutes": {
          "description": "The larger of the two gaps below, in minutes; null when neither differs.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "flashscore": {
          "$ref": "#/$defs/DayScheduleStartCheckResult",
          "description": "Against an independent scores feed."
        },
        "flashscoreMinutes": {
          "description": "Minutes between this start and the scores feed's start, when they differ.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "sportsbooks": {
          "$ref": "#/$defs/DayScheduleStartCheckResult",
          "description": "Against the sportsbooks on /odds."
        },
        "sportsbooksMinutes": {
          "description": "Minutes between this start and the sportsbooks' start, when they differ.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        }
      },
      "type": "object",
      "x-owls-required": [
        "sportsbooks",
        "flashscore",
        "differsByMinutes"
      ]
    },
    "DayScheduleStartCheckResult": {
      "description": "How an independent source's start time compares with the schedule's.",
      "type": "string",
      "x-extensible-enum": [
        "agree",
        "differs",
        "missing"
      ]
    },
    "DayScheduleStatus": {
      "description": "A game's state on the day schedule. Open: a new value must not break a reader.\n- `unconfirmed`: the scheduled start passed long ago and no live data confirms the\n  game started or ended, or live data for a game in progress stopped updating for\n  more than 10 minutes.\n- `time_tbd`: the start time is not set yet.",
      "type": "string",
      "x-extensible-enum": [
        "cancelled",
        "delayed",
        "final",
        "in_progress",
        "postponed",
        "scheduled",
        "time_tbd",
        "unconfirmed"
      ]
    },
    "DayScheduleWindow": {
      "description": "A UTC instant range `[start, end)`.",
      "properties": {
        "end": {
          "type": "string"
        },
        "start": {
          "type": "string"
        }
      },
      "type": "object",
      "x-owls-required": [
        "start",
        "end"
      ]
    }
  }
}