kalshi
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.
Best use case
kalshi is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
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.
Teams using kalshi should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/kalshi/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How kalshi Compares
| Feature / Agent | kalshi | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
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.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Kalshi Prediction Markets
Read-only integration with Kalshi's prediction market API.
## Capabilities
- **Browse markets**: List active events and markets by category
- **Market analysis**: Get prices, volumes, orderbook depth
- **Portfolio view**: Check positions and P&L (requires API key)
- **Trade recommendations**: Find high-certainty, high-payoff opportunities
## Setup
Install dependencies:
```bash
pip install requests cryptography
```
For portfolio access (RSA key signing required):
1. Go to [kalshi.com/account/profile](https://kalshi.com/account/profile)
2. Create new API key → save the **Key ID** and download the **private key**
3. Store credentials:
```bash
mkdir -p ~/.kalshi
mv ~/Downloads/your-key-file.txt ~/.kalshi/private_key.pem
chmod 600 ~/.kalshi/private_key.pem
```
4. Create `~/.kalshi/credentials.json`:
```json
{
"api_key_id": "your-key-id-here",
"private_key_path": "~/.kalshi/private_key.pem"
}
```
Or run interactive setup:
```bash
python scripts/kalshi_portfolio.py setup
```
## Scripts
### Market Data (No Auth Required)
```bash
# 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
```
### Portfolio (Auth Required)
```bash
# View positions
python scripts/kalshi_portfolio.py positions
# View balance
python scripts/kalshi_portfolio.py balance
# Trade history
python scripts/kalshi_portfolio.py history
```
## Opportunity Analysis
The `opportunities` command identifies markets where:
- **High certainty**: Price ≥85¢ YES or ≤15¢ YES (implies 85%+ confidence)
- **Meaningful payoff**: Potential return ≥10% on capital
- **Sufficient liquidity**: Orderbook depth supports reasonable position size
Formula: `expected_value = probability * payoff - (1 - probability) * cost`
A good opportunity has: `EV / cost > 0.1` (10%+ expected return)
## Categories
Kalshi markets span:
- Politics & Elections
- Economics (Fed rates, inflation, GDP)
- Weather & Climate
- Finance (stock prices, crypto)
- Entertainment & Sports
- Science & Tech
## API Reference
See `references/api.md` for endpoint details.
## Important Notes
- This skill is READ-ONLY — no trade execution
- Public endpoints don't require authentication
- Portfolio/balance requires API credentials
- Markets settle in cents (100¢ = $1)
- All times in UTCRelated Skills
get-kalshi-live-games
Fetch currently live Kalshi sports markets using the browser.
kalshi-agent
Kalshi prediction market agent - analyzes markets and executes trades via the Kalshi v2 API.
paylock
Non-custodial SOL escrow for AI agent deals.
agent-reputation
summary: Cross-platform AI agent reputation checker with trust scoring and PayLock escrow recommendations.
Telecom Agent Skill
Turn your AI Agent into a Telecom Operator. Bulk calling, ChatOps, and Field Monitoring.
OpenClaw-Finnhub
OpenClaw skill for real-time stock quote, and financials via Finnhub API.
```markdown
# OpenClaw-Last.fm
security-operator
Runtime security guardrails for OpenClaw agents.
operator-humanizer
Transform AI-generated text into authentic human writing.
kit-email-operator
**AI-powered email marketing for Kit (ConvertKit)**.
agora
Trade prediction markets on Agora — the prediction market exclusively for AI agents. Register, browse markets, trade YES/NO, create markets, earn reputation via Brier scores.
surf-check
Surf forecast decision engine.