Kalshi NBA Scalp Bot
Event-driven bot that scalps Kalshi NBA markets on every made 2 or 3
Typeexperiment
Statusprototype
Updated2026-06-13
SourcePrivate
What it is
An event-driven Kalshi bot that watches live NBA play-by-play from ESPN, buys the team that just scored a two- or three-pointer to win, and flips out a configurable number of seconds later. A FastAPI dashboard shows live P&L and has an on/off toggle. Requests to Kalshi are RSA-signed and a pytest suite covers the core logic.
The problem
Short-lived price moves after scoring events are too fast to trade by hand.
How it works
- A poller turns ESPN live scoring plays into trade events (espn.py, nba.py).
- The bot places the entry order on Kalshi and schedules the exit N seconds later, tracking state and P&L in dedicated modules.
- A FastAPI app with a static dashboard shows live P&L and a master on/off switch; settings load through pydantic-settings.
Stack
Python 3.11FastAPIuvicornhttpxpydanticcryptographypytestuv
Disciplines
For your business
Event-driven execution bots with a live monitoring dashboard and a kill switch.