Skip to content

betting_combat.domain.card

A UFC fight as Kalshi lists it, and the rules that derive one from Kalshi’s markets.

A fight is an event on the winner series (KXUFCFIGHT-26SEP26BELEDW) with exactly two markets, one per fighter. Research convention: the market whose ticker sorts first is fighter A. The optional goes-the-distance market lives on the fight’s distance event (KXUFCDISTANCE-26SEP26BELEDW), ticker suffix -DIST; the side markets live on its method-of-victory, method-of-finish, victory-round and rounds events (KXUFCMOV-…, KXUFCMOF-…, KXUFCVICROUND-…, KXUFCROUNDS-…). Those events usually carry the winner event’s code but need not (the fighters’ order or spelling can differ: KXUFCFIGHT-26OCT03WILSOL / KXUFCROUNDS-26OCT03SOLWIL).

Classes

Fight

One fight. Its id is the Kalshi winner event; ticker_a/ticker_b/ distance_ticker are its Kalshi (reference) markets, side_tickers the side markets found on the day ((role, ticker) pairs).

kalshi_listings

kalshi_listings() -> list[Listing]

Functions

card_date_from_ticker

card_date_from_ticker(ticker: str) -> dt.date

The card date in a Kalshi event or market ticker: KXUFCFIGHT-26SEP26… → 2026-09-26.

card_id_for

card_id_for(league: str, card_date: dt.date) -> str

date_code

date_code(card_date: dt.date) -> str

distance_event

distance_event(event_ticker: str) -> str

The goes-the-distance sibling of a winner event.

event_type_from_competition

event_type_from_competition(competition: str | None) -> EventType

Kalshi’s card label (product_metadata.competition, recorded 2026-09-26): a number (‘331’) is a numbered card; ‘Fight Night’ a fight night; the Contender Series and other named series are ‘other’; events from before Kalshi labelled cards say just ‘MMA’ and are ‘unknown’.

sibling_event

sibling_event(event_ticker: str, series: str) -> str

The winner event’s code on another Kalshi series: usually the same fight’s event there, but not always (KXUFCFIGHT-26OCT03SILCON’s rounds event is KXUFCROUNDS-26OCT03SILWAN). Kalshi’s milestone links say which event is the fight’s (services.markets.linked_events); this is the fallback when a fight has none.