Kalshi
by @henrik-openclaw
Read-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.
clawhub install kalshiπ About This Skill
name: kalshi description: Read-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.
Kalshi Prediction Markets
Read-only integration with Kalshi's prediction market API.
Capabilities
Setup
Install dependencies:
pip install requests cryptography
For portfolio access (RSA key signing required):
1. Go to kalshi.com/account/profile 2. Create new API key β save the Key ID and download the private key 3. Store credentials:
mkdir -p ~/.kalshi
mv ~/Downloads/your-key-file.txt ~/.kalshi/private_key.pem
chmod 600 ~/.kalshi/private_key.pem
4. Create ~/.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
Scripts
Market Data (No Auth Required)
# List trending markets
python scripts/kalshi_markets.py trendingSearch markets by query
python scripts/kalshi_markets.py search "bitcoin"Get specific market details
python scripts/kalshi_markets.py market TICKERFind high-value opportunities
python scripts/kalshi_markets.py opportunities
Portfolio (Auth Required)
# View positions
python scripts/kalshi_portfolio.py positionsView balance
python scripts/kalshi_portfolio.py balanceTrade history
python scripts/kalshi_portfolio.py history
Opportunity Analysis
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)
Categories
Kalshi markets span:
API Reference
See references/api.md for endpoint details.
Important Notes
βοΈ Configuration
Install dependencies:
pip install requests cryptography
For portfolio access (RSA key signing required):
1. Go to kalshi.com/account/profile 2. Create new API key β save the Key ID and download the private key 3. Store credentials:
mkdir -p ~/.kalshi
mv ~/Downloads/your-key-file.txt ~/.kalshi/private_key.pem
chmod 600 ~/.kalshi/private_key.pem
4. Create ~/.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