betting_combat.services.rounds_identity
Which UFCStats fighter each Kalshi competitor id is: the identity map the upcoming-card
loader resolves a Kalshi fighter by before its name (rounds_upcoming.resolve_card).
Learned from the history only where it is confirmed: a settled Kalshi fight matched to a
UFCStats bout (rounds.market.build_fights -> fight_ids) whose Kalshi result agrees
with the UFCStats winner binds its two winner markets’ competitor ids (ufc_competitor) to
the bout’s two fighter ids. A milestone of such a fight bridges its feed ids: one feed id
equal to a bound winner id, the other is the opponent (Kalshi issued a second id for a few
fighters: Ozzy Diaz, King Green, Ding Meng, Serghei Spivac). An id bound to two fighters is
dropped, never guessed; a fighter may hold several ids.
On the history (2026-10-04 audit): 1,653 bindings, 646 Kalshi ids, 642 fighters, no id bound to two fighters; by id alone 59.5% of 2026 sides were resolved from earlier cards.
Functions
kalshi_identities
kalshi_identities(tables: UfcTables, winner_markets: Sequence[Mapping[str, Any]], milestones: Sequence[Mapping[str, Any]] = (), raw: RawData | None = None) -> dict[str, str]Kalshi competitor id -> UFCStats fighter id (see the module doc), from the settled
fights of tables.fights_kalshi (cut to the card for a card’s loader: nothing learned
from its own result). A fighter the library keys by name (name:<name>) is not bound.