Get started with Simple Kalshi Bot and see your first simulated trades in under 5 minutes.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/DeweyMarco/simple-kalshi-bot/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure you have:- Python 3.7 or higher installed
- pip (Python package installer)
- Basic command line familiarity
Quick Setup
Clone or Download the Repository
Get the source code on your machine:Or download and extract the ZIP file, then navigate to the directory.
Install Dependencies
Install the required Python packages:This installs:
requests- for API calls to Kalshi and Coinbasepython-dotenv- for environment configurationcryptography- for secure operations
Create Your Configuration
Copy the example environment file:The default settings work out of the box for paper trading:
.env
You don’t need to edit
.env for basic paper trading. The defaults use Kalshi’s demo API and simulate $5 stakes per trade.Watch It Trade
The bot will monitor markets and execute paper trades when conditions are met:When markets settle, you’ll see results:
View Trade History
All trades are logged to a CSV file atdata/mock_trades.csv. Open it in Excel, Google Sheets, or any spreadsheet program to analyze:
The CSV updates in real-time as trades are placed and settled. You can open it while the bot is running to see live results.
Understanding the Output
Status Line Format
[14:32:15]- Current timeKXBTC15M-24MAR05-T1445- Active market ticker(847s)- Seconds until market closesyes=$0.52 no=$0.51- Current ask prices for both sidesBTC=94,234- Current Bitcoin spot priceP:$-2.50- PREVIOUS strategy profit/lossM:$+1.75- MOMENTUM strategy profit/lossC:$+3.20- CONSENSUS strategy profit/loss- Additional columns show other strategy performance
Trade Notifications
Next Steps
Installation Guide
Learn about detailed configuration options and customization
Configuration
Customize strategies, risk parameters, and market selection