{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/odds-api-io/json-schema/odds-api-io-controllers-markets-response-schema.json",
  "title": "controllers.MarketsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/odds-api-io-markets-api-openapi.yml#/components/schemas/controllers.MarketsResponse",
  "type": "object",
  "properties": {
    "sport": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        }
      }
    },
    "markets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/controllers.MarketInfo"
      }
    }
  },
  "$defs": {
    "controllers.MarketInfo": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Market name, as it appears in /odds responses."
        },
        "shape": {
          "type": "string",
          "enum": [
            "moneyline",
            "line",
            "outcomes",
            "yesno",
            "labelled"
          ],
          "description": "How to parse the odds. `moneyline`: home/away (+draw on 3-way markets). `line`: one entry per line, with hdp and over/under or home/away. `outcomes`: fixed outcomes (1X/12/X2, odd/even, home/away/none, home/away/neither). `yesno`: yes/no prices. `labelled`: one price per label (\"2-1\", \"1st Half\", a player name)."
        },
        "period": {
          "type": "string",
          "enum": [
            "match",
            "first-half",
            "second-half",
            "quarter",
            "set",
            "game",
            "inning"
          ],
          "description": "Which part of the event the market covers."
        },
        "prematch": {
          "type": "boolean",
          "description": "Offered pre-match."
        },
        "live": {
          "type": "boolean",
          "description": "Offered in-play."
        }
      }
    }
  }
}