← 返回 Skills 市场
bridgeaisocial

Polymarket Coherence Arb

作者 BridgeAISocial · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
5
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install polymarket-coherence-arb
功能描述
Detects logically-linked Polymarket markets that price incoherently (a mutually-exclusive, exhaustive set whose YES prices don't sum to ~1) and trades the ch...
使用说明 (SKILL.md)

Polymarket Coherence Arb

Finds sets of related Polymarket markets that should satisfy a probability constraint but don't, and trades the cheap/rich legs back toward coherence — arbitraging Polymarket against itself.

The edge

No sharp book to outrun, no external data, low latency pressure. If the YES prices of a complete, mutually-exclusive set sum materially above 1, the set is collectively overpriced (buy NO on the richest leg); if materially below 1, it's underpriced (buy YES on the cheapest leg).

What it actually trades (v0.1)

  1. Confirmed sets only. The only relationship v0.1 confirms from market text is a complete FIFA "win Group X" set — exactly 4 legs, same group letter (2026 format). Mutual exclusivity is read from the text itself; if a set can't be confirmed (partial, mixed letters, advance/qualify wording) it is alerted, never arbed.
  2. Bring-your-own sets. Set COHERENCE_GROUPS to trade explicit market-id groups you assert are mutually exclusive (e.g. a tournament/final ladder). Format: "id1,id2,id3,id4; idA,idB,idC"; separates groups, , separates legs.
  3. Remix point. discover_sets() in discovery.py is where you add other relationships (win-tournament ≤ reach-final, parlay consistency, etc.). The skill handles pricing, the coherence test, the context/exposure gates, and execution — you supply which markets are linked.

This is not the WC Group Repricer: there's no repricing-timing mechanism and no Elo tiebreak — it's pure price-coherence, leg picked by price alone, generalizable beyond the World Cup.

Safety rails

  • Sim-first. Default venue is $SIM; real trading requires --live and --venue polymarket and a claimed, wallet-linked Simmer agent. --live and --dry-run are mutually exclusive.
  • Budget = open exposure, not daily spend: new trades are rejected if open_exposure + cost > DAILY_BUDGET_USD. State updates are lock-protected (fcntl.flock), and live vs dry-run state live in separate files (state_live.json / state_dry.json).
  • Dry-run never touches live state and routes through the SDK paper engine (live=False) rather than stubbing success.
  • Prices are passed raw to the SDK (no pre-rounding); edges are computed vs the ask when the venue exposes one (falls back to mid on $SIM — see Known limitations).
  • One position per market; every trade carries skill_slug, a public reasoning string, and signal_data (Autoresearch backtest-ready).

Configuration (env — all knobs Autoresearch-mutable)

Var Default Meaning
TRADING_VENUE sim sim or polymarket (with --live)
MAX_TRADE_USD 20 per-leg cap
DAILY_BUDGET_USD 100 open-exposure cap
MIN_COHERENCE_GAP 0.05 min `
MAX_SLIPPAGE_PCT 0.03 skip legs whose context slippage exceeds this
COHERENCE_GROUPS (unset) optional explicit market-id groups (see above)

Usage

python coherence_arb.py --dry-run            # default; sim paper pass
python coherence_arb.py --status             # show positions/exposure
python coherence_arb.py --live --venue polymarket   # real money (after sim record)

Requires SIMMER_API_KEY.

Known limitations (v0.1)

  1. $SIM (LMSR) has no order book — ask/spread/depth gates only bind on the real venue; sim validates logic, not microstructure. Capturing this edge cleanly often needs near-simultaneous fills, which $SIM cannot model — validate in live=False paper mode against real spreads.
  2. Auto-discovery confirms only the WC "win Group X" set from text; the canonical WC tag/series slug is unverified upstream, so discovery may need the paginated sports-markets workaround at launch. Other relationships require COHERENCE_GROUPS or a discover_sets() remix.
  3. Legs are entered one at a time, not atomically; partial-fill unwind is basic.
  4. Inconsistencies are often small and short-lived — MIN_COHERENCE_GAP ships at a reasonable default and is meant to be tuned in sim / by Autoresearch, not trusted blindly.
  5. Real-venue depth (L2) checks are a TODO hook; v0.1 uses the context slippage gate.

No performance claims are made or implied. This skill describes what it does, not what it returns.

安全使用建议
Before installing, confirm you are comfortable with the skill reading the environment variables it documents and writing its local state files. Prefer installing only after the publisher narrows or declares those permissions explicitly, especially if your environment contains sensitive secrets.
能力标签
cryptorequires-walletrequires-sensitive-credentials
能力评估
Purpose & Capability
The stated behavior is coherent with a skill that needs local configuration and small local state to operate.
Instruction Scope
The reviewed signals do not show hidden prompt overrides, unrelated tasks, automatic execution, or instructions to bypass user intent.
Install Mechanism
The scan notes missing explicit permission declarations for environment access and file writes; this is a packaging/governance gap rather than evidence of misuse.
Credentials
Environment-variable use can expose sensitive configuration, but the available evidence frames it as expected setup/configuration rather than credential harvesting.
Persistence & Privilege
Local state-file writes are disclosed and appear limited to operational state, with no evidence of broad indexing, covert persistence, or privilege escalation.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install polymarket-coherence-arb
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /polymarket-coherence-arb 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Polymarket Coherence Arb v0.1.0 — initial release - Detects and arbitrages incoherent pricing among mutually exclusive Polymarket markets, using only market-internal logic (no external data). - Auto-discovers and trades only fully confirmed FIFA "win Group X" market sets; other linked sets can be supplied by the user but are only alerted, not traded, if not confirmed. - Trades are sim-first by default, with explicit safeguards and clear separation between simulation and live states. - Enforces budget and slippage limits, with configurable exposure, group, and coherence gap thresholds. - Provides clear usage instructions, safety rails, and known limitations, ensuring safe experimentation and extension.
元数据
Slug polymarket-coherence-arb
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Polymarket Coherence Arb 是什么?

Detects logically-linked Polymarket markets that price incoherently (a mutually-exclusive, exhaustive set whose YES prices don't sum to ~1) and trades the ch... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 5 次。

如何安装 Polymarket Coherence Arb?

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

Polymarket Coherence Arb 是免费的吗?

是的,Polymarket Coherence Arb 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Polymarket Coherence Arb 支持哪些平台?

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

谁开发了 Polymarket Coherence Arb?

由 BridgeAISocial(@bridgeaisocial)开发并维护,当前版本 v0.1.0。

💬 留言讨论