How the snipe works
Twelve coin markets on Kalshi settle every 15 minutes: BTC, ETH, SOL, XRP,
DOGE, BNB, HYPE, ZEC, NEAR, ADA, BCH and TON. Each one asks a simple question — will the
coin's price at the close be above or below where it started
(the strike)?
The sniper waits until a set moment before the close (the
entry seconds setting, default 120 — two minutes out), looks at the
price right then, and buys the side that is winning at that moment:
spot at or above the strike buys Above, below buys Below. The bet is small
— the max bid amount (default $1) buys as many contracts as fit at
the best asking price — and it is placed as an immediate-or-cancel taker
order, so it fills at once or not at all. The position then simply rides to
settlement, a couple of minutes later: win and each contract pays $1, lose
and it pays $0.
That is the whole strategy. Because the winning side near the close
usually costs 97–99¢, a win pays pennies and a loss costs the dollar — the
record on the dashboard shows exactly that shape, and the balance floor
below is what keeps the game bounded.
The hourly family
Kalshi also lists hourly markets for the same coins, closing on
the hour. They are shaped differently: where a 15-minute event is a
single market, an hourly event is a ladder of strike markets —
dozens of rungs asking "above or below this price?" at every level.
The sniper trades exactly one rung per hour: the reference
market, the rung whose strike sits closest to where the coin's
price stood when the hour opened. That keeps the play identical — a
strike fixed at the open, a price that drifts away from it over the
hour, and a book that prices the drift by the entry moment.
The hourly series are discovered, never hard-coded: the worker
reads Kalshi's live series listing and keeps, for each watched coin,
the hourly series that actually lists on-the-hour markets with real
strikes. A coin whose hourly markets carry no usable strike — or none
are listed at all — simply does not appear in the hourly block; the
family is whatever the listing honestly offers. (On the day this
shipped, that was BTC, ETH, SOL, XRP, BNB and HYPE.)
Everything else is shared — the hourly markets run the same
play under the same dials:
- the entry moment (entry seconds before the close — for hourly
markets, before the top of the hour);
- the second shot and strength sizing, on the same terms;
- the minimum gap, judged on the fresh book at snipe time;
- the balance floor and its latch, the kill switch, paper mode;
- the per-coin switches — one switch per coin governs both
families.
One switch — Hourly markets in Settings — enables or disables
the whole family. The big Today tiles stay combined; the strip under
them splits the day by family, and every History and breakdown row
carries a small 15M / HOURLY tag so the two never blur.
The controls
Start Sniper / Stop Sniper
The small button in the Balance card drives the kill switch and
nothing else. Start clears the kill switch so the loop may buy; Stop sets
it, and the status reads "All Snipes Stopping" until the current
15-minute window closes, then "Stopped". Positions already placed are
never touched by the kill switch — cancels and settlements always pass.
Min balance floor — and the latch
The floor is the app's only stop. Before every snipe the worker reads
the account balance — the sum of all shards — and if cash is below
the floor, the snipe is refused and the app latches: it stays
stopped, window after window, until you press RE-ARM on the dashboard.
Re-arming does not move the floor. If the floor is unset (0) it
self-initializes to the current balance the first time it is read; a floor
you type in is never overwritten. Lowering the floor gives the sniper room
to keep playing through the dips its own $1 bets (and the other apps on
the shared account) cause.
Max bid amount
The most one snipe may cost. Contracts = floor(max bid ÷ ask), so at a
99¢ ask a $1 bid buys exactly one contract.
Stake ladder
Sizing that grows with the account. Two Settings controls: the
ladder step (default $100) and the ladder stake (default
$1.50). While the account total — cash + positions, the total
the dashboard balance card shows — sits at or above the step, every
snipe stakes the ladder stake instead of the max bid amount, on both
passes and both families. The step is judged fresh for every order:
when the total falls back below the step, stakes step back down to
the max bid amount on their own — nothing latches. Strength sizing
multiplies whichever stake applies, so a strength second shot above
the step stakes ladder stake × the strength multiplier. The ladder
stake is placed only when it fits above the balance floor; when it
does not fit but the normal stake does, the snipe falls back to the
max bid amount — the trade was still wanted. Ladder-staked trades are
flagged on their records, and the trade detail shows "Ladder stake"
where it applied. Set the step to 0 to turn the ladder off.
Entry seconds before close
How long before each market closes the snipe fires (10–890 seconds,
default 120). Earlier entries see cheaper prices and more doubt; later
entries see near-certain outcomes at near-$1 prices.
Order retries
Extra attempts (0–3, default 1) when posting an order fails
transiently — a timeout, a dropped connection, a server 5xx. Every
retry reuses the same client order id (a lost first attempt can never
double the position), re-reads the price first, and gives up if the
winning side flipped, the ask moved more than 5¢, or fewer than 15
seconds remain. A clear rejection from Kalshi is never retried.
Second shot
Sometimes the entry order is accepted but fills nothing — the
book moved in the instant before it landed. With the second shot on
(its own toggle in Settings, default on), such a coin gets one
retry at the second shot seconds mark (default 60 seconds
before the close). Only coins whose first order actually went
unfilled qualify: a coin that was skipped at entry — too close, no
ask, any gate — placed no order, so it is never re-evaluated, and a
coin whose order filled is never touched (never a second position in
the same coin and window). The retry is judged fresh, by the full
rule set in the same order as the first pass: the balance floor and
kill switch, the coin's own toggle, the minimum gap on the
fresh split — if the gap has narrowed under your minimum by
then, the retry is skipped as Too close like any other — the
distance guard on the fresh spot, and the order retries above. A fill the retry recovers counts in the day's
predictions like any other, and the dashboard notes it under the
Today tiles: "Second shot: N fills today".
Strength sizing (second shot only)
The second shot is judged at the last moment, on fresh numbers —
and a wide fresh gap is the strongest signal the window
offers: with a minute left, the losing side needs a near-miracle.
So when the retry's fresh gap is at or above the strength gap
(default 75 points), the shot stakes more: its dollar budget is the
applicable base stake — the max bid amount, or the ladder stake
while the account total sits at/above the ladder step — × the
strength multiplier (default 2), and the
contract count follows from that budget as usual. Below the strength
gap the shot stakes the normal amount, and under the minimum gap it
still sits out entirely. The first pass is never sized — strength is
a property of the last moment, not the entry. Two guards keep the
bigger stake honest: the multiplied stake is placed only when it
fits above the balance floor (cash minus the stake stays at or
above the floor); when the double does not fit but the normal stake
does, the shot fires at the normal amount — the trade was still
wanted — and when neither fits, the shot does not fire at all.
Strength-sized fills are flagged on their prediction records, and
the dashboard counts them beside the Second shot line: "Strength: N
fills today".
Minimum gap between sides
At snipe time the sniper compares the two sides' implied percentages
— the Above/Below split shown on every card. If the gap between the
winning side's % and the losing side's % is smaller than this setting
(0–100 points, default 50, set by the owner), the prediction is
skipped and the skip is recorded as Too close, with the split in
the skip row: a near-even split is a coin flip, not a snipe. Example:
Above 40% / Below 60% is a 20-point gap — skipped while the minimum is
50; Above 25% / Below 75% is exactly 50 — that one snipes. Set it to 0
to turn the rule off.
Under the control, the sniper offers a suggested gap. It
replays the last 7 days of scored windows — every filled trade that
settled, plus every Too Close skip whose market has since settled —
and totals what taking each window was (or would have been) worth at
each candidate minimum from 0 to 90 in steps of 10. The best-scoring
candidate is shown with the dollar difference against your current
setting and the number of scored windows behind it. It stays quiet
until at least 20 windows have scored, and it is advisory
only: it never changes the setting — you turn the dial. The same
line appears under the scoreboard on the Too Close page. Amounts are
before fees.
Minimum distance from the line
A second check, alongside the gap, on a different measurement: how
far the price itself sits from the strike — the line — at snipe time,
as a percentage of the strike. The split is book prices; it can look
comfortable while the spot is a hair from the line, and a hair is all
a flip needs (the loss that designed this rule: SOL, decided on the
split, sat 0.048% from its strike and crossed it in the final two
minutes). If the measured distance is smaller than this setting
(default 0.05%), the prediction is skipped and recorded as
Too tight, with the measured distance and the would-be price
on the skip row — so the skip is priced and scored to its market's
outcome exactly like a Too Close skip, on its own breakdown page.
Exactly at the minimum trades. The rule judges both passes and both
families, and a first-pass Too tight skip places no order, so it
never qualifies for the second shot. Set it to 0 to turn the rule
off. Treat it as what it is — a hairline tool: at 0.05 it
refuses only races that are on the line. Wider is not safer:
in the replay of the day the rule was designed on, 0.10 would have
skipped winners worth more than the losses it avoided — proximity
to the line is also where the cheap payouts live.
Kill switch vs the STOP file
Two different brakes. The kill switch is the everyday control:
it blocks new buys only. The STOP file (a file named STOP in the
app directory) is the break-glass halt: everything stops, settlements
included, until the file is removed.
Paper mode
Its own separate toggle in Settings, independent of Start/Stop. In
paper mode the full loop runs and logs what it would have bought,
but no order is ever sent. The status reads "Sniping — PAPER".
Hourly markets
One switch for the whole hourly family (see "The hourly family"
above). Enabled, the same coins' hourly markets snipe under the same
rules as the 15-minute ones; disabled, every hourly market sits out —
no evaluations, no skips, and the hourly block leaves the dashboard.
The 15-minute markets are never affected.
Per-coin toggles
Every coin card has a switch. Flip a coin off and it sits out from the
next snipe moment — silently, with no restart and no flood of skip rows;
flip it back on and it rejoins. The switch is shared: it governs the
coin in both families, the 15-minute markets and the hourly ones. A
position placed before the flip still settles normally.
Instance guard
Two copies of this app must never trade the same account at once —
when the app moves to a new server, the old copy and the new one could
otherwise both snipe the same windows. The guard lives in the app
itself. Every order carries a client order id that names the
snipe — this copy's instance name (the Instance name setting,
shown in the dashboard header), the market's series, the window's
close and the pass — so the same snipe sent twice is the same order:
Kalshi rejects the duplicate instead of filling it twice, and retries
of one snipe always reuse its id. And at boot and at every window the
worker reads the account's recent orders: an order carrying a
different instance's name means another copy is live, so this
copy stands down — no live orders, a STOOD DOWN banner, an
activity line — and resumes on its own once the other copy has been
quiet for half an hour. A check that cannot be completed sits the
window out rather than trading unverified. Paper predictions are
never blocked: paper fills are local, so a paper copy can safely
shadow a live one. Orders from before this guard existed, and orders
placed by other apps or by hand, carry no instance name and are never
mistaken for another copy.
Auto-refresh
The header toggle makes the dashboard reload itself the moment each
new 15-minute window opens, so fresh numbers — and any newly deployed
version — appear on their own. The choice is remembered on that device;
it is off until you turn it on.
The rails
- The balance floor is the only stop. This app deliberately has
no orders-per-day cap and no daily-loss stop — those rails belong to
WeatherEdge and Edge15, not to the sniper.
- Fail closed. If the balance cannot be read, the snipe is
refused rather than placed blind. If the floor is unset and no balance
can be read, live orders are refused.
- One snipe per market. A market already sniped is never
sniped twice, and an ambiguous order outcome is resolved by its client
order id, never by re-buying. The one exception is the second shot: an
order Kalshi confirms filled nothing may be retried once,
under its own new client order id.
- Settings are authoritative. Every behaviour value lives in
the app's own database, is re-read every worker cycle, and every change
is written to the settings log with its author.
- The account is shared. WeatherEdge, Edge15 and the sniper
trade from one Kalshi account; the balance figures here are the whole
account, all shards summed.
Reading the dashboard
- Status row (under the header): the newest thing the worker
did, in plain words, while it is fresh; between windows it counts down
to the next snipe moments — the next 15-minute snipe and, while the
hourly family is enabled, the next hourly one.
- Balance (all shards): Cash, Positions (the current market
value of everything open, from the positions read — never guessed from
the balance body) and Total. The split line under them says whose
positions they are — Sniper, WeatherEdge, Edge15, or Other — and the
floor line shows the floor and whether cash is above it, below it, or
latched.
- Balance — last 24h: cash over time, scaled to the range the
money actually moves in. The dashed line is the floor; green and red
dots are settled wins and losses.
- Today's tiles: predictions placed today, wins, losses, win
rate and net P&L (Eastern day). Predictions counts filled trades
only — plus an Unfilled counter of its own: orders that were
placed but filled nothing. Unfilled attempts never appear in the
grids; the counter is the tuning gauge — change a setting (the
minimum gap, the entry time) and watch it: if Unfilled climbs, your
settings are costing you fills. Beside it, a Too Close
counter: bids never placed at all because the gap between the sides
sat under your minimum at snipe time (the caption names the live
minimum). It is the gauge for the minimum-gap setting itself —
lower the minimum and it falls, raise it and it climbs. Every one
of the five tiles is a door: click Predictions, Wins, Losses,
Unfilled or Too Close for the day's records behind the number. The
Too Close page also shows what the leader did anyway in each
skipped market — won or lost — and prices every skip: the trade
amount the snipe would have paid for one contract at the leader's
price (recorded by the gate at skip time; for skips recorded before
that capture existed, derived from the split), what it would have
won, and what it would have lost. Under the grid, the rule's dollar
scoreboard totals the settled skips — saved by skipping against
missed by skipping — so the gap rule's own scoreboard builds
itself.
- Today — by family: the strip under the Today tiles splits
the day into its two families — a 15 MIN row and a HOURLY row, each
with its trades, record and net. The tiles above stay combined; the
rows always add up to them.
- Coin cards: each coin's strike, live spot, the Above/Below
split, its last snipe, its year-to-date record, and its enable switch.
Click a card for the coin's own page. While the hourly family is
enabled, a second SNIPING WINDOW block tagged HOURLY sits under the
15-minute one: the same cards for the hourly reference markets, with
their own countdown — and the same per-coin switch (one switch, both
families).
- Coin detail: the coin's record broken out by period — last
15 minutes, last hour, today, this week, this month, this year — over
its filled prediction list, with the coin's own Unfilled counter
beside the period tiles — and its own Too Close counter beside that,
counting the coin's bids the minimum-gap rule held back today. Open (pending) predictions are counted
separately, never inside the win/loss record.
- History: every filled trade, with the Top Winner / Top Loser hero
bar on top — the coins with the best and worst all-time net, each with
its record and its biggest single trade. Each row carries a small
15M / HOURLY family tag (the breakdown pages and Recent Skips rows
carry it too). The grid pages — 50, 100 or 500 rows at a time, or
All — with the same pager above and below it naming the page count.
Click any row for the full trade detail.
- Recent Skips: every snipe the loop refused, with the reason
in plain words (no ask on the winning side, below the floor, kill
switch, and so on).
- Settings: the controls above, applied the moment you change
them — no restart. The settings log records who changed what, when.
Version history
- v1 — the app itself: strategy loop, balance-floor latch,
settings store, dashboard. Deployed disarmed; armed by the owner.
- v2 — the floor self-initializes to the current balance when
unset.
- v3 — balance parse fix (Kalshi's per-shard dollar strings),
Cash / Positions / Total shown separately, one global snipe
countdown.
- v4 — order retries; Recent Skips and History as proper grids
with trade detail; Start/Stop in plain words; the true Positions figure
from the positions read.
- v5 — the live-window fixes: IOC orders no longer carry an
expiration (Kalshi rejected every first order for it), balance reads
back off politely and are read once per window; the live status
line.
- v6 — order ids read from Kalshi's flat response, so the
settle-time fill check works; quieter activity stream. First live
snipe settled WON under v5/v6.
- v7 — coin detail screen with per-period hero tiles; the
balance chart rebuilt to a readable scale with the floor label inside
the plot.
- v8 — per-coin enable/disable toggles and the YTD line on
every card.
- v9 — landing page and this doc page; the dashboard moves to
/dashboard; Top Winner / Top Loser hero bar; the Positions split line;
the compact Start/Stop inside the Balance card; the auto-refresh
toggle; the version footer on every page. Code now kept in a local git
repo.
- v10 — UI cleanup: "15 MIN" shows once, on the Sniping Window
header, instead of on every card; each card's enable/disable is a
single switch that carries its ENABLED / DISABLED word.
- v11 — the coin detail screen carries the same enable/disable
toggle as the cards, in its header: one control, one setting, both
surfaces (and the worker) agree from the next snipe moment.
- v12 — the minimum-gap rule: a new Settings control, "Minimum
gap between sides" (default 50 points, set by the owner). When the
winning side's % and the losing side's % sit closer than the minimum
at snipe time, the prediction is skipped as Too close — the
gate judges the same Above/Below figures the cards display.
- v13 — unfilled attempts leave the grids: the History grid
and each coin's prediction list show filled trades only, the
Predictions counters count filled trades only, and Unfilled becomes a
counter of its own — on the Today tiles and on each coin's page — so
the owner can watch missed fills move as the settings change. The
attempt rows stay in the database; only the display changed.
- v14 — the Too Close counter: bids the minimum-gap rule
never placed get a counter of their own, beside Unfilled — on the
Today tiles (its caption names the live minimum) and on each coin's
page — so the owner can watch the gap setting's own cost as it is
tuned. Display and counting only; the gate itself is unchanged.
- v15 — every Today tile is a door: clicking Predictions,
Wins, Losses, Unfilled or Too Close opens that tile's breakdown
page for today — the filled trades, the winners, the losers, the
attempts that filled nothing, and the gap skips, each skip marked
with what the leader did anyway once its market settles. The
counts and the pages share one set of filters, so they can never
disagree.
- v16 — the Too Close page prices every skip: the gate now
records the leader's actual best ask at skip time, and the page
shows the trade amount that never happened, the win it would have
paid and the loss it would have booked (older skips derive the
amount from their recorded split). Under the grid, three boxes
total the settled skips — saved by skipping, missed by skipping,
and the rule's net so far.
- v17 — the suggested gap: the sniper replays the last 7
days of scored windows (settled filled trades and resolved Too
Close skips) at every candidate minimum from 0 to 90 and shows the
best-scoring one under the Minimum gap control and on the Too
Close page — with its sample size and the dollar difference against
the current setting. It needs at least 20 scored windows before it
speaks, and it never changes the setting itself.
- v18 — the second shot: a coin whose entry order filled
nothing gets one retry at 60 seconds before the close (its own
Settings toggle and seconds control), judged fresh by the full rule
set — a gap that narrowed in the meantime skips it as Too close
like any other. First-pass skips never qualify, a filled coin is
never re-bought, and the fills the retry recovers are counted
under the Today tiles.
- v19 — strength sizing: on the second shot only, a fresh
gap at or above the strength gap (75 points) multiplies the stake
by the strength multiplier (×2) — the last moment's widest signal
carries the biggest stake. The multiplied stake must fit above
the balance floor, falling back to the normal amount when the
double does not fit; the first pass is never sized, and the
dashboard counts the strength fills beside the Second shot line.
- v20 — the hourly family: the same coins' hourly markets,
discovered from Kalshi's live series listing (never hard-coded),
sniped under the exact same rules — the reference rung nearest the
hour's opening price stands in for the 15-minute market. One
Settings switch enables or disables the whole family; the
dashboard gains the hourly SNIPING WINDOW block, both countdowns
in the Watching banner, the Today — by family strip, and 15M /
HOURLY tags on History and breakdown rows. Every switch state on
the dashboard now reads Enabled / Disabled.
- v21 — the header reorganisation: Balance and the balance
chart share the top row at their natural height (the chart takes
the wider share, so the 24h curve reads properly) instead of
stretching to match the Settings column; Settings becomes a
full-width panel below them, numeric fields in the left column and
the switches in the right. Layout only — no control, wording or
behaviour changed.
- v22 — History paging: the History grid no longer renders
every trade at once. A pager above and below the grid offers page
sizes of 50, 100 or 500 rows — or All — with Prev / Next and the
page count ("Page 2 of 5"). Rows still open the same trade detail,
newest first, exactly as before; nothing about trading changed.
- v23 — the spot-distance guard: a new Settings control,
"Minimum distance from the line" (default 0.05%). At snipe time —
both passes, both families — a coin whose price sits closer than
the minimum to its strike is skipped as Too tight, however
wide the split looks, with the measured distance and the would-be
price recorded on the skip row so it is scored to outcome like a
Too Close skip. A hairline tool by design: wider is not safer.
- v24 — the stake ladder: two new Settings controls, the
ladder step (default $100) and the ladder stake (default $1.50).
While the account total (cash + positions) sits at or above the
step, every snipe — both passes, both families — stakes the ladder
stake instead of the max bid amount; below the step, stakes step
back down on their own. Strength sizing multiplies whichever stake
applies, and the ladder tier keeps the floor fallback: a ladder
stake that would breach the floor falls back to the normal stake.
Ladder-staked trades are flagged on their records and shown as
"Ladder stake" in the trade detail.
- v25 — three more coins join the family: ADA, BCH and
TON — the only other same-structure crypto 15-minute series on
Kalshi — take their place in the watching rotation with their own
cards, detail screens and Enabled/Disabled switches, under exactly
the same rules as the original nine. Twelve coins, 48 windows an
hour. The three are 15-minute only: none of them is wired into the
hourly family (ADA lists no hourly series, BCH's is daily, TON's
lists no markets).
- v26 — the single-instance guard: two copies of this app
can never trade the same account at once. Every order's client
order id now names the snipe — instance name, series, window close,
pass — so a duplicate submit is rejected by Kalshi instead of
filling twice, and each copy's orders are recognisable on the
account. At boot and at every window the worker checks the
account's recent orders for a different instance's name; finding
one, it stands down (STOOD DOWN banner, no live orders) and
resumes by itself when the other copy goes quiet. Two new Settings
controls: the instance name and the guard's own switch.