betting_combat.trading.rounds_one
The ONE execution inside the card run (domain.config.RoundsConfig.execution ‘one’,
2026-11-08): the strategies of domain.config.ONE_STRATEGIES decide with
rounds.execution.Execution - the backtest’s (rounds.backtest.execution) to the line - at
their breaks and in-round. The pieces trading.rounds.RoundsRunner turns such a decision into
working orders with:
settings the strategy row (its money resolved, ``trading.rounds.settings_of``) as ``execution.Settings``: its markets' instruments, breaks, Kelly, caps, min edge, the production shade (rounds and distance), cushion, sales, in-round rules and clock ('split' for the KO option, else 'pooled')chances the break's ``execution.Chances`` from the primary's chances (P(ends this round), P(distance), the KO masses), the 3-round last round averaged with the last-round model's when the row says so (``average``)position the fight's position from the run's own filled orders in its mode: the joint instruments as ``joint.holdings_from_fills`` nets them; the KO market netted the same way (a YES buy sells the NO held: each cancelled pair pays 1), its NO as KNprices the books' instrument prices (``joint.book_prices``) and the KO option's NO sidein-round the volume caps per instrument (the KO option's: its market's dollars)Functions
average
average(ch: Mapping[str, float], other: Mapping[str, float]) -> dict[str, float]The two models’ chances averaged, cell by cell (the research’s x07.chances): every
cell both give; the others as ch has them.
break_chances
break_chances(ch: Mapping[str, float], draw: float, round_idx: int, shade: float) -> ChancesThe break’s chances (backtest.execution.Decision.chances): P(ends this round) = 1 -
no finish, P(distance) = the fight from here’s decision chance, the draw share, the shade at
round_idx 1, this round’s KO chance and the later rounds’ (trading.rounds_v2.noko_chances).
ko_price
ko_price(book: Any, cushion: float) -> PriceThe KO option’s NO side (KN) from its YES book: ask 1 - the YES bid, bid 1 - the YES ask;
none without a two-sided book (backtest.execution._row_prices).
one_settings
one_settings(cfg: RoundsConfig, s: Settings, shade: float) -> OneSettingsThe row’s execution.Settings (s: its decision settings, the money resolved).
shade: the production shade (the round-1 distance correction) for a row trading the
rounds or distance market; the KO option’s row none (the research’s presets).
p_no_ko_of
p_no_ko_of(ch: Chances) -> floatP(no KO from here) of the decision’s chances (what KN pays on).
position
position(fills: Iterable[Fill], round_idx: int) -> tuple[Position, float]The fight’s Position at the decision of round_idx r (joint.holdings_from_fills
for every market but the KO option’s; that one netted the same way: its NO held is KN).
Also the KO option’s YES held beyond its NO (never sought: a finding when > 0), counted as
paying on the KO states.
trades_break
trades_break(breaks: str, round_idx: int, sched_rounds: int | None) -> boolWhether a row with these breaks decides the break after round round_idx of a fight
scheduled for sched_rounds (execution.Settings.trades_break).
vol_caps
vol_caps(dollars: Mapping[str, float], round_idx: int, share: float) -> dict[str, float]Each instrument’s in-round cap: the share of its market’s dollars (the pair: its thinner leg’s; KN: the KO option’s).