Skip to content

betting_combat.features.market_groups

market_groups — a fight’s markets by the OUTCOME they price (Sam 2026-11-20). Kalshi lists one outcome several ways; the groups say which markets are about the same thing, and how (checked at settlement on every settled fight, 11-20: winner A + B = 1 745 / 745; ‘ends by X’ = A by X + B by X 445 / 445; ends before round k = the ‘wins in round r’ markets, r < k, 440 / 440 and 439 / 440; distance = decision but for the draws).

group winner | ko | sub | distance | rounds_k (ends before round k) | draw
role, slot main the group's own market (winner: fighter A's; ko: 'ends by KO'; distance; ends before k)
mirror the same bet from the other side (winner: fighter B's - a trade there is a trade here at 1 - price,
its buyer's side turned)
same the same event listed again (distance: 'ends by decision', 'no round of victory'; draw: its
second listing)
part a piece that sums to the main (ko: A by KO, B by KO; sub; distance: A / B by decision;
rounds_k: A / B wins in round r, r < k)
sign +1: a YES buyer there bets TOWARD the group's outcome; -1 (the mirror): against it

A market can sit in more than one group (‘A wins in round 1’ is a part of rounds_2, rounds_3 …). A part’s price is not the group’s price (the parts’ prices SUM to it); a mirror’s is 1 - it; a same’s is it (the draw aside: ‘ends by decision’ is the distance less the draw, about a cent). Never a market of a DIFFERENT outcome turned round: 1 - sub is not KO.

Functions

group_map

group_map(markets: pd.DataFrame, bouts: pd.DataFrame) -> pd.DataFrame

markets: market_id, bout_id, kind, method, fighter_id, round (a venue’s); bouts: bout_id, fighter_a. Returns a row a (market, group): market_id, bout_id, group, group_id (bout_id:group), role, slot, sign. A market of no group (a kind not known here) has no row.