Skip to content

betting_combat.execution.config

config.py — the execution’s switches, one row per strategy x venue in the configs database (betting_combat.ufc_executions, sql/migrations/20261116_ufc_executions_configs.sql), Sam’s to set:

enabled the row trades at all (off: the venue is never touched)
mode paper (decided, filled on the venue's prints by the replay's rule, nothing sent) | live
kill_switch on: every resting order of the row cancelled at once, nothing sent (read every
``REREAD_S`` during the card)
settings the strategy's execution settings for that venue (rounds: cushion, passive_from,
take_to, rest_bid, passive_to, passive_margin, cancel_lag), over the saved strategy's
max_contracts a cap on one plan's contracts on the venue (NULL: none - every contract the market
gives, the cash the only limit)

Read fail-closed: an unreachable store or a malformed row stops the card’s trading (the session still records), never a guessed setting.

Classes

ExecutionConfig

Bases: BaseModel

Functions

read_executions

read_executions(db: Databases, strategy: str) -> list[ExecutionConfig]

Every venue row of strategy (validated; a venue the execution cannot trade is an error).