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

新闻信号×预测市场套利检测

Prediction Market Arbitrage · v1.0.0
效率 安全 B 级 作者 h4gen 公开目录收录
1.2k 下载 2 安装 3.1k 收藏 11 浏览

简介

协调三个ClawHub技能(topic-monitor、polymarket-odds、simmer-weather)实现新闻信号与预测市场价格的自动化套利检测,通过对比新闻置信度与市场隐含概率发现定价偏差机会。

原始描述

Orchestrates monitoring, market odds, and execution proxy tools to detect news-market price gaps and emit arbitrage alerts with optional trade plans.

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/prediction-market-arbitrage/
其它 Agent解压到它自己的 skills 目录,目录名用 prediction-market-arbitrage

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

中文使用说明 来自收录源

核心用法

prediction-market-arbitrageur 是一个元技能(meta-skill),用于将三个独立的ClawHub工具编排成一个完整的新闻-市场套利工作流:

  1. 信号发现: 使用 topic-monitor 持续监控特定主题(如CEO辞职传闻),提取高置信度新闻信号(默认阈值≥0.80)
  2. 市场定价: 通过 polymarket-odds 实时查询Polymarket预测市场的当前"是"概率
  3. 套利决策: 计算 delta = news_confidence - market_probability,当delta≥0.25时触发套利警报
  4. 执行参考: 借鉴 simmer-weather 的安全交易模式(干运行→用户确认→实盘)

典型配置参数包括:监控间隔(默认5分钟)、新闻置信度阈值(0.80)、最小套利差价(0.25)、执行模式(仅警报/完整执行计划)。

显著优点

  • 因果链清晰: 明确定义了从信号→市场→决策的标准化流程,避免LM随意拼接工具
  • 时效性保障: 硬性拒绝30分钟以上的 stale news 和5分钟以上的 stale market 数据
  • 安全边际充足: 双重阈值过滤(置信度+差价),优先假阴性而非假阳性
  • 执行模式分级: 默认alert-only模式防止误操作,execution-plan模式才提供手动交易步骤
  • 数据标准化: 强制统一小数格式,杜绝百分比与小数混用导致的计算错误

潜在局限

  • 依赖外部技能栈: 必须预先安装三个独立技能,任一缺失即中断工作流
  • Polymarket单一市场: 未覆盖Kalshi、PredictIt等其他预测市场,流动性受限时无法切换
  • 新闻置信度黑箱: topic-monitor的评分逻辑不透明,用户难以审计信号来源可靠性
  • 延迟累积风险: 5分钟监控间隔+多步骤API调用,高速移动市场可能错过窗口期
  • 法律合规灰色地带: 预测市场监管因司法管辖区而异,未内置合规检查

适合人群

  • 量化交易者:已有Simmer API密钥,熟悉预测市场微观结构
  • 新闻套利研究者:需要系统化验证"信息优势→市场反应延迟"假设
  • 自动化工作流开发者:希望构建基于ClawHub的监控-交易流水线

常规风险

  • 模型幻觉风险: LM可能虚构市场slug或价格,Guardrail要求显式验证
  • 执行误操作: simmer-weather作为代理模式参考,实际交易参数需人工复核
  • API密钥泄露: SIMMER_API_KEY环境变量管理不善可能导致资金损失
  • 市场操纵反噬: 高频警报可能自身成为市场信号,被对手盘利用
  • 回测缺失: 技能未提供历史模拟验证,实盘前需自行验证策略有效性

技能正文


name: prediction-market-arbitrageur description: Meta-skill for orchestrating topic-monitor, polymarket-odds, and simmer-weather to detect potential news-vs-market mispricing in prediction markets. Use when users want a clear, step-by-step LM workflow for monitoring breaking signals, reading current Polymarket probabilities, computing confidence/price deltas, and producing alert-first arbitrage decisions. homepage: https://clawhub.ai user-invocable: true disable-model-invocation: false metadata: {"openclaw":{"emoji":"chart_with_upwards_trend","requires":{"bins":["python3","node","npx"],"env":["SIMMER_API_KEY"],"config":[]},"note":"Requires local installation of topic-monitor, polymarket-odds, and simmer-weather via ClawHub."}}

Purpose

Use this meta-skill to coordinate three existing ClawHub skills into one causal arbitrage workflow:

  1. Detect new high-signal news about a target event.
  2. Fetch current market-implied probability from Polymarket.
  3. Compare news confidence vs market probability.
  4. Emit actionable alert, optionally followed by explicit execution guidance.

This skill does not replace the underlying skills. It defines how to combine them correctly.

Required Installed Skills

This meta-skill assumes these are already installed locally:

  • topic-monitor (inspected: latest 1.3.4)
  • polymarket-odds (inspected: latest 1.0.0)
  • simmer-weather (inspected: latest 1.7.1, execution proxy pattern)

Install/refresh with ClawHub:

npx -y clawhub@latest install topic-monitor
npx -y clawhub@latest install polymarket-odds
npx -y clawhub@latest install simmer-weather
npx -y clawhub@latest update --all

Verify:

npx -y clawhub@latest list
python3 skills/topic-monitor/scripts/monitor.py --help
node skills/polymarket-odds/polymarket.mjs --help
python3 skills/simmer-weather/weather_trader.py --help

If any command fails, stop and report missing dependency or wrong install path.

Inputs the LM Must Collect First

  • ceo_name
  • company_name
  • event_hypothesis (for example: CEO X resigns within 30 days)
  • market_query (for polymarket search)
  • topic_id (stable ID in topic-monitor)
  • monitor_interval_minutes (default: 5)
  • min_news_confidence (default: 0.80)
  • min_delta (default: 0.25)
  • execution_mode (alert-only or execution-plan)

Do not continue with implicit trading assumptions if these are missing.

Skill Responsibilities (What Each Tool Actually Does)

topic-monitor

Use for continuous signal discovery and scoring.

Operationally relevant behavior:

  • Topic config via scripts/manage_topics.py.
  • Monitoring loop via scripts/monitor.py.
  • Priority/score generated by its scoring logic.
  • Alert queue retrieval via scripts/process_alerts.py --json.

This is the source of news confidence candidates.

polymarket-odds

Use for live market probability lookups.

Operationally relevant behavior:

  • search <query> to find matching events/markets.
  • market <slug> to inspect specific market pricing.
  • Outputs percentage-formatted odds that must be normalized to [0,1].

This is the source of market probability.

simmer-weather

Primary design is weather strategy, but in this chain it is treated as execution proxy reference because it uses Simmer SDK trade endpoints and live/dry-run safety pattern.

Operationally relevant behavior:

  • Requires SIMMER_API_KEY.
  • Supports dry-run and live execution modes.
  • Demonstrates guarded trading workflow and position checks.

In this meta-skill, it is not the signal engine. It is the execution pattern reference.

Canonical Causal Chain

Use this exact chain:

  1. topic-monitor heartbeat every 5 minutes.
  2. Match target rumor pattern (resignation, ceo_name, company_name).
  3. Accept only high-confidence signal (news_confidence >= 0.80).
  4. Query polymarket-odds for matching market and read current yes probability.
  5. Compute delta = news_confidence - market_probability.
  6. If delta >= min_delta, trigger arbitrage alert.
  7. If execution_mode=execution-plan, output explicit next trading step; do not auto-trade unless user explicitly asks.

Data Contract Between Skills

Normalize all values into one record before decisioning:

{
  "topic_id": "ceo-resignation-acme",
  "event_hypothesis": "CEO X resigns",
  "news_confidence": 0.82,
  "news_signal_time": "2026-02-14T14:05:00Z",
  "market_slug": "will-ceo-x-resign",
  "market_probability": 0.40,
  "market_snapshot_time": "2026-02-14T14:06:00Z",
  "delta": 0.42,
  "decision": "buy_yes_candidate"
}

Hard rules:

  • Reject stale signal if news_signal_time is older than 30 minutes.
  • Reject stale market snapshot older than 5 minutes.
  • Never compare percentages and decimals mixed. Convert all to decimals first.

LM Execution Playbook

Step A: Configure topic once

python3 skills/topic-monitor/scripts/manage_topics.py add \
  "CEO Resignation - <company_name>" \
  --id <topic_id> \
  --query "<ceo_name> resignation <company_name> CEO stepping down" \
  --keywords "resignation,<ceo_name>,<company_name>,CEO,board,step down" \
  --frequency hourly \
  --importance high \
  --channels telegram \
  --context "Prediction market mispricing detection"

Step B: Run heartbeat loop externally (every 5 min)

python3 skills/topic-monitor/scripts/monitor.py --topic <topic_id> --force
python3 skills/topic-monitor/scripts/process_alerts.py --json

Use max recent score for confidence extraction.

Step C: Pull market probability

node skills/polymarket-odds/polymarket.mjs search "<market_query>"
node skills/polymarket-odds/polymarket.mjs market <market_slug>

Extract yes-price and normalize (40% -> 0.40).

Step D: Decide

Formula:

  • delta = news_confidence - market_probability
  • Trigger if news_confidence >= min_news_confidence and delta >= min_delta

Step E: Emit output

If triggered, emit:

🚨 ARBITRAGE: News bestätigen, Markt schläft. Kauf empfohlen.

Plus structured fields:

  • news_confidence
  • market_probability
  • delta
  • signal_age_minutes
  • market_age_minutes
  • recommendation

Output Modes

alert-only

Return recommendation and confidence math only. No execution step.

execution-plan

Return recommendation plus explicit manual next actions using installed simmer-weather runtime pattern:

  • check API key present
  • run dry-run first
  • require explicit user confirmation before any live action

Guardrails for the LM

  • Do not fabricate market slugs or prices.
  • Do not promote execution when confidence math is below threshold.
  • Do not issue live-trade instructions without clear user opt-in.
  • Surface uncertainty explicitly when matching query to market is ambiguous.
  • Prefer false-negative over false-positive when news credibility is weak.

Failure Handling

  • Missing skill install: output exact missing path/command.
  • Missing env var (SIMMER_API_KEY): degrade to alert-only.
  • No market match: return no_trade with retry query suggestions.
  • Conflicting signals: require two independent high-confidence hits before alerting.

Why This Meta-Skill Exists

Without orchestration, each tool solves only a fragment:

  • topic-monitor detects events but has no market-price context.
  • polymarket-odds shows prices but no external signal confidence.
  • simmer-weather demonstrates execution mechanics but is not a generic event detector.

This meta-skill binds those fragments into one coherent arbitrage decision process that an LM can execute consistently.

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

标签

arbitrageprediction-marketspolymarketnews-tradingmeta-skillquantitative-tradingmarket-inefficiencysignal-processing

同类 Skill