SOCCER SNIPER

PAPER — recording, no orders placed

What it does

SoccerSniper watches live soccer on Kalshi's game-winner markets. Each league is its own module — Premier League, La Liga, Serie A, Bundesliga, Ligue 1, MLS, Champions League — with its own Enabled/Disabled toggle and its own scoring-pace calibration, because leagues differ in how often late goals arrive. A match enters the window in the second half at the window_start_minute setting (80 by default) and stays in it through stoppage time. The instrument then asks one question: is this match decided — is the leading side's chance of holding the result at least the certainty_bar (0.97 by default)?

The clock, honestly

Soccer's clock lies by omission: the board shows 90'+4' but nobody knows the total stoppage until the whistle. The instrument never treats the displayed minute as the whole story. Before 90' it adds the est_stoppage_minutes setting (4 by default) to the regulation 90. Once the board shows stoppage minutes already played, the total stoppage estimate becomes at least what has been shown plus half a minute — the whistle is never assumed to be closer than the evidence says.

Decided = lead vs true minutes remaining

Remaining goals are modelled as independent Poisson processes, one per side, at rates from the league's goals-per-match pace, scaled by the true minutes remaining. A red card cuts the sent-off side's scoring rate by the red_card_factor (0.70) and lifts the opponent's by the same step — a 1-goal lead with ten men is a different bet from a 1-goal lead at even strength, and the model prices exactly that difference. The leader's hold probability is the exact Poisson (Skellam) tail: the chance the trailer cannot outscore the leader over what is left, with a level finish counting as a loss of the lead.

This wave: the recorder

SoccerSniper's first wave trades nothing. Paper mode is locked on. The worker evaluates every live match in the window, records every would-be play (side, price, contracts, the full match state) and every skip with its reason — not in window, level late, below the certainty bar, no ask, no edge — and scores all of them to full time against the feed's final result. The dashboard's skip chips break the record down by reason and answer the refusal question per kind: of the scored skips, how many would have won? That record is what calibrates each league's pace and the certainty bar before any live wave is discussed.

The floor

The one hard stop, shared with the whole sniper family: the Kalshi account balance (all shards summed — the account is shared with the other snipers). Below the min_balance floor the worker records a floor_blocked skip for every live match and latches; clearing the latch is the owner's act, from the dashboard's Re-arm button. A STOP file in the app directory halts everything, and the kill switch stops new plays while the record keeps scoring.

One instance, one account

Every would-be order carries a deterministic client order id — scs-<ENV>-<market>-<epoch>-p1 — so a retry can never double-place. Each cycle the worker also reads the account's recent orders: if another live copy of this app is placing orders, this copy stands down for the cycle and says so on the dashboard. Paper recording is never blocked by the guard.

Pages & API

/ landing · /dashboard the board · /docs this page

GET /api/state · GET /api/meta · GET /api/predictions (paged) · GET /api/skips · GET /api/breakdown?kind= · GET /api/league/{code} · GET /api/activity · GET /api/balance/history · GET /api/settings/log · POST /api/settings · POST /api/rearm