{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/owlsinsight-com/json-schema/owlsinsight-com-realtime-response-schema.json",
  "title": "RealtimeResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/owlsinsight-com-real-time-odds-api-openapi.yml#/components/schemas/RealtimeResponse",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/OddsEvent"
      },
      "type": "array"
    },
    "meta": {
      "$ref": "#/$defs/RealtimeMeta"
    },
    "success": {
      "type": "boolean"
    }
  },
  "type": "object",
  "x-owls-required": [
    "success",
    "data",
    "meta"
  ],
  "$defs": {
    "AlternateLine": {
      "properties": {
        "last_seen": {
          "description": "When the book last CONFIRMED this rung, as an ISO timestamp, whether or not\nits price moved. Pinnacle realtime only (`getRealtime` and `pinnacle-realtime`);\nabsent on `/odds` and on feeds that do not stamp rungs.\n\nPinnacle does not resend every rung in every message, so a rung whose\n`last_seen` is well behind its market's `last_seen` is a hint that the rung has\nbeen taken down, not proof. Rungs are never flagged `suspended` one by one.",
          "type": "string"
        },
        "point": {
          "format": "double",
          "type": "number"
        },
        "price": {
          "format": "double",
          "type": "number"
        }
      },
      "type": "object",
      "x-owls-required": [
        "point",
        "price"
      ]
    },
    "Bookmaker": {
      "properties": {
        "event_link": {
          "description": "Deep link to event page on sportsbook website (REST only, stripped from WebSocket).",
          "type": "string"
        },
        "event_ticker": {
          "type": "string"
        },
        "key": {
          "type": "string"
        },
        "last_update": {
          "type": "string"
        },
        "markets": {
          "items": {
            "$ref": "#/$defs/Market"
          },
          "type": "array"
        },
        "title": {
          "type": "string"
        }
      },
      "type": "object",
      "x-owls-required": [
        "key",
        "title",
        "last_update",
        "markets"
      ]
    },
    "EventFreshness": {
      "description": "Per-event freshness on the realtime streams. Keyed off PRICE MOVEMENT\n(`lastUpdate`), not feed re-confirmation (`refreshedAt`), so a frozen-but-still-\nserved live line reads `stale: true` — the market-maker pull signal.",
      "properties": {
        "ageSeconds": {
          "description": "Seconds since the price last moved — tradeability age.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "lastUpdate": {
          "description": "Epoch ms this event's price last MOVED (drives `stale`/`ageSeconds`), or null.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "refreshedAgeSeconds": {
          "description": "Seconds since the feed last confirmed this row.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "refreshedAt": {
          "description": "Epoch ms the feed last CONFIRMED this row (moved or not) — liveness, not movement.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "stale": {
          "description": "Live row whose price has not moved within the stale window — not tradeable.",
          "type": "boolean"
        }
      },
      "type": "object",
      "x-owls-required": [
        "lastUpdate",
        "ageSeconds",
        "stale",
        "refreshedAt",
        "refreshedAgeSeconds"
      ]
    },
    "EventPhase": {
      "description": "{@link OddsEvent.phase}. More values can be added: treat an unknown one like a\nmissing field.",
      "type": "string",
      "x-extensible-enum": [
        "closed",
        "live",
        "scheduled",
        "suspended"
      ]
    },
    "GameStatus": {
      "type": "string",
      "x-extensible-enum": [
        "cancelled",
        "final",
        "live",
        "postponed",
        "scheduled"
      ]
    },
    "Market": {
      "properties": {
        "category": {
          "description": "Source's own market category (e.g. \"Team Props\", \"Game Props\").",
          "type": "string"
        },
        "description": {
          "description": "Source's own market description, where the book provides one.",
          "type": "string"
        },
        "isAlternate": {
          "description": "True when this entry is an alternate line rather than the main line.",
          "type": "boolean"
        },
        "key": {
          "description": "Market identifier.\n\nOn the Pinnacle `/realtime` pipeline, markets folded from a sub-matchup are\nkeyed `special_<matchupId>_<type>_p<period>`. ALTERNATE ladders additionally\ncarry their LINE, because a key that resolves to several markets does not\nidentify one:\n  `special_1634192207_total_p0_alt_10.5`\n  `special_1634192207_spread_p0_alt_-3`   <-- CAN BE NEGATIVE\nA spread's line is stated from the home side, so `_alt_` may be followed by\na minus sign; do not assume that segment parses as an unsigned number.\nNon-alternate keys (`special_<id>_total_p0`) and team-total keys\n(`special_<id>_team_total_p0_home_1.5`) are unchanged.\n\nA rung whose line MOVES changes key — a different line is a different rung.\nIf you map markets by key, key each rung separately; keying only on the\nfamily collapses a ladder onto whichever rung you saw last.",
          "type": "string"
        },
        "last_seen": {
          "description": "When the book last CONFIRMED this market, as an ISO timestamp, whether or not\nthe price moved. Pinnacle realtime markets only.\n\nUse this, not `last_update`, to judge whether a quote is still live: a quiet\nline the book keeps re-confirming has a fresh `last_seen` and an old\n`last_update`, so `last_update` alone cannot tell a quiet line from a pulled one.\n\nCompare a line against ITS OWN history, not against other lines on the same\ngame. Lines on one match are confirmed at very different rates (the main line\nfar more often than alternates or period lines), so a line that trails its\nsiblings is normal. A line whose `last_seen` stops advancing when it normally\nkeeps moving has stopped being quoted.",
          "type": "string"
        },
        "last_update": {
          "description": "When this market's price last CHANGED. It does not move when the book re-confirms an unchanged price.",
          "type": "string"
        },
        "limits": {
          "items": {
            "properties": {
              "amount": {
                "format": "double",
                "type": "number"
              },
              "type": {
                "type": "string"
              }
            },
            "type": "object",
            "x-owls-required": [
              "type",
              "amount"
            ]
          },
          "type": "array"
        },
        "outcomes": {
          "items": {
            "$ref": "#/$defs/Outcome"
          },
          "type": "array"
        },
        "side": {
          "description": "The source's own market-level side designation, passed through unmodified.\n\nSet on markets that price ONE competitor rather than both. The case it\nexists for is a team total, whose outcomes are named only `over` / `under`,\nso nothing inside the market says whose total is priced.\n\nJoin it yourself: `side === 'home'` means the event's `home_team`,\n`side === 'away'` means its `away_team`. The API deliberately does not\nresolve the name, because the resolved string came from a different naming\nlayer than `home_team` / `away_team` and failed to join.\n\nSet today only by the Pinnacle `/realtime` pipeline, on `special_*` markets.",
          "type": "string",
          "x-extensible-enum": [
            "away",
            "home"
          ]
        },
        "suspended": {
          "description": "True when betting on this market is closed: the book closed it, and on the\nPinnacle realtime feed it can also be set once the market's period is closed or\nits betting cutoff has passed. Absent otherwise, never `false`.\n\nOn the Pinnacle realtime feed it is also set on a main market (moneyline,\nspread, total or team total) that Pinnacle withdraws while the rest of the match\nstays open, and cleared when Pinnacle offers it again or its period ends. On a\nspread or total only the main line is flagged, never its `alternateLines`.\n\nIts absence does NOT mean every line is being quoted: a withdrawn alternate rung,\nor a special or prop market, can arrive with no `suspended` at all. Use\n`last_seen` (on the market, and on each rung) to tell whether a quote is live.",
          "type": "boolean"
        },
        "units": {
          "description": "The source's own unit-of-measure for the sub-matchup this market came from,\npassed through unmodified.\n\nNOT AN ENUM — match it exactly and treat unknown values as unknown. Values\nseen in one soccer sample: `Regular`, `Corners`, `1st Goal`, `2nd Goal`,\n`CombinedResult`, `Place 1st`. Tennis team totals report `Games`. It varies\nby sport AND by market, so do not hard-code a whitelist you expect to be\nexhaustive.\n\nMatters most on `special_*` team totals: one soccer event can carry a goals\nteam total AND a corners team total folded on from different sub-matchups,\nand `units` is what separates them. Absent means the source stated no unit;\ndo NOT read absence as \"goals\".",
          "type": "string"
        }
      },
      "type": "object",
      "x-owls-required": [
        "key",
        "outcomes"
      ]
    },
    "OddsEvent": {
      "properties": {
        "away_team": {
          "type": "string"
        },
        "away_team_id": {
          "description": "Stable identifier for the team behind `away_team`; same rules as `home_team_id`.",
          "type": "string"
        },
        "bookmakers": {
          "items": {
            "$ref": "#/$defs/Bookmaker"
          },
          "type": "array"
        },
        "commence_time": {
          "type": "string"
        },
        "country_code": {
          "type": "string"
        },
        "eventId": {
          "type": "string"
        },
        "freshness": {
          "$ref": "#/$defs/EventFreshness",
          "description": "Per-event freshness on the realtime streams (`/{sport}/realtime` +\n`pinnacle-realtime` WS). `freshness.stale` flips true when THIS event's price\nhas not MOVED within the stale window (default 30s) even if the feed keeps\nre-confirming it — the honest per-line signal a market-maker keys a \"pull my\nquote\" decision on (vs the coarse sport-level `meta.freshness`). Sent on\n`pinnacle-realtime` and on `/{sport}/realtime` responses whose `meta.source` is\n`\"pinnacle\"`. Absent on `/odds`; do not rely on it on the PS3838 feeds."
        },
        "home_team": {
          "type": "string"
        },
        "home_team_id": {
          "description": "Stable identifier for the team behind `home_team`, e.g. `\"la-lakers\"`.\nThe same team carries the same id across every book and every spelling of\nthe name, so you can join on it instead of on the string.\n\nThe key is ABSENT (never `null`) when the name is not on a roster we carry:\nevery tennis competitor, soccer and college names outside our rosters, and\noutright events, which never carry ids at all.",
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "isLive": {
          "description": "In-play flag on the realtime feeds.\n\nWhen `phase` is present: true while a live line for the match is started and\nnot ended, meaning in-play betting on it is running.\n\nWithout `phase`: the book's own flag for its live-betting offering, which does\nnot mean \"in play\" and can be false on a match in progress, so check `status`\nas well.\n\n`freshness.stale` applies to an event that reads as in play.",
          "type": "boolean"
        },
        "lastUpdate": {
          "description": "Epoch ms of the newest price change on this event (realtime only).",
          "format": "double",
          "type": "number"
        },
        "league": {
          "type": "string"
        },
        "market_type": {
          "description": "`'outright'` for aggregated futures/progression markets (e.g. Pinnacle\n\"To Reach The Final\") that are NOT team-vs-team games. For these, the single\n`bookmakers[].markets[].outcomes` list holds the competitors (each with a\nprice), `home_team` carries the market label, and `away_team` is empty.\nAbsent for real games. Currently surfaced on the realtime (`/realtime`,\n`pinnacle-realtime`) soccer feed.",
          "type": "string",
          "x-extensible-enum": [
            "outright"
          ]
        },
        "phase": {
          "$ref": "#/$defs/EventPhase",
          "description": "Where the event is in its life, from Pinnacle's own live-line fields. Pinnacle\nrealtime only: `/{sport}/realtime`, `pinnacle-realtime`, and `ps3838-realtime`\nevents that carry it. Absent everywhere else.\n\n- `scheduled`: not started.\n- `live`: in play, betting open.\n- `suspended`: in play, betting paused for now.\n- `closed`: betting over for good. The event is sent this way for a few\n  minutes, then removed.\n\nThis list can gain values. Treat a value you do not recognise like a missing\nfield, and read `phase` before `isLive` or `status` whenever it is present."
        },
        "seenAt": {
          "description": "Epoch ms the feed last CONFIRMED a price on this event, changed or not (realtime only).",
          "format": "double",
          "type": "number"
        },
        "sport": {
          "type": "string"
        },
        "sport_key": {
          "type": "string"
        },
        "sport_title": {
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/GameStatus"
        }
      },
      "type": "object",
      "x-owls-required": [
        "id",
        "sport_key",
        "commence_time",
        "home_team",
        "away_team",
        "bookmakers"
      ]
    },
    "Outcome": {
      "properties": {
        "alternateLines": {
          "items": {
            "$ref": "#/$defs/AlternateLine"
          },
          "type": "array"
        },
        "deepLink": {
          "description": "Ready-made URL that opens this outcome on the sportsbook, pre-built with a\nhost that resolves the ids. Optional and absent for most books — read it\ndefensively rather than assuming every outcome has one.\n\nWhat the link does differs by book. Read this before putting one behind a\nbutton labelled \"add to betslip\":\n\n- **FanDuel** — `nj.sportsbook.fanduel.com/addToBetslip`, adds the selection\n  to the existing slip. The NJ host is required, not cosmetic: the\n  underlying `marketId` namespace only resolves on that subdomain. Customers\n  in other states can still read `marketId` + `selectionId`, but must not\n  swap the host.\n- **DraftKings** — `sportsbook.draftkings.com/event/{eventId}?outcomes=...`,\n  which opens the event with the outcome selected. Not region-locked at the\n  ID level; DraftKings applies its own state gating once the slip opens.\n- **Hard Rock** — `share.hardrock.bet/Pt0T/landing?deep_link_value=…`, Hard\n  Rock's AppsFlyer share host. On a phone with the app installed it opens\n  the app on the selection; without the app it goes to the app store, and\n  there is no mobile web fallback. On desktop the `af_web_dp` parameter is\n  reported to send the visitor to `app.hardrock.bet` (inherited claim, not\n  verified by us).\n  **This one REPLACES the betslip.** Hard Rock's handler clears the existing\n  slip before it resolves and adds the selection, so anything the customer\n  had already built is discarded. Label it accordingly. A logged-out visitor\n  is prompted to sign in and the selection lands after they do.\n- **Novig** — `novig.onelink.me/JHQQ?…&deep_link_value=…`, an AppsFlyer\n  OneLink that PREFILLS a slip with this one side (no stake prescribed).\n  Hands off to the Novig app when installed; there is no web autofill\n  fallback. Novig is an exchange, so the price quoted is a peer's resting\n  order — treat the click as an order to place, not a guaranteed fill.\n  Only the props form of this link has been click-tested; game-line links\n  come off the same builder but have not been.\n\nBooks not listed here do not publish a link today.",
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "liquidity": {
          "description": "Order-book depth, on exchanges that expose a book (Novig today).\n\n⚠️ `size` is in CENTS, the exchange's native unit — NOT dollars and not\ncontracts. `size: 47691` is **$476.91**. Divide by 100 before showing it\nto anyone or sizing a bet against it; reading it as dollars overstates\navailable depth by 100x.\n\n⚠️ `price` here is AMERICAN ODDS, converted from Novig's native\nprobability so this surface matches every other book in `/odds`. The\nplayer-props feed does NOT do this — `PlayerProp.liquidity` levels carry\n`price` as a raw probability (0–1) and size as `qty`/`qtyDollars`. Do not\nshare a parsing path between the two.\n\nLevels are best price first, up to a 100-level safety bound (server-side,\n`NOVIG_LIQUIDITY_DEPTH`). Deepest observed to date is 57, so nothing is\nclipped today, but there is no flag telling you a ladder WAS clipped.\nMain markets were capped at 5 levels until 2026-08-21; player props never\nwere, which is the asymmetry a customer reported.\n\n`asks` is empty in practice on Novig — its ladders are bids-only (measured\nacross 2,659 outcomes), so an empty `asks` is the venue, not missing data.\n\nAttached to the PRIMARY line only, not to alternate lines. A deep ladder's\ntail can hold real but far-out-of-the-money resting orders (observed up to\n+99900 at ~0.1% implied) — read the tail as depth, not as \"the price\".\n\nAbsent for traditional sportsbooks and for exchange outcomes with no ladder.",
          "properties": {
            "asks": {
              "description": "Always present, but empty on Novig — its ladders are bids-only.",
              "items": {
                "properties": {
                  "price": {
                    "format": "double",
                    "type": "number"
                  },
                  "size": {
                    "format": "double",
                    "type": "number"
                  }
                },
                "type": "object",
                "x-owls-required": [
                  "price",
                  "size"
                ]
              },
              "type": "array"
            },
            "bids": {
              "description": "Best bid first. `price` = American odds, `size` = CENTS.",
              "items": {
                "properties": {
                  "price": {
                    "format": "double",
                    "type": "number"
                  },
                  "size": {
                    "format": "double",
                    "type": "number"
                  }
                },
                "type": "object",
                "x-owls-required": [
                  "price",
                  "size"
                ]
              },
              "type": "array"
            }
          },
          "type": "object",
          "x-owls-required": [
            "bids",
            "asks"
          ]
        },
        "marketId": {
          "description": "The sportsbook's own market identifier for the parent market, passed through\nverbatim. Use it to correlate an outcome with the book's public API, not to\nhand-build a link — `deepLink` is the supported way to link out.\n\nPresent only when the book publishes one. Do not assume a book that carries\n`deepLink` also carries a usable `marketId`: Hard Rock's link format resolves\na selection on its own and never consults a market id.",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "point": {
          "format": "double",
          "type": "number"
        },
        "price": {
          "format": "double",
          "type": "number"
        },
        "selectionId": {
          "description": "The sportsbook's own identifier for this specific outcome, passed through\nverbatim.\n\nThe type is book-dependent — FanDuel publishes a number (`29172`),\nDraftKings a string (`'0ML85877697_3'`). Compare loosely or coerce; do not\nassume one or the other.\n\nA `selectionId` with no `deepLink` beside it means the id did not match a\nshape we could safely put into that book's URL, so no link was emitted.\nTreat the id as a correlation key in that case, not as link material."
        }
      },
      "type": "object",
      "x-owls-required": [
        "name",
        "price"
      ]
    },
    "RealtimeFeedState": {
      "description": "Why this response is empty, when it is.\n\n`live`    — events were served.\n`unknown` — we cannot tell whether the feed is idle or broken.\n\nDeliberately only two states. Earlier drafts also had `idle` and `down`; both were\nremoved after measurement. `down` was unreachable. `idle` keyed on the upstream\nreporting \"connected, zero matchups\", which it also reports when a live feed has\nfrozen — so it could have claimed \"nothing on\" during an outage. Judge with\n`lastDataAgeSeconds`: a value in the hundreds of thousands means the feed has\nproduced nothing for days.",
      "properties": {
        "lastDataAgeSeconds": {
          "description": "Seconds since this sport last produced ANY data, or `null` if it has not been\nobserved producing data. `null` does NOT mean healthy, and does not mean zero.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "resubscribing": {
          "description": "True while the feed is subscribing again after a reconnect, when some leagues\ncan be silent. `null` means unknown, by the same rules as `upstreamAgeSeconds`.\nAbsent from API versions that predate it.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "stalled": {
          "description": "True when the board has an event in play (`phase: \"live\"`) and Pinnacle has sent\nnothing for this sport for longer than its normal quiet spells during play: prices\ncan be out of date even though the board was rewritten seconds ago. False on a board\nwith nothing in play. `null` when `upstreamAgeSeconds` is null or the events carry no\n`phase`. It does not change `freshness.stale`. Absent from API versions that predate it.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "state": {
          "type": "string",
          "x-extensible-enum": [
            "live",
            "unknown"
          ]
        },
        "upstreamAgeSeconds": {
          "description": "Seconds since Pinnacle last sent anything for this sport, as of this response.\n`lastDataAgeSeconds` stays low while Pinnacle is quiet, because the board is\nrewritten on a schedule either way; this keeps growing, so it is the field that\nshows a feed that is running but hearing nothing.\n\n`null` means unknown: always when `meta.source` is not `\"pinnacle\"`, and before\nthe feed has received anything since it started. Absent from API versions that\npredate it.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        }
      },
      "type": "object",
      "x-owls-required": [
        "state",
        "lastDataAgeSeconds"
      ]
    },
    "RealtimeFreshness": {
      "description": "Freshness for the realtime endpoints, where `ageSeconds` can legitimately be\nunknown.\n\nDeliberately NOT a widening of {@link OddsFreshness}: `/odds` and `/events` share\nthat type and customers do arithmetic directly on their `ageSeconds`, so loosening\nit there would force null-checks on consumers who do not need them today.\n\n`ageSeconds: null` means the age is genuinely unmeasurable — no source produced\ndata and we have never observed this sport produce any. It replaced a reported\n`0`, which claimed the freshest possible data on a feed that had served nothing\nfor four days. When null, `stale` is always `true`.",
      "properties": {
        "ageSeconds": {
          "description": "Seconds since this data was produced, or `null` when that is unknowable.",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "droppedAsFinished": {
          "description": "Events dropped because the match was confirmed finished (realtime only).",
          "format": "double",
          "type": "number"
        },
        "droppedAsStale": {
          "description": "Events dropped because their scheduled start is older than the sport's\nmax plausible live duration — a source-independent staleness guard\n(realtime only).",
          "format": "double",
          "type": "number"
        },
        "stale": {
          "type": "boolean"
        }
      },
      "type": "object",
      "x-owls-required": [
        "ageSeconds",
        "stale"
      ]
    },
    "RealtimeMeta": {
      "properties": {
        "available": {
          "type": "boolean"
        },
        "events": {
          "format": "double",
          "type": "number"
        },
        "feed": {
          "$ref": "#/$defs/RealtimeFeedState",
          "description": "Added 2026-08-20. Optional so responses from older API builds still typecheck."
        },
        "freshness": {
          "$ref": "#/$defs/RealtimeFreshness"
        },
        "league": {
          "type": "string"
        },
        "source": {
          "type": "string",
          "x-extensible-enum": [
            "pinnacle",
            "ps3838"
          ]
        },
        "sport": {
          "type": "string"
        },
        "stream": {
          "anyOf": [
            {
              "$ref": "#/$defs/RealtimeStreamPosition"
            },
            {
              "type": "null"
            }
          ],
          "description": "The `pinnacle-realtime` stream position this response matches, or `null` when\nthe response cannot be aligned with the stream (for example when it was served\nfrom PS3838). Absent from API versions that predate it.\n\nWhen it is set, `data` is the board at that position after your `league`\nfilter, so an empty `data` means no event matches, not a missing feed.\n`pinnacle-realtime` frames are never filtered by league: if you load with\n`league`, apply the same filter to every frame, or load without it. To follow\n`pinnacle-realtime` without gaps, see the loading procedure on\n{@link RealtimeOddsPayload}."
        },
        "timestamp": {
          "description": "Absent only on an empty response for a sport we have never seen produce data.",
          "type": "string"
        }
      },
      "type": "object",
      "x-owls-required": [
        "sport",
        "source",
        "available",
        "events",
        "freshness"
      ]
    },
    "RealtimeStreamPosition": {
      "description": "A position on a realtime stream: `seq` counts frames for one sport within one `epoch`.",
      "properties": {
        "epoch": {
          "description": "Opaque id of one run of the stream. A new epoch means the stream restarted and\nits `seq` numbering started again: reload the board.",
          "type": "string"
        },
        "seq": {
          "description": "Goes up by 1 per frame for the sport within one epoch.",
          "format": "double",
          "type": "number"
        }
      },
      "type": "object",
      "x-owls-required": [
        "epoch",
        "seq"
      ]
    }
  }
}