Kalshi API Skill
Purpose: Interface with Kalshi prediction markets for paper and live trading
Status: In Development
Created: March 2, 2026
API Docs: https://trading-api.readme.io/reference/
Overview
Kalshi is a regulated prediction market exchange in the US. This skill provides:
- Market data retrieval
- Paper trading (demo mode)
- Live trading (when approved)
- Portfolio tracking
- Automated strategy execution
Configuration
API Credentials
Store in ~/.nemo/credentials/kalshi.json:
{
"api_key": "YOUR_API_KEY",
"api_secret": "YOUR_API_SECRET",
"mode": "demo"
}
Modes
demo— Paper trading with fake money (default)live— Real money trading (requires explicit approval)
Commands
Get Markets
kalshi markets list --category sports --status open
kalshi markets get --id KC-WS-2024
Get Balance
kalshi balance
Place Order (Demo)
kalshi order create --market KC-WS-2024 --side yes --amount 100 --price 55
Get Positions
kalshi positions list
Strategy Integration
See strategies/ folder for example implementations:
momentum.py— Momentum-based entry/exitmean_reversion.py— RSI + Bollinger Bandssnipe_maker.py— Late entry, maker exitcrowd_fade.py— Bet against 80%+ consensus
Safety Rules
- Default to demo mode — Never use live without explicit approval
- Max position size — 5% of portfolio ($50 max initially)
- Daily loss limit — Stop if down >$20 in a day
- Logging — All trades logged to
logs/kalshi-trades.jsonl
NEMO's Note: "Prediction markets are the purest form of trading — no fundamentals, just probabilities. The edge is in the math." 🐟