← 返回 Skills 市场
rsquaredsolutions2026

Kalshi Event Contract Tracker

作者 rsquaredsolutions2026 · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
112
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install kalshi-tracker
功能描述
Track Kalshi event contract prices, order book depth, and recent trades. Covers sports, politics, economics, and weather markets. Converts contract prices to...
使用说明 (SKILL.md)

Kalshi Event Contract Tracker

Monitor Kalshi prediction market contracts — prices, order books, and trade history.

When to Use

Use this skill when the user asks about:

  • Kalshi market prices or event contracts
  • Prediction market odds for sports, politics, economics, or weather
  • Order book depth or liquidity on Kalshi
  • Converting Kalshi contract prices to American odds
  • Recent trades or volume on a Kalshi market
  • Comparing Kalshi prices against sportsbook odds

Event Categories

Common Kalshi event categories:

Category Series Prefix Examples
Sports SPORTS- NBA winners, NFL spreads, World Cup
Politics POL- Elections, policy decisions
Economics ECON-, FED- GDP, inflation, Fed rate decisions
Weather WEATHER- Temperature records, hurricane landfalls
Finance FINANCE- Stock prices, crypto prices
Entertainment ENT- Award show winners, box office

Operations

1. List Active Events

Browse events with optional category filtering:

curl -s "https://api.elections.kalshi.com/trade-api/v2/events?status=open&limit=50" \
  -H "Authorization: Bearer $KALSHI_API_KEY" \
  | jq '[.events[] | {
    ticker: .event_ticker,
    title: .title,
    category: .category,
    markets_count: (.markets | length),
    volume: .volume
  }] | sort_by(-.volume) | .[:20]'

To filter by category (e.g., sports):

curl -s "https://api.elections.kalshi.com/trade-api/v2/events?status=open&limit=50&series_ticker=SPORTS" \
  -H "Authorization: Bearer $KALSHI_API_KEY" \
  | jq '[.events[] | {
    ticker: .event_ticker,
    title: .title,
    markets_count: (.markets | length),
    volume: .volume,
    close_time: .close_time
  }] | sort_by(-.volume)'

2. Get Contract Prices

Fetch current Yes/No prices, volume, and status for a specific event's markets. Replace EVENT_TICKER with the event ticker from operation 1:

curl -s "https://api.elections.kalshi.com/trade-api/v2/events/EVENT_TICKER" \
  -H "Authorization: Bearer $KALSHI_API_KEY" \
  | jq '{
    event: .event.title,
    category: .event.category,
    markets: [.event.markets[] | {
      ticker: .ticker,
      subtitle: .subtitle,
      yes_price: (.yes_bid // "no bid"),
      no_price: (.no_bid // "no bid"),
      yes_ask: (.yes_ask // "no ask"),
      no_ask: (.no_ask // "no ask"),
      last_price: .last_price,
      volume: .volume,
      open_interest: .open_interest,
      status: .status,
      close_time: .close_time
    }]
  }'

3. Convert Contract Prices to American Odds

After fetching prices, convert to American odds for sportsbook comparison:

curl -s "https://api.elections.kalshi.com/trade-api/v2/events/EVENT_TICKER" \
  -H "Authorization: Bearer $KALSHI_API_KEY" \
  | jq -r '.event.markets[] | "\(.subtitle)	\(.last_price)"' \
  | python3 -c "
import sys
for line in sys.stdin:
    parts = line.strip().split('	')
    if len(parts) != 2:
        continue
    name, price_str = parts
    try:
        price = float(price_str) / 100
    except (ValueError, TypeError):
        print(f'{name}: no price available')
        continue
    if price \x3C= 0 or price >= 1:
        print(f'{name}: {price_str}c (off the board)')
    elif price > 0.5:
        odds = -(price / (1 - price)) * 100
        print(f'{name}: {price_str}c → {int(odds):+d} (implied {price:.1%})')
    elif price \x3C 0.5:
        odds = ((1 - price) / price) * 100
        print(f'{name}: {price_str}c → +{int(odds)} (implied {price:.1%})')
    else:
        print(f'{name}: {price_str}c → +100/-100 (implied 50.0%)')
"

4. Check Order Book Depth

View resting orders to assess liquidity for a specific market. Replace MARKET_TICKER with the market ticker from operation 2:

curl -s "https://api.elections.kalshi.com/trade-api/v2/markets/MARKET_TICKER/orderbook" \
  -H "Authorization: Bearer $KALSHI_API_KEY" \
  | jq '{
    ticker: .ticker,
    yes_orders: [.orderbook.yes[]? | "price: \(.[0])c  qty: \(.[1])"],
    no_orders: [.orderbook.no[]? | "price: \(.[0])c  qty: \(.[1])"],
    spread: ((.orderbook.yes[0]?[0] // 0) + (.orderbook.no[0]?[0] // 0) - 100),
    depth_yes_top3: ([.orderbook.yes[:3]?[]?[1]] | add // 0),
    depth_no_top3: ([.orderbook.no[:3]?[]?[1]] | add // 0)
  }'

5. Fetch Recent Trades

See the last trades executed on a market for momentum and volume analysis:

curl -s "https://api.elections.kalshi.com/trade-api/v2/markets/MARKET_TICKER/trades?limit=20" \
  -H "Authorization: Bearer $KALSHI_API_KEY" \
  | jq '[.trades[] | {
    time: .created_time,
    price: .yes_price,
    count: .count,
    taker_side: .taker_side
  }]'

Output Rules

  1. Always show the event title, market subtitle, and contract ticker
  2. Show contract prices in cents (e.g., 45c for $0.45)
  3. When showing American odds conversion, include both the cent price and the converted odds
  4. For order books, report the bid/ask spread and top-3 depth on each side
  5. Flag markets with fewer than 5 contracts of top-of-book depth as "thin liquidity"
  6. Flag markets with bid/ask spread > 10c as "wide spread — use limit orders"
  7. Always show volume and open interest for context
  8. Note the market close time so the agent knows time-to-expiry

Error Handling

  • If KALSHI_API_KEY is not set, tell the user to create a Kalshi account at https://kalshi.com/ and generate an API key
  • If the API returns 401, the API key may be expired — suggest regenerating it
  • If an event ticker returns empty markets, the event may have settled or been delisted
  • If rate limited (429), wait 60 seconds before retrying
  • If order book is empty, the market may be halted or near expiry

About

Built by AgentBets — full tutorial at agentbets.ai/guides/openclaw-kalshi-tracker-skill/.

Part of the OpenClaw Skills series for the Agent Betting Stack.

安全使用建议
This skill appears to do what it says (read-only Kalshi market queries), but before installing: 1) verify the author/source since the registry metadata does not declare the KALSHI_API_KEY even though SKILL.md requires it; that suggests the listing might be incomplete or stale. 2) Ensure python3 is available on the agent environment (SKILL.md calls a python3 snippet) or ask the publisher to add python3 to the required binaries. 3) Confirm you are comfortable providing a Kalshi API key (KALSHI_API_KEY) and limit the key's scope if possible; keep it secret. 4) Check the API endpoints used (api.elections.kalshi.com/trade-api/...) against Kalshi's official API docs to confirm they are legitimate. If you cannot verify the source or these mismatches, treat the skill as untrusted and avoid installing it until the metadata and required dependencies are corrected.
功能分析
Type: OpenClaw Skill Name: kalshi-tracker Version: 1.1.0 The kalshi-tracker skill is a legitimate tool for monitoring Kalshi prediction markets. It uses standard utilities (curl, jq, python3) to interact with official Kalshi API endpoints (api.elections.kalshi.com) for read-only data retrieval. The code logic is transparent, focused on market analysis and odds conversion, and shows no signs of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
The SKILL.md clearly implements a Kalshi read-only tracker (prices, order book, trades) and uses curl/jq to call Kalshi APIs — this matches the name and description. However, the registry metadata at the top of the report lists no required env vars or primary credential, while the SKILL.md declares a Kalshi API key (KALSHI_API_KEY). That mismatch is unexpected and should be corrected.
Instruction Scope
Instructions only call Kalshi API endpoints, parse results with jq (and a small Python snippet), and present read-only market data. The SKILL.md does not instruct the agent to read local files, other credentials, or send data to third-party endpoints outside the Kalshi API. Error handling mentions the API key and 401s. Scope appears limited to the stated purpose.
Install Mechanism
This is instruction-only with no install spec or code to download and execute; that is the lowest-risk install model.
Credentials
The SKILL.md requires KALSHI_API_KEY (Authorization: Bearer $KALSHI_API_KEY) but the skill registry metadata reported no required env vars or primary credential — a clear inconsistency. Also, the runtime uses python3 in a conversion step but python3 is not listed in the required binaries (only curl and jq are listed). These mismatches could lead to runtime failures or indicate the package metadata was not kept in sync with the instructions.
Persistence & Privilege
always:false and no install step that modifies agent configuration. The skill can be invoked autonomously (default), which is normal — there is no elevated persistence requested.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install kalshi-tracker
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /kalshi-tracker 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Add attribution links to agentbets.ai guides
v1.0.0
Initial release — AgentBets OpenClaw Skills series
元数据
Slug kalshi-tracker
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Kalshi Event Contract Tracker 是什么?

Track Kalshi event contract prices, order book depth, and recent trades. Covers sports, politics, economics, and weather markets. Converts contract prices to... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 112 次。

如何安装 Kalshi Event Contract Tracker?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install kalshi-tracker」即可一键安装,无需额外配置。

Kalshi Event Contract Tracker 是免费的吗?

是的,Kalshi Event Contract Tracker 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Kalshi Event Contract Tracker 支持哪些平台?

Kalshi Event Contract Tracker 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Kalshi Event Contract Tracker?

由 rsquaredsolutions2026(@rsquaredsolutions2026)开发并维护,当前版本 v1.1.0。

💬 留言讨论