betting_combat.providers.polymarket.models
models.py — Polymarket’s payloads as typed vendor rows, intl (Gamma, CLOB, data API; read-only from the US) and US (the KYC’d exchange). Prices 0-1, sizes in contracts, times aware UTC.
Team a fighter as a venue lists one ("teams"): its id, name, provider idsIntlMarket one intl market (a CTF condition): type, line, its two outcomes and tokensIntlEvent one intl fight: game id, start, live state, teams, marketsLevel · Book a book: bids and asks (intl CLOB) or bids and offers (US)IntlTrade one intl trade (data API: the taker's side)PricePoint one price-history point (intl: a price; US: long and short)UsSide one side of a US market: long or short, and the team it backsUsMarket one US market (a slug): type, sides, stateUsEvent one US fight: game ids, start, state (``eventState``), teams, marketsBbo a US market's best bid and offer and statsSportsState one intl sports-socket update (game id, period, elapsed, score)UsOrder · UsPosition · UsBalance our US account: an order, a position, the cashgameId is the same on intl and US for one fight: the join between the venues. US teams
carry PROVIDER_UFC ids, which are FightMetric fighter numbers (Cito’s live fighterId).
Classes
Bbo
Bases: _Row
Book
Bases: _Row
A book: the bids, and the asks (intl) or offers (US), as served.
IntlEvent
Bases: _Row
One intl fight. start_time is the CARD’s start, not the fight’s.
IntlMarket
Bases: _Row
One intl market: a condition with two outcomes, each its own CLOB token.
IntlTrade
Bases: _Row
One intl trade from the data API: the taker’s side of one outcome token.
Level
Bases: _Row
PricePoint
Bases: _Row
One price-history point: intl p (the token’s price), US long / short.
SportsState
Bases: _Row
One intl sports-socket update: the game’s status, period, clock and score.
Team
Bases: _Row
A fighter as a venue lists one. provider_ids: US’s (PROVIDER_UFC is FightMetric’s
number); intl carries one providerId.
UsBalance
Bases: _Row
UsEvent
Bases: _Row
One US fight. start_time is the fight’s scheduled start (30-minute steps).
UsMarket
Bases: _Row
UsOrder
Bases: _Row
One of our US orders.
UsPosition
Bases: _Row
UsSide
Bases: _Row
One side of a US market: long true is the side the slug names first (fighter 1 on a
moneyline; YES on a prop).