{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/owlsinsight-com/json-schema/owlsinsight-com-history-splits-response-schema.json",
  "title": "HistorySplitsResponse",
  "description": "Response for GET /api/v1/history/splits. Rows are oldest first.",
  "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/HistorySplitsResponse",
  "properties": {
    "data": {
      "properties": {
        "eventId": {
          "description": "Echoed when the request named an eventId.",
          "type": "string"
        },
        "pagination": {
          "properties": {
            "hasMore": {
              "type": "boolean"
            },
            "limit": {
              "format": "double",
              "type": "number"
            },
            "offset": {
              "format": "double",
              "type": "number"
            },
            "total": {
              "format": "double",
              "type": "number"
            }
          },
          "type": "object",
          "x-owls-required": [
            "total",
            "limit",
            "offset",
            "hasMore"
          ]
        },
        "splits": {
          "items": {
            "$ref": "#/$defs/SplitsHistoryRow"
          },
          "type": "array"
        },
        "sport": {
          "description": "Echoed when the request named a sport.",
          "type": "string"
        },
        "window": {
          "description": "The UTC date window served (both ends inclusive), on a query by sport only.",
          "properties": {
            "end": {
              "type": "string"
            },
            "start": {
              "type": "string"
            }
          },
          "type": "object",
          "x-owls-required": [
            "start",
            "end"
          ]
        }
      },
      "type": "object",
      "x-owls-required": [
        "splits",
        "pagination"
      ]
    },
    "success": {
      "type": "boolean"
    }
  },
  "type": "object",
  "x-owls-required": [
    "success",
    "data"
  ],
  "$defs": {
    "SplitsHistoryRow": {
      "description": "One recorded reading of one book's splits for one game. Same shape as a\n{@link SplitsBookEntry} on the live board, plus the game's `event_id` and `sport`, with\n`recorded_at` where the live board has `as_of`. A row is written when the book's\nfigures (percentages, line or price) change, and again after 24 hours without a\nchange, so consecutive rows can carry the same figures.\n\nA market absent from a row was not quoted at that read, and a percentage absent from\na market is not zero (BetMGM rows carry ticket percentages only).",
      "properties": {
        "book": {
          "description": "Book key: 'dk', 'circa' or 'betmgm'.",
          "type": "string"
        },
        "event_id": {
          "description": "The game's /odds eventId, the same as {@link SplitsGame.event_id}.",
          "type": "string"
        },
        "moneyline": {
          "properties": {
            "away_bets_pct": {
              "format": "double",
              "type": "number"
            },
            "away_handle_pct": {
              "format": "double",
              "type": "number"
            },
            "away_price": {
              "format": "double",
              "type": "number"
            },
            "home_bets_pct": {
              "format": "double",
              "type": "number"
            },
            "home_handle_pct": {
              "format": "double",
              "type": "number"
            },
            "home_price": {
              "format": "double",
              "type": "number"
            }
          },
          "type": "object"
        },
        "recorded_at": {
          "description": "ISO 8601 time this reading was recorded.",
          "type": "string"
        },
        "sport": {
          "type": "string"
        },
        "spread": {
          "properties": {
            "away_bets_pct": {
              "format": "double",
              "type": "number"
            },
            "away_handle_pct": {
              "format": "double",
              "type": "number"
            },
            "away_line": {
              "format": "double",
              "type": "number"
            },
            "home_bets_pct": {
              "format": "double",
              "type": "number"
            },
            "home_handle_pct": {
              "format": "double",
              "type": "number"
            },
            "home_line": {
              "format": "double",
              "type": "number"
            }
          },
          "type": "object"
        },
        "title": {
          "description": "Display name: 'DraftKings', 'Circa Sports' or 'BetMGM'.",
          "type": "string"
        },
        "total": {
          "properties": {
            "line": {
              "format": "double",
              "type": "number"
            },
            "over_bets_pct": {
              "format": "double",
              "type": "number"
            },
            "over_handle_pct": {
              "format": "double",
              "type": "number"
            },
            "under_bets_pct": {
              "format": "double",
              "type": "number"
            },
            "under_handle_pct": {
              "format": "double",
              "type": "number"
            }
          },
          "type": "object"
        }
      },
      "type": "object",
      "x-owls-required": [
        "event_id",
        "sport",
        "book",
        "title",
        "recorded_at"
      ]
    }
  }
}