betting_combat.contracts.market_data
market_data.py — what the venues print: trades, book changes, minutes. Every price is the YES side’s, 0 to 1; every size is contracts (fractional on Polymarket). The venue is the market’s (a market is one venue’s contract), so no row repeats it.
Side yes · noBookSide yes_bid · no_bid: the two bid ladders (a YES ask is 1 - the best NO bid)Trade one public trade (``schemas.tables.market_data.TradesTable``)BookChange one level of a book: a snapshot's or a delta's (``BooksTable``)PriceMinute one market's minute (``PricesMinuteTable``)MarketRead how far a build has read one market's history (``MarketReadsTable``)Classes
BookChange
Bases: OnMarket
One book level as we received it: a full snapshot’s level, or a delta’s new size.
BookSide
Bases: StrEnum
MarketRead
Bases: OnMarket
One market’s history read by a build, trades and minutes both, up to through: a
market read past its close (+ the build’s pad) is final, never asked again by a build
(one with no trade and no minute too).
PriceMinute
Bases: OnMarket
One market’s minute on its venue (known MINUTE_KNOWN after its stamp).
Side
Bases: StrEnum
Trade
Bases: OnMarket
One trade a venue printed.