andrewkni / bayesian-spike-detector
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.
Find the author
- Repository: github.com/andrewkni/bayesian-spike-detector
- GitHub profile: @andrewkni
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.
Bring a strategy. Watch it become a bot.
Join the free live build on September 29 at 6:00 PM Pacific. Bring a market and a rule, or just watch. We’ll build a draft, review the workflow, demonstrate paper mode, and answer your questions.
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.