COLLEGEHOOPS SNIPER — HOW IT WORKS
The sniper pattern, re-aimed at college basketball: watch
the game, wait for the closing window, measure the lead against the clock
and the pace, and strike only past a certainty bar. This wave is a paper
recorder — it proves the measurement on real games before any money moves.
The one-paragraph version
Kalshi lists a winner market for each team in every NCAA men's and
women's game (KXNCAAMBGAME / KXNCAAWBGAME).
ESPN's scoreboard carries the live score and clock. Once a game's clock
enters the evaluation window (default: the last 300 seconds), the app
evaluates it ONCE: who leads, by how much, how many possessions are
left at this game's pace, and how certain the leader is to hold on. If
the certainty clears the league's bar, the app records a PLAY — the
would-be order, at the leader's ask, sized by the bid setting. If not,
it records a SKIP with the reason. Either way the record is scored to
the final buzzer: did the leader hold on, and what would the play have
made or lost?
The instrument (the part that is re-engineered per sport)
A college game is 2,400 seconds for both leagues — men play two
20-minute halves, women four 10-minute quarters. The model:
- Remaining possessions R = this game's measured pace × seconds
left. Pace comes from the score itself (points ÷ points-per-possession),
so a track meet and a rock fight are measured differently.
- Noise: the remaining scoring margin is Normal with
σ = possession sigma × √R. The college sigma (default 1.95) runs hotter
than the pro game's — possession arrow, one-and-one bonus, deeper
benches, wider talent spread.
- The fouling window: inside the last 180 seconds the trailing
team stops the clock and trades free throws for possessions, so the
effective possessions inflate (default boost ×1.35 at the buzzer,
ramping in). A lead that looks safe on raw pace is priced against the
chaos that is actually coming.
- Certainty = Φ(margin ÷ σ). The bar (default 0.90, set per
league) sits higher than a pro bar for the same margin and time —
fewer possessions to stabilise a lead, longer and wilder fouling
sequences, and early-season tournament mismatches that make pace
reads noisy. Men's and women's bars are separate settings and are
calibrated separately, always.
The full derivation and the calibration plan live in the repo's
INSTRUMENT.md.
Why a recorder first
Paper mode is locked ON in the settings store itself — no
screen, script or API call can turn it off in this wave — and the
worker contains no order-placing code path at all. The season is live
now, so the recorder banks real evaluated games immediately: every
play and skip, with the full game state, scored to settlement. When
the recorded sample says the bar is right (or how it should move),
arming becomes a decision made on evidence, per league.
The rails
- The floor is the only stop: the shared account's balance
(all shards summed) against the floor setting. A known balance below
a set floor latches recording off until it is cleared from the
dashboard.
- Kill switch: ON records kill-switch skips instead of plays.
It ships OFF here — the app cannot trade, so an ON switch would only
pollute the calibration record.
- League toggles: Men's and Women's are Enabled / Disabled
independently, from their cards. Disabled sits the whole league out;
records already made still score.
- Single-instance guard: every would-be order is stamped
with a deterministic id (
chs-<instance>-<market>-<game start>-p1).
The worker checks the shared account's recent orders each cycle; a
different instance's chs- tag stands this copy down
(banner + activity line) until the other goes quiet.
- STOP file: a file named STOP in the app directory halts
everything, the break-glass brake.
Reading the dashboard
- Today tiles: evaluated games, plays recorded, would-be
record and net — paper numbers, honestly labelled.
- Skip tiles are doors: tap one (Uncertain, Margin too small,
…) to see every game it sat out and what happened anyway — the
leader held or was caught, and what playing would have made.
- Watching: every live game, its Kalshi match, the leader's
ask, and the instrument's live certainty — the same computation the
recorder will use at the window moment.
- History: the recorded plays, paged 50 / 100 / 500 / All,
each scored to settlement when the game ends.
Data
Scores and clock: ESPN's public scoreboard JSON (men's and women's
college basketball), polled each cycle. ESPN is also a named
settlement source for both Kalshi series. Markets: Kalshi's public
API — open winner markets per series, and each leader market's
settlement result for scoring. Account balance (for the floor and the
balance card): Kalshi's authenticated read API, all shards summed;
the account is shared with CryptoSniper, and this app only reads it.