{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/disputes-online/json-schema/disputes-online-odds-schema.json",
  "title": "Odds",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/disputes-online-openapi.json#/components/schemas/Odds",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "url": {
      "type": "string",
      "description": "The dispute's page; link it when citing."
    },
    "question": {
      "type": "string",
      "description": "The first line of the dispute's description."
    },
    "status": {
      "type": "string",
      "enum": [
        "new",
        "in_process",
        "hot",
        "very_hot",
        "ready",
        "done",
        "dispute"
      ],
      "description": "`new`: no bets yet. `in_process`, `hot`, `very_hot`: accepting bets, by popularity. `ready`: awaiting result. `done`: settled. `dispute`: the result is being contested."
    },
    "as_of": {
      "type": "string",
      "format": "date-time",
      "description": "When these numbers were read. Odds move with every bet."
    },
    "closes_at": {
      "type": "string",
      "format": "date-time",
      "description": "When betting closes."
    },
    "result_due": {
      "type": "string",
      "format": "date-time",
      "description": "When the result is due."
    },
    "total_bets": {
      "type": "integer"
    },
    "pool_qot": {
      "type": "number",
      "description": "Pool size in QOT, the platform's internal currency — not dollars."
    },
    "outcomes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OddsOutcome"
      }
    }
  },
  "$defs": {
    "OddsOutcome": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        },
        "probability": {
          "type": "number",
          "minimum": 0,
          "maximum": 1,
          "description": "Share of all stakes on this outcome."
        },
        "payout_multiplier": {
          "type": [
            "number",
            "null"
          ],
          "description": "What a winning stake is multiplied by at the current split; null when nobody has backed this outcome."
        },
        "staked_qot": {
          "type": "number"
        },
        "bets": {
          "type": "integer"
        }
      }
    }
  }
}