Skip to main content

Welcome to Simple Kalshi Bot

An algorithmic trading system for Kalshi prediction markets featuring multiple trading strategies, paper trading simulation, and genetic algorithm optimization for strategy evolution.

Quick Start

Get started with paper trading in under 5 minutes

Trading Strategies

Explore PREVIOUS, MOMENTUM, and CONSENSUS strategies

Genetic Algorithm

Evolve trading strategies using genetic algorithms

API Reference

Complete API documentation for all modules

Key Features

Paper Trading

Simulate trades with CSV logging and real-time statistics

Real Trading

Execute real trades on Kalshi with authenticated API

Multiple Strategies

PREVIOUS, MOMENTUM, CONSENSUS, and genetic evolution

Risk Management

Position sizing, loss limits, and price constraints

BTC Markets

Specialized support for BTC 15-minute markets

Demo Mode

Test strategies safely with Kalshi demo API

Getting Started

1

Install Dependencies

Install Python dependencies and configure your environment
pip install -r requirements.txt
cp .env.example .env
2

Run Paper Trading

Start the paper trading bot to simulate strategies
python3 bot.py
3

Analyze Results

Review your trade history and performance statistics
cat data/mock_trades.csv

Trading Strategies

PREVIOUS Strategy

Follow the trend by buying the same side as the previous market result

MOMENTUM Strategy

Trade based on BTC spot price direction over the last 60 seconds

CONSENSUS Strategy

Only trade when PREVIOUS and MOMENTUM signals agree

Genetic Evolution

Evolve optimal trading strategies using genetic algorithms

Build docs developers (and LLMs) love