{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/owlsinsight-com/json-schema/owlsinsight-com-stake-bets-response-schema.json",
  "title": "StakeBetsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/owlsinsight-com-stake-v2-api-openapi.yml#/components/schemas/StakeBetsResponse",
  "properties": {
    "count": {
      "format": "double",
      "type": "number"
    },
    "data": {
      "items": {
        "$ref": "#/$defs/StakeBet"
      },
      "type": "array"
    },
    "meta": {
      "$ref": "#/$defs/StakeBetsMeta"
    },
    "success": {
      "type": "boolean"
    }
  },
  "type": "object",
  "x-owls-required": [
    "success",
    "count",
    "data",
    "meta"
  ],
  "$defs": {
    "StakeBet": {
      "description": "One public sportsbook bet from Stake. Bettor identity is never returned.",
      "properties": {
        "active": {
          "type": "boolean"
        },
        "amount": {
          "description": "Stake on the whole slip, in `currency`. null when the bettor hid it.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "cashoutMultiplier": {
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "createdAt": {
          "description": "RFC-1123, passed through from upstream (e.g. 'Tue, 01 Sep 2026 16:10:32 GMT').",
          "type": "string"
        },
        "currency": {
          "description": "The bettor's own currency, fiat or crypto (usdt, inr, sol, ngn, ...). NOT converted.",
          "type": [
            "string",
            "null"
          ]
        },
        "feed": {
          "type": "string",
          "x-extensible-enum": [
            "all",
            "high"
          ]
        },
        "id": {
          "type": "string"
        },
        "outcomes": {
          "description": "More than one leg means a parlay, so `amount` cannot be attributed to one market.",
          "items": {
            "$ref": "#/$defs/StakeBetLeg"
          },
          "type": "array"
        },
        "payout": {
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "payoutMultiplier": {
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "potentialMultiplier": {
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "status": {
          "type": "string"
        },
        "updatedAt": {
          "type": "string"
        }
      },
      "type": "object",
      "x-owls-required": [
        "id",
        "amount",
        "currency",
        "payout",
        "payoutMultiplier",
        "potentialMultiplier",
        "outcomes",
        "feed"
      ]
    },
    "StakeBetLeg": {
      "description": "One leg of a public Stake bet. `amount` is on the SLIP, not the leg.",
      "properties": {
        "fixture": {
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "startTime": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": "object",
          "x-owls-required": [
            "id"
          ]
        },
        "id": {
          "type": "string"
        },
        "market": {
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "type": "object",
          "x-owls-required": [
            "id"
          ]
        },
        "odds": {
          "description": "Decimal odds AT PLACEMENT for this leg.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "outcome": {
          "description": "outcome.id and market.id share a namespace with `getStakeV2()`, so a leg joins\ndirectly to a board outcome. `fixture.id` does NOT join: the board uses a different\nidentifier for the same fixture. Join on outcome or market id, never fixture id.",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "type": "object",
          "x-owls-required": [
            "id"
          ]
        },
        "status": {
          "type": "string"
        }
      },
      "type": "object",
      "x-owls-required": [
        "id",
        "odds"
      ]
    },
    "StakeBetsMeta": {
      "properties": {
        "ageSeconds": {
          "description": "Seconds since `timestamp`. null whenever `timestamp` is null; never derive freshness from a null timestamp.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "cached": {
          "type": "boolean"
        },
        "hash": {
          "description": "null on no-data and partial-miss.",
          "type": [
            "string",
            "null"
          ]
        },
        "newestBetTime": {
          "type": [
            "string",
            "null"
          ]
        },
        "now": {
          "description": "Response clock, ISO, present on every shape.",
          "type": "string"
        },
        "oldestBetTime": {
          "description": "ISO-8601, unlike the RFC-1123 `createdAt` inside `data[]`. null on empty shapes.",
          "type": [
            "string",
            "null"
          ]
        },
        "sampling": {
          "$ref": "#/$defs/StakeBetsSampling",
          "description": "Present on every shape."
        },
        "source": {
          "type": "string",
          "x-extensible-enum": [
            "stake-bets"
          ]
        },
        "status": {
          "type": "string",
          "x-extensible-enum": [
            "no-data",
            "ok",
            "partial-miss",
            "stale"
          ]
        },
        "timestamp": {
          "description": "ISO time of the worker write this response serves. null on no-data and partial-miss: there is no data to date.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object",
      "x-owls-required": [
        "source",
        "cached",
        "status",
        "timestamp",
        "ageSeconds",
        "oldestBetTime",
        "newestBetTime",
        "sampling",
        "hash",
        "now"
      ]
    },
    "StakeBetsSampling": {
      "description": "Capture-rate facts. `complete` is always false: upstream caps each query at 50 rows\nwith no cursor and the feed turns over faster than that, so the window is a SAMPLE.\nTotal handle is NOT derivable from it.",
      "properties": {
        "complete": {
          "type": "boolean"
        },
        "configuredMaxEntries": {
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "configuredWindowMs": {
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "observedNewPerMinute": {
          "description": "Measured: null on empty shapes, and on a healthy response until a rate has been measured (normal right after a restart).",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "pollIntervalMs": {
          "description": "Worker poll interval. Reported on empty shapes too while the feed has run in the last day; null only when even that is unknown.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "sourceLimit": {
          "format": "double",
          "type": "number"
        },
        "windowSeconds": {
          "description": "Measured: null on no-data and partial-miss.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        }
      },
      "type": "object",
      "x-owls-required": [
        "sourceLimit",
        "pollIntervalMs",
        "windowSeconds",
        "configuredWindowMs",
        "configuredMaxEntries",
        "observedNewPerMinute",
        "complete"
      ]
    }
  }
}