Get your Kalshi Trading Bot running in 5 minutes!
npm install-
Copy the environment template:
cp env.example .env
-
Edit
.envand add your Kalshi API credentials:KALSHI_API_KEY_ID=your_api_key_id_here KALSHI_PRIVATE_KEY_PATH=./testKey.txt
-
Ensure your private key file (
testKey.txt) is in the project root.
node test-bot.jsnpm start- Check Status: Type
statusin the CLI - View Strategies: Type
strategiesto see performance - Start Trading: Type
startto begin automated trading - Stop Trading: Type
stopto halt trading - Exit: Type
quitto close the application
- Demo First: The bot starts in demo mode by default
- Trading Disabled: Set
TRADING_ENABLED=truein.envfor live trading - Risk Management: Start with small position sizes
- Monitor Logs: Check
./logs/directory for detailed information
| Setting | Description | Default |
|---|---|---|
TRADING_ENABLED |
Enable/disable actual trading | false |
MAX_POSITION_SIZE |
Maximum contracts per position | 100 |
RISK_PERCENTAGE |
Risk per trade (%) | 2 |
STOP_LOSS_PERCENTAGE |
Stop-loss threshold (%) | 5 |
TAKE_PROFIT_PERCENTAGE |
Take-profit threshold (%) | 10 |
The bot includes a Mean Reversion Strategy that:
- Enters positions when prices deviate from moving averages
- Uses configurable stop-loss and take-profit levels
- Manages risk with position sizing limits
- Automatically closes positions based on exit conditions
- Check the logs in
./logs/directory - Review the full README.md
- Ensure your API keys are correct
- Test with demo environment first
Your Kalshi Trading Bot is now configured and ready to trade. Start with demo mode to test everything works, then enable live trading when you're confident in the setup.