Kalshi UFC Favorite Bot
Stakes a fixed amount on every UFC favorite an hour before the fight
Typeexperiment
Statusprototype
Updated2026-06-15
SourcePrivate
What it is
A one-command bot (python start.py) that scans open UFC fight markets on Kalshi, picks the favorite of each bout and buys YES for a fixed dollar stake about an hour before the expected start. A local dashboard manages the API key, stake, lead time and demo or production mode, starts and stops the bot, and reports realized and unrealized P&L from the Kalshi portfolio.
The problem
Placing the same rules-based bet across every fight card by hand is tedious and easy to miss.
How it works
- Scans the KXUFCFIGHT series every 60 seconds; each fight is two mutually exclusive YES/NO markets and the favorite is the higher-priced side. Each bout is bet once and coin-flips below a minimum price are skipped.
- Keys off each market's expected_expiration_time because close_time is a two-week settlement buffer.
- Places marketable limit orders a couple of cents above the ask using RSA-signed Kalshi requests.
- FastAPI backend and a vanilla JS dashboard run in one process, and the script installs its own dependencies on first run.
Stack
PythonFastAPIuvicornhttpxcryptographySQLiteJavaScript
Disciplines
For your business
Rule-based betting and trading automations with a self-serve control dashboard.