TopRank Skills

Official OpenClaw rules 54%

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.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 kalshi 技能。 若已安装,则直接安装 kalshi 技能。

Overview

Skill Key
henrik-openclaw/kalshi
Author
henrik-openclaw
Source Repo
openclaw/skills
Version
-
Source Path
skills/henrik-openclaw/kalshi
Latest Commit SHA
6234a00ed3c7bc610c90042b54e0d1fd80a7b18e

Extracted Content

SKILL.md excerpt

# 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...

Related Claw Skills