Skip to content

betting_combat.execution.plan

plan.py — what a strategy hands the execution: one opportunity, venue-free (Sam 2026-11-16).

Quote our side's top of one venue's book: the best bid to buy it (others', ours left out) and
the best offer of it, with their sizes
Limits what to hold at one moment: a resting buy of our side at ``bid`` (None: none) and every
offer of our side at or under ``take`` taken (None: none). No count: the execution takes
every contract the market gives at those prices (``feedback-fill-the-max``)
Plan one opportunity: buy ``outcome`` of the bout's market (``kind``, ``round``) from ``opens``
to ``closes`` by ``rule`` (the strategy's, called at every moment with the quote), stopped
at once when ``over(now)`` or ``stop_on(trade)`` says so (a finish); ``chances`` and
``inputs`` are what it decided on (the decision row)

The strategy owns every number (its fair, cushion, windows); the execution owns orders, fills, cash, venues and the ledger. A strategy class hands a Plan from its live step (RoundsStrategy.plan).

Classes

Limits

Plan

One opportunity (module doc).

Quote

Our side’s top of book on one venue (prices in our side’s terms, 0-1).

Rule

Bases: Protocol