Skip to content

betting_combat.feeds.vocab

vocab.py — every vendor’s words in ours: methods, results, stances, card sections, event kinds, statuses, and what a Kalshi or Polymarket market is about. One place, so a word a vendor adds is one line here and nowhere else.

method_of · stance_of · section_of · event_kind · bout_status_of · event_status_of · country_of
KalshiContract · kalshi_contract a Kalshi market's kind, method, round (its fighter is
its ``ufc_competitor``: the catalog resolves it)
PolyContract · intl_contract · us_contract a Polymarket market's kind, method, round, line
and which fighter side

Classes

KalshiContract

PolyContract

Functions

bout_status_of

bout_status_of(text: str | None, cancelled: bool = False) -> BoutStatus

country_of

country_of(text: str | None) -> str | None

One name per country (UFCStats says ‘USA’, Cito ‘United States’).

event_kind

event_kind(title: str | None, slug: str | None = None) -> EventKind

The card’s kind by its name. The specials (Noche UFC, the White House’s UFC Freedom 250) are main cards: numbered (Sam 2026-11-11); a TUF finale, ‘UFC Live’ and ‘UFC Macao’ were Fight Nights under other names; Road to UFC and the 1990s specials are other.

event_status_of

event_status_of(text: str | None) -> EventStatus

intl_contract

intl_contract(market_type: str | None, question: str | None, line: float | None) -> PolyContract | None

A Polymarket intl market from its sports type and question. Its fighter (method or round of victory, the moneyline’s outcomes) is named in the question or outcome: the feed finds it.

kalshi_contract

kalshi_contract(ticker: str, custom_strike: dict[str, object] | None, subtitle: str | None) -> KalshiContract | None

What a UFC series market is about, from its series, its suffix and its custom strike; None for a series we do not read.

method_of

method_of(text: str | None) -> Method | None

A result’s method in Cito’s or UFCStats’ words (‘KO/TKO’, ‘U-DEC’, ‘Decision - Split’, “TKO - Doctor’s Stoppage”, ‘CNC’, ‘Overturned’ …); ‘Other’ when unread, None when blank.

section_of

section_of(text: str | None) -> CardSection | None

stance_of

stance_of(text: str | None) -> Stance | None

us_contract

us_contract(slug: str) -> PolyContract | None

A Polymarket US market from its slug: ‘aec-…’ the moneyline (long = fighter 1), and the ‘astatc-…-’ props (gtd-yes, mof-ko, mov-f1-dec, rof-before-r2, rov-f2-r3, rov-dec).