{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lumify-ai/json-schema/lumify-ai-odds-response-schema.json",
  "title": "OddsResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lumify-ai-openapi.json#/components/schemas/OddsResponse",
  "properties": {
    "event_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Event Id"
    },
    "available": {
      "type": "boolean",
      "title": "Available",
      "default": false
    },
    "bookmakers": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Bookmakers",
      "description": "Per-bookmaker markets. Each outcome has outcome, price, point, is_main (true for the main line). In-play events keep updating and omit books that have not quoted since kickoff. Final events add result (won/lost/push/void) and close (the pre-kickoff graded point); tennis spreads/totals are the one gap — game-count isn't tracked, so only tennis moneyline grades. MLB, tennis, and soccer (MLS + big-five) mains also mirror fair_price and consensus from published assessments when the line still matches the board. Default /odds view is mains only; include_alts=true returns alternate spread/total rungs."
    },
    "last_updated": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Updated"
    },
    "requested_bookmaker": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Requested Bookmaker",
      "description": "Present only when the default (no bookmaker query param) request fell back to a different book because Pinnacle hasn't posted a line for this event yet — always 'pinnacle' when present. An explicit bookmaker=pinnacle request never falls back; it returns available=false instead."
    },
    "fallback_bookmaker": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Fallback Bookmaker",
      "description": "The book actually returned when requested_bookmaker is present — the book with the most odds rows for this event, excluding Pinnacle."
    }
  },
  "additionalProperties": true,
  "type": "object"
}