prediction-market-trader
Installation
SKILL.md
Prediction Market Trader — Kalshi Trading Toolkit
Trade prediction markets with edge. Scan markets, calculate true probabilities, size positions, execute orders.
Pipeline
- Scan — Pull open markets from Kalshi API by category (sports, weather, politics, economics)
- De-vig — Get bookmaker odds from Sofascore, remove vig to find true probabilities
- Compare — Find gaps between Kalshi price and true probability (minimum 4% edge)
- Size — Quarter-Kelly criterion for position sizing (max 15% of bankroll per trade)
- Execute — Place limit orders via Kalshi API with RSA-PSS authentication
- Monitor — Track positions, P&L, and exit on profit targets
Requirements
- Kalshi API credentials —
KALSHI_KEY_IDandKALSHI_PRIVATE_KEY(RSA private key, inline or .pem) - Node.js 18+ — for crypto.sign with RSA-PSS