betting_combat.rounds.features.props
The market’s pre-fight method prices per fight - P(goes the distance) and P(KO | finish), the two
inputs the primary’s clock reads (clock_v2: GoesDistanceModel, KoShareModel). Port of the
research job’s step 1 (data/ufc/cito/assess/job/j01_market.py), identical numbers.
Sources the sportsbook (2013-2024: ufc-master’s method odds, RawData.method_odds; its later
prop odds are corrupted) and Kalshi (2026: KXUFCDISTANCE ‘goes the distance’;
KXUFCMOF KO/TKO/DQ, Submission, Decision, Draw)
Moment Kalshi: the card-start moment of the winner prices (services.rounds_odds): the last
hourly candle ending an hour before the card’s first winner market closed, so no fight on
the card has started; a quote at the 0.01 / 0.99 rails or one-sided is dropped. Price =
the bid/ask mid; the method markets’ outcomes renormalised over the outcomes quoted (3+)
Fights a Kalshi event maps to its winner event (the same ticker suffix) and through the winner
event’s fighter names to the UFCStats fight (RawData._match_pairs); else the names in
the market’s rules text
Functions
kalshi_props
kalshi_props(distance: Iterable[Mapping[str, Any]], mof: Iterable[Mapping[str, Any]], candles: Mapping[str, Sequence[Mapping[str, Any]]], cuts: Mapping[Any, pd.Timestamp]) -> pd.DataFramePer Kalshi event (ticker suffix): the distance market’s mid and spread, and the method
outcomes’ renormalised mids, at the card date’s cut (cuts: card date -> the card’s first
winner close; the quote is the last hourly candle ending an hour before it). distance /
mof: the series’ markets as Kalshi sent them; candles: ticker -> hourly candles.
market_frame
market_frame(raw: RawData, K: pd.DataFrame) -> pd.DataFrameEvery UFCStats fight with its market prices (MARKET_COLUMNS; NaN where unpriced): the
sportsbook’s (2013-2024) and Kalshi’s (match_props rows).
match_props
match_props(K: pd.DataFrame, raw: RawData) -> pd.DataFrameKalshi suffix -> fight_id: the winner event’s fighter names (fights_kalshi), else the
names in the rules text; a fight listed twice keeps its tighter distance quote.
ok_mid
ok_mid(bid: float | None, ask: float | None) -> floatThe mid of a two-sided quote off the rails (else NaN).