BANGER
Product status: Banger’s public beta is paper-only. References to live execution are future-looking. Venue rules and legal claims can change; verify current primary sources for your jurisdiction.
2026-11-12 · 6 min read · facts as of 2026-11-12

Write Boundary Cases for an NFL Spread Contract

Our earlier post, kalshi-nfl-contracts-explained, covers what Kalshi's NFL spread markets are and how the ladder of strikes is laid out. This post does something narrower and more useful for anyone writing or backtesting strategy code: it turns one documented contract rule into a boundary-case table. If you resolve a market in your own harness, the margin-of-victory edges are exactly where off-by-one bugs live.

Every score below is a hypothetical, labeled as such. No current market value, ticker, or forecast appears here. The point is to encode the rule correctly, not to call a game.

The rule the table is built on

Start at the primary source, not a market title. For the Kalshi football spread contract, the underlying is defined precisely in the FOOTBALLSPREAD contract terms. Kalshi states the underlying is the final point differential between the two teams, calculated as the team's final score minus the opponent's final score, including any overtime periods played.

The payout side is framed as a 'wins by' threshold. Kalshi's payout criterion covers the expiration values where the team wins the game by an amount qualified with language such as above, below, between, exactly, or at least. That qualifier is the whole game for boundary logic: 'wins by above 3' and 'wins by at least 3' are different contracts at a margin of exactly 3.

Two more documented rules shape the edges. All scoring in overtime periods counts toward the final margin. And on game completion, Kalshi's terms distinguish an abandonment before 55 minutes of play from one after it, with a separate handling if the governing league declares the game complete or final. Below 55 minutes with no final declared, markets that are not already definitively decided resolve to the last fair price set by the exchange in its sole discretion, rather than refunding your entry.

Strict versus inclusive thresholds

The single most common resolver bug is treating a strike line as the wrong kind of inequality. Kalshi's spread strikes are commonly phrased on half-point lines like 'wins by more than 2.5,' which removes the tie-at-the-line case entirely. But the contract-terms language also permits whole-number framings such as 'at least' and 'exactly,' where the margin can land precisely on the threshold. Your code has to know which comparison the specific strike uses before it settles anything.

A hypothetical boundary-case table

Assume a hypothetical team-versus-opponent spread strike written as 'wins by at least 3' (an inclusive whole-number threshold). All scores are invented for illustration. 'Yes side resolves true' means the payout criterion is satisfied; it does not imply any price, fill, or profit.

Note the last two rows. A spread 'wins by' strike needs the named team to actually win, so ties and losses are straightforward Yes-false cases for that strike. Do not import the 50-cent tie payout from the game-winner market into a spread resolver; that is a different contract with different terms.

Exceptional settlements to encode, not ignore

Normal binary settlement credits $1.00 to the correct side and $0 to the other. The edges are the exceptions, and a resolver that assumes clean $1/$0 everywhere will misprice them.

Treat 'last fair price' as an unknown value in your model, not a constant. It is whatever the exchange determines, so a resolver should flag that path rather than hard-code a number. Preserve the distinction between a settlement claim, cash actually credited, and a hypothetical executable value.

Checking your resolver against paper data

Once your settlement function encodes those edges, you can exercise the logic against recorded ticks rather than live money. Banger is a paper-research beta for exactly this: you write a Python Strategy, inspect versioned historical backtests, and run bounded paper experiments without funding an account or holding venue keys. Its hosted historical backtesting currently supports Kalshi binary markets. Install it with pip install bangertrades, and run a local paper record with banger run strategy.py --paper after account setup, or use the separate hosted path banger deploy strategy.py --paper, which is subject to admission and capacity.

Keep expectations honest about the simulation. A paper result is evidence under a particular data, fill, fee, and valuation model, not proof of real execution. The forward-paper context can fill a non-crossing resting limit at that limit and logs paper.fill.resting-assumed when it does, its reported-volume cap is not full book depth, and missing quotes can trigger a price fallback. Historical backtesting is a different model again, so do not assume both share identical fills. Inspect the actual result model rather than trusting a headline number.

Pin the specific current market ticker you are testing and preserve it; grabbing the first discovery result does not make a run reproducible. For a quick local check, run supervised and stop with Ctrl+C; hosted runs need their own stop confirmation, a stopped record, and completed resource cleanup, and a stopped badge can appear before cancellation finishes.

Next step

Read the FOOTBALLSPREAD contract terms yourself before you ship any resolver, since Kalshi can revise terms and self-certify new variants over a season. Reverify the exact margin, overtime, and completion language against the current document at review time. If you want to exercise the logic against recorded Kalshi data in a no-order, paper-only sandbox, you can explore it through /sign-up. No fills, returns, or real-venue execution are promised.

Sources

Keep reading

Run your first strategy free

Paper-trade on Polymarket and Kalshi market data without venue keys.

Start free