betting_combat.domain.config
Typed rows of the three configuration tables (configs.betting_combat.*).
Every row is validated on read: a malformed value fails closed with a named
error instead of trading on a bad number. The SQL CHECK constraints in
sql/betting_combat_configs.sql and these validators state the same limits.
Classes
DataJobConfig
Bases: _Row
Mode
Bases: StrEnum
PortfolioConfig
Bases: _Row
RoundsConfig
Bases: _Row
A row of strategies priced by the rounds model (‘rounds’: “not over this round”;
‘distance’: “goes the distance”): the columns its card run reads.
A database without the row leaves that strategy off (ConfigStore.rounds returns
None).
RoundsPromotion
Bases: _Row
When the weekly refit may promote its own candidate (the rounds row of
strategies): only with auto_promote, every refit guard passed, layer 2’s
out-of-sample log loss no worse than the market’s and the meta AUC at least
promote_min_meta_auc; otherwise the candidate stays unpromoted, with a finding. Seeded
on (the refit job itself is seeded disabled).
Functions
money_source
money_source(cfg: RoundsConfig | None, portfolio: PortfolioConfig) -> RoundsConfig | PortfolioConfigWhose money controls a strategy runs under: its own row’s when it sets a sizing bankroll, else the portfolio’s (the rows before the strategies were separated).