Install
openclaw skills install kalshiRead-only Kalshi prediction market integration. Use for viewing markets, checking portfolio positions, analyzing prediction opportunities, and finding high-payoff/high-certainty trades. Triggers on Kalshi, prediction markets, event contracts, or trading recommendations.
openclaw skills install kalshiRead-only integration with Kalshi's prediction market API.
Install dependencies:
pip install requests cryptography
For portfolio access (RSA key signing required):
mkdir -p ~/.kalshi
mv ~/Downloads/your-key-file.txt ~/.kalshi/private_key.pem
chmod 600 ~/.kalshi/private_key.pem
~/.kalshi/credentials.json:{
"api_key_id": "your-key-id-here",
"private_key_path": "~/.kalshi/private_key.pem"
}
Or run interactive setup:
python scripts/kalshi_portfolio.py setup
# List trending markets
python scripts/kalshi_markets.py trending
# Search markets by query
python scripts/kalshi_markets.py search "bitcoin"
# Get specific market details
python scripts/kalshi_markets.py market TICKER
# Find high-value opportunities
python scripts/kalshi_markets.py opportunities
# View positions
python scripts/kalshi_portfolio.py positions
# View balance
python scripts/kalshi_portfolio.py balance
# Trade history
python scripts/kalshi_portfolio.py history
The opportunities command identifies markets where:
Formula: expected_value = probability * payoff - (1 - probability) * cost
A good opportunity has: EV / cost > 0.1 (10%+ expected return)
Kalshi markets span:
See references/api.md for endpoint details.