What is Simple Kalshi Bot?
The Simple Kalshi Bot is an automated trading system that operates on Kalshi’s prediction markets, specifically targeting Bitcoin (BTC) 15-minute price movement markets (KXBTC15M).
How It Works
The bot continuously monitors markets and executes trades based on multiple strategies:Signal Generation
Multiple strategies generate trading signals:
- PREVIOUS: Follows the result of the last settled market
- MOMENTUM: Analyzes BTC price direction over time windows
- CONSENSUS: Only trades when PREVIOUS and MOMENTUM agree
- ARBITRAGE: Exploits pricing inefficiencies
Trading Strategies
The bot implements seven distinct strategies in paper trading mode:1. PREVIOUS
Buys the same side as the previous market’s result.2. MOMENTUM
Analyzes BTC price direction over the last 60 seconds.3. CONSENSUS
The CONSENSUS strategy only trades when both PREVIOUS and MOMENTUM signals agree, providing higher confidence signals.
- Price ceiling enforcement
- Dynamic position sizing based on bankroll
- Daily and weekly loss caps
- Rolling performance monitoring
4. MOMENTUM_15
Similar to MOMENTUM but uses a 15-minute (900 second) window instead of 60 seconds.5. PREVIOUS_2 & CONSENSUS_2
Wait for favorable pricing (≤ $0.45) before executing their respective strategies.6. ARBITRAGE
Buys immediately, then attempts to hedge the opposite side when profitable.Risk Management
Bankroll Management
Loss Caps
Rolling Performance Monitoring
The bot tracks a rolling window of trades and calculates:- Win rate
- Break-even win rate (based on average win/loss amounts)
- Automatically pauses trading when performance drops below break-even
Data Persistence
All trades are logged to a CSV file with detailed information:The default CSV location is
data/mock_trades.csv for paper trading.Market Data Sources
Kalshi API
Fetches market information, prices, and settlement data:Coinbase API
Retrieves real-time BTC prices for momentum calculations:Next Steps
Paper Trading
Learn how to run the bot in simulation mode
Real Trading
Deploy the bot with real Kalshi API credentials