{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/BettingMarketSplit",
  "title": "BettingMarketSplit",
  "properties": {
    "BettingMarketID": {
      "type": "integer",
      "description": "The unique ID associated with the betting market"
    },
    "BettingEventID": {
      "type": "integer",
      "description": "The unique id of the associated betting event"
    },
    "BettingMarketTypeID": {
      "type": "integer",
      "description": "The unique ID associated with the market type of the betting market"
    },
    "BettingMarketType": {
      "type": [
        "string",
        "null"
      ],
      "description": "The name of the market type within a market (e.g. Player Prop, Team Prop, Game Prop, etc.)"
    },
    "BettingBetTypeID": {
      "type": "integer",
      "description": "The ID associated with the name of the bet type within a market"
    },
    "BettingBetType": {
      "type": [
        "string",
        "null"
      ],
      "description": "The name of the bet type within a market (e.g. Total Runs, Moneyline, Run Line, etc.)"
    },
    "BettingPeriodTypeID": {
      "type": "integer",
      "description": "The BettingPeriodTypeID of this market"
    },
    "BettingPeriodType": {
      "type": [
        "string",
        "null"
      ],
      "description": "The BettingPeriodType of this market (e.g. Full Game; 1st-5th Inning; 2nd Inning; Regular Season)"
    },
    "TeamID": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The team's unique TeamID as assigned by SportsDataIO tied this market (if applicable)"
    },
    "TeamKey": {
      "type": [
        "string",
        "null"
      ],
      "description": "The abbreviation [Key]  of the team tied to this market (if applicable)"
    },
    "PlayerID": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The player's unique PlayerID as assigned by SportsDataIO tied to this market (if applicable) Note: this ID will stay with the player throughout their MLB career"
    },
    "PlayerName": {
      "type": [
        "string",
        "null"
      ],
      "description": "The full name of the player associated with this market"
    },
    "BettingSplits": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/BettingSplit"
      },
      "description": "A list of betting splits for the BettingMarket"
    }
  }
}