← 返回
未分类 Key 中文

Polymarket Spread Sniper

Snipe mispriced Polymarket markets by comparing AMM price vs live CLOB orderbook midpoint. Buys the underpriced side when edge > 3% on liquid markets. Exits...
通过对比AMM价格与实时CLOB订单簿中间价,抢夺Polymarket的错误定价市场;在流动性好的市场上,当价差超过3%时买入低估方;随后退出。
prysm96
未分类 clawhub v1.3.2 1 版本 100000 Key: 需要
★ 0
Stars
📥 475
下载
💾 1
安装
1
版本
#latest

概述

Polymarket Spread Sniper

Buys the underpriced side when the Polymarket AMM price diverges from the live CLOB orderbook midpoint. No outcome prediction — pure spread arbitrage. Exits automatically via take-profit or time-stop.

The Edge

Polymarket has two pricing mechanisms:

  1. AMM — pool-based price, slower to update
  2. CLOB — live orderbook, reflects real-money conviction

When they diverge by more than min_edge (default 3%), the AMM is mispriced. The skill buys the cheap side and exits when prices converge or the time window closes.

Quick Start

export SIMMER_API_KEY=sk_live_...

# Dry run (SIM mode — safe, no real money)
python spread_sniper.py

# Live trading
python spread_sniper.py --live

# Show open positions with P&L
python spread_sniper.py --positions

# P&L summary (realized + unrealized)
python scripts/spread_pnl.py

# P&L history log
python scripts/spread_pnl.py --history

Configuration

All settings can be overridden via environment variables or tuned from the Simmer dashboard.

SettingEnv VarDefaultDescription
----------------------------------------
Min edgeSIMMER_SPREAD_MIN_EDGE0.03Min AMM/CLOB divergence to trade (3%)
Min volumeSIMMER_SPREAD_MIN_VOLUME5000Min 24h volume in USD
Max positionSIMMER_SPREAD_MAX_POSITION5.00Max USD per trade
Max trades/runSIMMER_SPREAD_MAX_TRADES3Max new trades per scan
Min priceSIMMER_SPREAD_MIN_PRICE0.10Never buy below 10¢
Max priceSIMMER_SPREAD_MAX_PRICE0.90Never buy above 90¢
Max hoursSIMMER_SPREAD_MAX_HOURS24Skip markets resolving >24h out
Max CLOB spreadSIMMER_SPREAD_MAX_CLOB_SPREAD0.05Skip illiquid books (bid-ask > 5¢)
Daily spend capSIMMER_SPREAD_DAILY_MAX100.00Max USD deployed per day
Take-profitSIMMER_SPREAD_TP_PCT0.60Exit when 60% of entry edge captured
Time-stopSIMMER_SPREAD_TS_PCT0.50Exit when 50% of market window elapsed
Market excludeSIMMER_SPREAD_EXCLUDE(68 keywords)Comma-separated keywords to skip

Exit Logic

Positions are checked on every scan:

  • Take-profit: exits when CLOB has moved take_profit_pct × entry_edge toward fair value
  • Time-stop: exits when time_stop_pct of the market's remaining window has elapsed since entry, or when <2h left regardless

P&L Tracking

# Snapshot: realized (from Simmer resolved API) + unrealized (open positions)
python scripts/spread_pnl.py

# Full history log
python scripts/spread_pnl.py --history

# Open positions detail
python scripts/spread_pnl.py --positions

Log appended to spread_pnl.log on each run. Cron-safe.

Files

spread_sniper.py        # Main bot — scan + entry + exit
config.json             # Runtime config overrides (takes precedence over env vars)
clawhub.json            # ClawHub + automaton config
scripts/
  spread_pnl.py         # P&L tracker (realized via Simmer API + unrealized)
  sim_redeem.py         # Redeem resolved SIM positions
spread_positions.json   # Local position journal
spread_daily.json       # Daily spend state
spread_pnl.log          # P&L snapshot log

Safety

  • All credentials loaded from environment — no hardcoded secrets
  • Daily spend cap prevents runaway deployment
  • CLOB spread filter skips illiquid markets
  • Price range filter (10%–90%) avoids near-certain / near-impossible positions
  • Extensive keyword exclude list filters out esports, weather, and obscure football markets

版本历史

共 1 个版本

  • v1.3.2 当前
    2026-05-03 05:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,983
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,058 📥 797,862
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,353 📥 317,961