betting_combat.rounds.market.research_set3
The research’s Set 3 rules, frozen as the port reproduced them before 2026-10-11, for the
parity tests under research.research_rules() (windows.RESEARCH): the row’s book is the
minute panel’s row AT t (its mid column), the research’s round-0 sofar (causal=False),
the missing spreads filled with the median over EVERY row of the build, the open interest
back-filled from the next row, the complete-core rule dropping a whole fight. Production never
runs these (the CV audit and the second review, 2026-10-11: each read past a row’s time); they
exist so the port’s reproduction of the frozen research stays checked.
Functions
drop_unpriceable
drop_unpriceable(side: pd.DataFrame) -> tuple[pd.DataFrame, dict[str, list[str]]]The side set’s complete-core rule: a listed side market that never had a book or a trade before a row cannot be priced, and its fight leaves the side set. Returns the kept rows and fight_id -> the columns that were empty.
set3_main
set3_main(trades_main: pd.DataFrame, minutes: pd.DataFrame, fights: pd.DataFrame, causal: bool = False) -> pd.DataFrameThe winner-market rows (research Set3.main), before the dataset keys are attached.
Args:
trades_main: :func:~.trades.trade_tables main table.
minutes: :func:~.minutes.set4_minutes.
fights: :func:~.listing.live_fights rows.
causal: no window of a row reaches past the row’s time (the round-0 sofar
window, see :func:window_bounds); False = the research.
set3_side
set3_side(trades_side: pd.DataFrame, minutes: pd.DataFrame, fights: pd.DataFrame, markets: pd.DataFrame, main: pd.DataFrame) -> pd.DataFrameThe side-market rows (research Set3.side) for the fights listing all of
:data:SIDE, before the dataset keys are attached.
Args:
trades_side: :func:~.trades.trade_tables side table.
minutes: :func:~.minutes.set4_minutes.
fights: :func:~.listing.live_fights rows.
markets: :func:~.listing.market_list rows (fight_id, name).
main: :func:set3_main (its mid_a).