Bot for Kalshi
Sentiment & Reinforcement Learning

andrewkni / bayesian-spike-detector

by Andrew Ni (andrewkni)

Repository metadata checked 2026-09-23. GitHub was accessible; latest repository push: 2026-01-16. This does not verify current trading compatibility, security, or returns.

What it does

Bayesian model that distinguishes "fake" YES price spikes (low volume + widening spread) from "real" repricings (high volume + tightening spread), then fades the fakes. Enters NO when posterior mu > 0.7. Includes a CSV-based backtester tracking price/volume/spread deltas.

What we learned from it

the volume-and-spread joint signal is much stronger than either alone for distinguishing manipulation from real moves. This is the kind of strategy that works only because most participants react to price alone.

Get the free weekly Kalshi flow report

One email every Monday with the past week's Kalshi activity: the largest fills, where size kept accumulating, the biggest movers, and the most traded markets. Numbers and tickers — no picks, no predictions.

You're on the list. The next report goes out Monday.

Don't want to maintain your own bot?

Bot for Kalshi is the no-code platform for automated prediction-market trading — visual builder, signals, encrypted credentials, kill switch. The infrastructure these open-source projects build, ready to use.

Start building →

One plan includes the visual builder, paper and live modes, hosted execution, and risk controls. Cancel anytime.