betting_combat.contracts.market
market.py — one contract on one fight on one venue: what it pays on, and the venue’s key.
Venue kalshi · polymarket (intl) · polymarket_usMarketKind what the contract is about: winner · draw · distance · ends_before · …MarketMethod the method a method market names (not a bout's ``Method``: a market's words, KO/TKO with or without the DQ)MarketStatus listed · open · closed · settled · voidPayout yes · no · voidMarket one venue's contract (``schemas.tables.catalog.MarketsTable``)OnMarket a row about one marketOne row per venue contract, never merged across venues: their rules differ (Kalshi’s KO/TKO counts a DQ, Polymarket intl’s does not; draws, no contests and technical decisions settle differently), so the same-looking contracts on two venues are two rows. The same contract on two venues is found by (bout_id, kind, fighter_id, method, round). Kalshi’s double listings are two rows too: two tickers, two contracts.
One venue market can be two of our contracts: Polymarket’s moneyline is one condition (intl)
or one slug (US) whose two sides are “A wins” and “B wins”. So a row names the venue market
(venue_key) and the side of it that pays on our YES (venue_side): Kalshi ‘yes’;
Polymarket intl the outcome’s index (‘0’ | ‘1’, its CLOB token in token); Polymarket US
‘long’ | ‘short’.
Classes
Market
Bases: OnBout
One venue’s contract on one fight.
MarketKind
Bases: StrEnum
MarketMethod
Bases: StrEnum
MarketStatus
Bases: StrEnum
OnMarket
Bases: Contract
A row about one market.
Payout
Bases: StrEnum
Venue
Bases: StrEnum