Skip to content

betting_combat.feeds.checks

checks.py — is a card ready: every fight on our ids, each trading venue’s full menu of markets bound to it, the live links there, and the sources agreeing on who fights whom.

menu(venue, rounds) the markets a venue lists for one fight, by kind (11-07: every fight
with props had exactly this)
Gap one thing missing or disagreeing on one fight; ``due`` once it matters
(the fight is ``DUE`` or less away)
CardCheck a card's fights and their gaps: ``CardCheck.of(ids, day)``; the due
gaps are what a job alerts on

Kalshi lists a card’s props on the day (11-07: about 17:40 UTC, seven hours before the first fight) and Polymarket US its main card first, so a short menu is a gap from the start but due only near the fight; the card-day poll (CatalogFeed.refresh) keeps binding as they arrive.

Classes

CardCheck

of

of(ids: Ids, day: dt.date, now: dt.datetime | None = None) -> CardCheck

The card on day as the catalog holds it now.

Gap

Functions

menu(venue: Venue, rounds: int) -> dict[MarketKind, int]

The markets venue lists for a fight of rounds scheduled rounds, by kind (one row per contract side we hold: a US moneyline is two, long and short).