Skip to content

betting_combat.live.readings

readings — Cito’s readings of the fights on, recorded DURING the card (11-19 audit: the card run kept only the stream’s clock and the lines at each bell, so the in-round rows had no counts live): every every_s each fight on is asked for its newest snapshots and the new ones are written exactly as the archive writes them (FightDataFeed: ufc.snapshots kind ‘snapshot’ - received_at the moment we had it -, live_rounds - every round’s 22 counts -, live_totals) - the rows the training’s live draw (features.fight_ticks -> fight_blocks) is built from, read back by live.blocks as of each moment.

LiveReadings on(bout, clock, now) / poll(bout) / tick(bouts, clocks, now)

Classes

LiveReadings

The card’s live readings recorder (module doc).

on

on(bout: Bout, clock: FightClock | None, now: dt.datetime) -> bool

The fight is on (asked): Cito’s live id known, its first round started, not over after_s ago.

poll

poll(bout: Bout, limit: int | None = None) -> int

The fight’s new readings written (the archive’s rows, received_at now); how many.

tick

tick(bouts: dict[str, Bout], clocks: dict[str, FightClock], now: dt.datetime) -> None

Each fight on asked once every_s has passed; a failed ask logged and counted (the next tick asks again).