{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/odds-api-io/json-schema/odds-api-io-models-bookmaker-schema.json",
  "title": "models.Bookmaker",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/odds-api-io-openapi.json#/components/schemas/models.Bookmaker",
  "type": "object",
  "properties": {
    "active": {
      "type": "boolean"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "When the bookmaker was added to the API, in UTC (RFC3339). Absent for a small number of legacy entries."
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "ok",
        "degraded",
        "down"
      ],
      "description": "Bookmaker status. `degraded`: no odds update on any of the book's matches for 60+ minutes. `down`: no update for 3+ hours while the book has 100+ active matches; its odds are then left out of every odds endpoint and removed over the WebSocket until it recovers. Books with fewer than 100 active matches are always `ok`."
    },
    "reason": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "maintenance",
        "unavailable",
        null
      ],
      "description": "Why the status is not `ok`. Null when `ok`. `maintenance`: the bookmaker is temporarily offline on its side. `unavailable`: we temporarily have no fresh odds from this bookmaker."
    }
  }
}