Skip to content

betting_combat.rounds.market.links

Which fight a side or distance market belongs to, when its event ticker does not say.

The research joined Kalshi’s side series (distance, method of victory, method of finish, rounds, victory round) to a fight by the event code: KXUFCROUNDS-26SEP26ROSBAR belongs to KXUFCFIGHT-26SEP26ROSBAR. Kalshi does not always use one code across a fight’s series: KXUFCFIGHT-26OCT03SILCON is KXUFCROUNDS-26OCT03SILWAN, 26MAR07BORDER is 26MAR07BORDE, 26SEP02HOLROD is 26SEP01HOLROD (another date code), 26SEP12MORMORA is 26SEP12MORMOR2. Those fights had no side markets in the datasets. Kalshi’s milestones link every series’ event of a fight (primary_event_tickers); the live discovery reads them (services.markets), and the data job stores them (kalshi_milestones). Here a side or distance event’s fight is, first found:

  • its fight’s milestone: the event is among the primary links of a milestone whose winner event (milestone_winner_event) is a stored fight (all 1,955 milestone-linked stored side events agree with the rules below, but for the five of 26APR18PHIJOU: see duplicates);
  • its own code, when it is a winner event’s code (the research’s join, unchanged);
  • otherwise its fighters (the names and competitor ids on its method-of-victory and victory-round markets) matched to a winner event of the same date code +/- 1 day: both fighters, each by Kalshi’s competitor id or by the full name in any word order (“Meng Ding” is “Ding Meng”), and exactly one winner event.

A moved event is served under the winner event’s code (event_ticker; the listed one kept as listed_event_ticker; the market tickers are never changed). A side event matched to no fight, to several, or to a fight that already has an event of that series (the milestone’s first, then the one under its own code, is kept) stays as listed and is reported.

Duplicates: Kalshi listed a few fights twice under two winner events (26APR18JOUPHI / PHIJOU, 26AUG22CHAWIN / WINCHA, 26AUG22DERDOL / DOLDER). One is kept (:func:duplicate_listings: the milestone’s, else the larger volume); the other’s winner markets are left out and its side events are served under the kept one. The research kept the first listing by ticker, which was the thin orphan book for CHAWIN and left PHIJOU’s side events without their fight.

Fighter A/B of a method-of-victory or victory-round market: the research read it from the ticker (the market code starting with a winner ticker’s code), which fails when the codes differ (OMDEC under OMA) and misreads a code that starts with the other’s (MOR2DEC under MOR). Each such market whose fighter the competitor id or the name settles, and whose ticker code says otherwise or nothing, carries fight_side (‘a’ / ‘b’: Kalshi’s fighter A is the winner ticker that sorts first), which :func:~.listing.fight_markets reads first. On the stored history (2026-10-04) this changes no market of a fight the research joined.

Classes

Relinked

The markets with every side event under its fight’s code (see the module doc).

Functions

distance_tickers

distance_tickers(distance: Iterable[Mapping[str, Any]]) -> dict[str, str]

fight key (the winner event’s code) -> its goes-the-distance market’s ticker (-DIST), for distance markets as :func:relink_side_events serves them.

duplicate_listings

duplicate_listings(pairs: Mapping[str, Sequence[Mapping[str, Any]]], milestones: Sequence[Mapping[str, Any]] = ()) -> dict[str, str]

Winner events listing a fight another event of the card date also lists (the same two fighters’ names): each dropped event -> the one kept. Kept: the one a milestone names (a live milestone before a cancelled one), else the larger volume, else the first listed. 2026-08-22 CHAWIN (no milestone, $138k) and WINCHA (the milestone’s, $2.07M, every side event): WINCHA.

milestone_winner_event

milestone_winner_event(milestone: Mapping[str, Any]) -> str | None

The fight’s KXUFCFIGHT event of a Kalshi milestone (the API’s JSON): its main_game_event_ticker, else (2025 milestones have none) the one winner event among its primary links; None when neither says.

relink_side_events(markets: Mapping[str, Sequence[Mapping[str, Any]]], milestones: Sequence[Mapping[str, Any]] = ()) -> Relinked

markets (series -> its markets in list order, as stored) with each side and distance event under its fight’s code, a fight listed twice under one winner event (:func:duplicate_listings; the other’s markets are left out of the winner series), and the fighter-level markets whose fighter the ticker misreads carrying fight_side (see the module doc). Every market is a copy; nothing given is changed.

A side event’s fight, first found: its fight’s milestone (milestones: Kalshi’s JSON, primary_event_tickers), else its own code (a dropped listing’s code: the kept one), else its fighters. Two events of one series for one fight: the milestone’s, else the one under its own code, is kept; the other is reported.