The basketball module of the sniper platform: NBA + WNBA game-winner
markets on Kalshi (KXNBAGAME / KXWNBAGAME), played
the sniper way — watch everything, strike only when it is decided.
CryptoSniper reads a gap off a book. Basketball has no book gap to read — it has a game. So the one re-engineered part is the measuring instrument: from the live score, clock and pace, it computes the probability that the team currently leading goes on to win. Inside each league's evaluation window (default: the last 120 seconds), when that certainty clears the league's bar (default 0.97), it buys the leader's market. Everything else — settings authority, the floor, the guard, the ledger — is the platform's shared mechanics, identical to CryptoSniper's.
A 6-point lead with 25 seconds left is not decided the way it is
in football. The trailing team fouls: the clock stops, the leader shoots
free throws, the trailer gets hurried possessions — the game gains
possessions the clock says do not exist. The instrument prices that:
expected foul cycles add variance (each cycle is a jump, not a drift) and
a small expectation gain for the leader (free throws minus the trailer's
quick possession). A trailer out of timeouts fouls less effectively, so
the same lead is worth more. At the default bar, up-6 with 25 s left and
timeouts unknown computes to about 0.96 — a skip. Up-6 with the trailer
out of timeouts: about 0.98 — a play. The full math is in the repo's
INSTRUMENT.md.
BasketballSniper ships in paper mode and places nothing. It watches live games, runs the instrument, and records every would-be play and every refusal — with the full game state — then grades them all against the final score. The record it builds is what calibrates the instrument before any live arming is even discussed. Live arming is a separate decision, per app, by the owner.
min_balance;
breaching it latches the app off until the owner re-arms.bbs-<ENV>-<market>-<epoch>-p1);
a second copy placing the same play is rejected by Kalshi itself, and a
copy that sees another instance's orders on the account stands down./ — landing. /dashboard — the full
dashboard. /docs — this page./api/state, /api/predictions,
/api/breakdown?kind=…, /api/activity,
/api/meta — the JSON the dashboard renders.POST /api/settings, POST /api/rearm —
owner controls, every change logged with its author.