← 返回 Skills 市场
skybinjf

Kalshi Politics Random Buyer Publish

作者 Sky · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
85
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install kalshi-politics-random-buyer
功能描述
Dry-run Kalshi skill that finds politics-related markets, picks a valid candidate at random, runs Simmer context checks, and proposes a trade plan without pl...
使用说明 (SKILL.md)

Kalshi Politics Random Buyer

This skill scans Kalshi for politics-related markets, randomizes the candidate pool, checks Simmer context safeguards, and prints a manual-confirmation trade plan for one valid candidate.

This is a template. The default signal is intentionally simple: find a politics market at random, then only keep it if context and edge checks still pass. Remix the query set, side logic, price filters, and sizing model with your own thesis.

What It Does

On each run, the skill:

  1. Searches Kalshi importable markets using politics-related queries.
  2. Falls back to a global Kalshi scan when keyword searches return nothing.
  3. Filters for politics candidates with usable tickers and URLs.
  4. Ignores markets outside a configurable price band.
  5. Randomizes the candidate list.
  6. Ensures each candidate is indexed in Simmer using check-then-import.
  7. Fetches Kalshi market context and skips risky candidates.
  8. Picks YES or NO using a simple fair-probability edge rule.
  9. Sizes the hypothetical trade with simmer_sdk.sizing.size_position().
  10. Prints a structured execution plan and reasoning for human review.

Important Limitation

This template is intentionally non-executing.

  • Passing --live is rejected.
  • No real order is sent.
  • No wallet private key is needed for the default workflow.
  • The output is a manual-review execution plan, not an order.

Required Files

  • SKILL.md
  • clawhub.json
  • trade_skill.py

Environment Variables

Credentials

  • SIMMER_API_KEY (required): Your Simmer API key.

Strategy Config

  • SEARCH_QUERIES: Comma-separated politics search terms. Default: election,president,presidency,senate,house,governor,politics,campaign,ballot,nominee,party
  • MAX_MARKETS_PER_QUERY: Maximum Kalshi results to inspect per query. Default: 50
  • MIN_PRICE: Minimum YES price allowed. Default: 0.02
  • MAX_PRICE: Maximum YES price allowed. Default: 0.98
  • FAIR_PROBABILITY: Fair YES probability for edge checks. Default: 0.55
  • MIN_EDGE: Minimum edge required to produce a plan. Default: 0.02
  • MAX_SLIPPAGE_PCT: Skip candidates with excessive slippage. Default: 0.15
  • RANDOM_SEED: Optional integer seed for reproducible selection.

Safety Model

  • Manual-confirmation only.
  • Uses Simmer context before proposing a trade.
  • Skips severe flip-flop, HOLD/SKIP recommendations, resolved markets, and excessive slippage.
  • Uses bankroll-aware sizing instead of a hard-coded stake.
  • Avoids publishing wallet identifiers in reasoning.

Local Usage

Default planning run:

export SIMMER_API_KEY="sk_live_..."
python trade_skill.py

Deterministic planning run:

export RANDOM_SEED="7"
python trade_skill.py

Custom politics search:

export SEARCH_QUERIES="president,election,governor"
export FAIR_PROBABILITY="0.60"
python trade_skill.py

Remix Ideas

  • Replace random candidate selection with volume or liquidity ranking.
  • Add event-level filters for US elections only.
  • Add position-awareness to avoid repeat exposure.
  • Convert the dry-run plan into a proposal file instead of stdout.
安全使用建议
Review this before installing if you do not want a scheduled background automaton. Confirm you are comfortable providing SIMMER_API_KEY, having the skill read Simmer/Kalshi account context for sizing, and allowing it to import/index markets. For safer use, remove or disable the cron entry, use a restricted API key, and verify the full trade_skill.py source before running.
功能分析
Type: OpenClaw Skill Name: kalshi-politics-random-buyer Version: 1.0.2 The skill is a legitimate dry-run trading template for Kalshi politics markets using the Simmer SDK. It includes explicit safety checks in trade_skill.py to prevent live execution, validates market context (slippage, spread, and API-driven warnings), and only outputs a manual-review execution plan to stdout. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力标签
cryptorequires-walletrequires-sensitive-credentials
能力评估
Purpose & Capability
The stated dry-run purpose is mostly coherent with the code shown: it searches Kalshi markets, checks Simmer context, sizes a hypothetical position, and rejects --live. It still uses an external account API, reads account briefing/balance data, and imports markets into Simmer, which users should notice.
Instruction Scope
SKILL.md frames usage as manual-confirmation planning, but clawhub.json configures a managed scheduled automaton. That makes the execution scope broader than the user-facing instructions.
Install Mechanism
There is no install spec, but clawhub.json declares an unpinned pip dependency on simmer-sdk. This is purpose-aligned but leaves normal package provenance/version risk.
Credentials
SIMMER_API_KEY is clearly required in SKILL.md and clawhub.json and is proportionate for Simmer context checks, but it is still a sensitive credential tied to financial-market account data.
Persistence & Privilege
The managed cron schedule creates recurring background execution. Even without live order placement, it can repeatedly use the API key and import/index markets.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install kalshi-politics-random-buyer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /kalshi-politics-random-buyer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Removed all files associated with the kalshi-politics-random-buyer skill. - This version fully removes the skill from the repository.
v1.0.1
- Added required metadata and configuration files (`_meta.json`, `clawhub.json`, etc.) for skill packaging and deployment. - Updated `SKILL.md` and planning workflow to clarify that the skill produces a manual-review execution plan only; no trades are sent. - Improved language for safety and non-execution, switching from "dry-run" to "manual-confirmation" and "planning". - No change to core logic; only documentation, packaging, and output intent improved. - The skill remains limited to simulated trade plans with no live execution support.
v1.0.0
- Initial release of Kalshi Politics Random Buyer. - Scans Kalshi for politics-related markets and picks a valid candidate at random. - Performs Simmer context checks and proposes a dry-run trade plan (no real orders placed). - Applies configurable filters: price bands, search queries, and edge checks. - Dry-run only: no wallet key required, live trading is disabled for safety.
元数据
Slug kalshi-politics-random-buyer
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Kalshi Politics Random Buyer Publish 是什么?

Dry-run Kalshi skill that finds politics-related markets, picks a valid candidate at random, runs Simmer context checks, and proposes a trade plan without pl... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 85 次。

如何安装 Kalshi Politics Random Buyer Publish?

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

Kalshi Politics Random Buyer Publish 是免费的吗?

是的,Kalshi Politics Random Buyer Publish 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Kalshi Politics Random Buyer Publish 支持哪些平台?

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

谁开发了 Kalshi Politics Random Buyer Publish?

由 Sky(@skybinjf)开发并维护,当前版本 v1.0.2。

💬 留言讨论