betting_combat.feeds.static
static.py — the static history: the research’s files the legacy store keeps (database betting, schema betting_combat), on our ids. What no vendor serves again.
StaticFeed sportsbook() fights_sportsbook (de-vigged moneylines, 2010 on): ``odds`` source 'static', book 'sportsbook', market 'moneyline', one row per fighter master() ufc-master (2010-03 .. 2026-03): its moneylines (book 'ufc_master') and its bookmakers' method odds (market 'method_of_victory': '{name} to win by KO/TKO' · 'by submission' · 'by decision', one row each per fighter), and the official rankings it carries at each card (``rankings`` board 'media', the card's date: the champion rank 0, pound-for-pound by sex) kalshi_card() fights_kalshi (2025-05 on): Kalshi's card-start and closing quotes of the winner markets, as the research priced them (``odds`` source 'kalshi_card') segments() card_segments (Wikipedia, 1996 on): each fought bout's card section (Cito's archive calls every old bout 'main': Wikipedia's stands, through ``Ids.correct``); an upcoming card's stays Cito's. The place on the card is not set here (``card_order``: the catalog's) build all four; ``update`` the same (every row keyed by the file's own row: rerun, nothing new is written)The prices as the files have them: decimal_odds from the American price, implied_p its
raw 1/decimal (the vig left in: the research’s de-vigged price is each side’s share of the two),
except kalshi_card whose implied_p is the research’s own price (card_prob_*). A file
row’s time is not known: observed_at is its card date at 00:00 UTC (a line before the fight),
the closing quote’s the market’s close. The method odds of 2025-26 are in the file and here, as
they are (the research cut them at 2024: their overround is ~0.99, uncalibrated).
Every row lands on the bout our matcher finds (the card’s date ± 1 day, both names; the file’s
winner must agree), the file’s fighters oriented to ours; a row it cannot place is missed.
Classes
StaticFeed
Bases: Feed
The legacy store’s static files onto our tables (see the module doc).
build
build() -> dict[str, Any]kalshi_card
kalshi_card() -> dict[str, int]load
load() -> Idsmaster
master() -> dict[str, Any]segments
segments() -> dict[str, Any]Card sections onto the catalog’s bouts of past cards (its lock: one catalog writer). Wikipedia’s section stands on a fought card: Cito’s archive calls every old bout ‘main’ (3,048 before 2015), so a held ‘main’ is no evidence; a section other than ‘main’ that Wikipedia overrides is noted. An upcoming card is Cito’s (its live card).
sportsbook
sportsbook() -> dict[str, int]update
update() -> dict[str, Any]