andrewkni / bayesian-spike-detector
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.
Find the author
- Repository: github.com/andrewkni/bayesian-spike-detector
- GitHub profile: @andrewkni
Watch a Kalshi bot get built live.
Join the free monthly group webinar on August 25 at 6:00 PM Pacific. See the product, bring a question, and get the calendar invite by email.
We'll email the calendar invite and reminders for this webinar. Registering does not create an account. See our Privacy Policy.
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.
One plan includes the visual builder, paper and live modes, hosted execution, and risk controls. Cancel anytime.