微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📊

预测市场数据与交易机会分析

Kalshi · v1.0.0
金融交易 安全 S 级 榜单 #17 作者 henrik-openclaw 公开目录收录
2.5k 下载 3 安装 5.6k 收藏 49 浏览

简介

Kalshi 预测市场只读集成,浏览市场、分析交易机会、查看持仓,识别高确定性高回报押注,需 API 密钥访问个人账户。

原始描述

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.

通过你的 Agent 添加

安装目录:kalshi/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/kalshi/
Codex CLI~/.codex/skills/kalshi/
DeepSeek Harness~/.agents/skills/kalshi/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


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

  • 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 the Python SDK:

pip install kalshi-python

For portfolio access, user needs to provide:

  1. API Key ID (from Kalshi dashboard)
  2. Private key PEM file

Store credentials in ~/.kalshi/credentials.json:

{
  "api_key_id": "your-key-id",
  "private_key_path": "~/.kalshi/private_key.pem"
}

Scripts

Market Data (No Auth Required)

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

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

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

prediction-marketskalshievent-contractsquantitative-analysisportfolio-trackingread-only-apitrading-research

同类 Skill