polymarket-arbitrage-cn
Polymarket 套利 | Polymarket Arbitrage. 预测市场套利机会 | Prediction market arbitrage opportunities. 自动发现价格差异 | Auto discover price differences. 触发词:Polymarket、预测市场、套利、arbitrage.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/guohongbin-git/polymarket-arbitrage-cnPolymarket Arbitrage
Find and execute arbitrage opportunities on Polymarket prediction markets.
Quick Start
1. Paper Trading (Recommended First Step)
Run a single scan to see current opportunities:
cd skills/polymarket-arbitrage
pip install requests beautifulsoup4
python scripts/monitor.py --once --min-edge 3.0
View results in polymarket_data/arbs.json
2. Continuous Monitoring
Monitor every 5 minutes and alert on new opportunities:
python scripts/monitor.py --interval 300 --min-edge 3.0
Stop with Ctrl+C
3. Understanding Results
Each detected arbitrage includes:
- net_profit_pct: Edge after 2% fees
- risk_score: 0-100, lower is better
- volume: Market liquidity
- action: What to do (buy/sell all outcomes)
Good opportunities:
- Net profit: 3-5%+
- Risk score: <50
- Volume: $1M+
- Type:
math_arb_buy(safer)
Arbitrage Types Detected
Math Arbitrage (Primary Focus)
Type A: Buy All Outcomes (prob sum < 100%)
- Safest type
- Guaranteed profit if executable
- Example: 48% + 45% = 93% → 7% edge, ~5% net after fees
Type B: Sell All Outcomes (prob sum > 100%)
- Riskier (requires liquidity)
- Need capital to collateralize
- Avoid until experienced
See references/arbitrage_types.md for detailed examples and strategies.
Cross-Market Arbitrage
Same event priced differently across markets (not yet implemented - requires semantic matching).
Orderbook Arbitrage
Requires real-time orderbook data (homepage shows midpoints, not executable prices).
Scripts
fetch_markets.py
Scrape Polymarket homepage for active markets.
python scripts/fetch_markets.py --output markets.json --min-volume 50000
Returns JSON with market probabilities, volumes, and metadata.
detect_arbitrage.py
Analyze markets for arbitrage opportunities.
python scripts/detect_arbitrage.py markets.json --min-edge 3.0 --output arbs.json
Accounts for:
- 2% taker fees (per leg)
- Multi-outcome fee multiplication
- Risk scoring
monitor.py
Continuous monitoring with alerting.
python scripts/monitor.py --interval 300 --min-edge 3.0 [--alert-webhook URL]
Features:
- Fetches markets every interval
- Detects arbitrage
- Alerts on NEW opportunities only (deduplicates)
- Saves state to
polymarket_data/
Workflow Phases
Phase 1: Paper Trading (1-2 weeks)
Goal: Understand opportunity frequency and quality
- Run monitor 2-3x per day
- Log opportunities in spreadsheet
- Check if they're still available when you look
- Calculate what profit would have been
Decision point: If seeing 3-5 good opportunities per week, proceed to Phase 2.
Phase 2: Micro Testing ($50-100 CAD)
Goal: Learn platform mechanics
- Create Polymarket account
- Deposit $50-100 in USDC
- Manual trades only (no automation)
- Max $5-10 per opportunity
- Track every trade in spreadsheet
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-guohongbin-git-polymarket-arbitrage-cn": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
sspai-hot-cn
少数派热门文章监控 | SSPAI Hot Articles Monitor. 获取少数派热门数码评测、应用推荐、效率工具 | Get SSPAI trending digital reviews, app recommendations, productivity tools. 触发词:少数派、sspai、数码评测、效率工具.
binance-pro-cn
币安专业版 | Binance Pro. 完整币安集成 | Complete Binance integration. 现货/合约交易、杠杆、质押 | Spot/futures trading, leverage, staking. 触发词:币安、Binance、交易、trading.
v2ex-hot-cn
V2EX 热门话题监控 | V2EX Hot Topics Monitor. 获取 V2EX 热门帖子、技术讨论、数码生活 | Get V2EX trending posts, tech discussions, digital life. 触发词:V2EX、v2、程序员社区.
xueqiu-hot-cn
雪球热门讨论监控 | Xueqiu Hot Discussions Monitor. 获取雪球热门股票讨论、投资观点、大V动态 | Get Xueqiu trending stock discussions, investment insights, top posts. 触发词:雪球、股票、投资、xueqiu.
tianyancha-cn
企业信息查询 - 天眼查/企查查/爱企查数据查询(Bloomberg 终端中国版)