Skip to content

betting_combat.trading.session

One fight night of strategy 4 (rounds), start to finish.

configs + the active rounds model ─► the card on Kalshi
─► restore everything recorded for this card ─► strategy 4's card plan
─► every poll: the live feed · strategy 4's decision at each round break
· execute (paper or live) · settle finished fights · record
─► stop when every fight is over and settled, or the card window has passed

Paper and live share every line up to the executor. Nothing here trades on a guess: missing books, a stale feed, a missing model or a missing price becomes a recorded no-trade reason, and a database that cannot record stops the run. Monitoring (the Grafana tables) never stops a card: its failures are counted.

Classes

CardSession

run

run() -> SessionResult

SessionDeps

SessionError

Bases: RuntimeError

The run cannot trade safely (e.g. live mode without the Kalshi credentials).

SessionResult