运行时依赖
安装命令
点击复制技能文档
Step-by-Step 图形界面de
https://telegra.ph/How-Building-a-Weather-Polymarket-机器人-with-OpenClaw-技能-and-turn-100--8000-Step-by-Step-图形界面de-02-28-2
Polymarket
查询 Polymarket prediction markets. 检查 odds, find trending markets, 搜索 事件, 追踪 price movements.
Quick 启动 # Trending markets python3 {baseDir}/scripts/polymarket.py trending
# 搜索 python3 {baseDir}/scripts/polymarket.py 搜索 "trump"
# Biggest movers python3 {baseDir}/scripts/polymarket.py movers
# What's resolving soon python3 {baseDir}/scripts/polymarket.py calendar
After 安装 — Suggested 设置up
- 添加 to Morning Briefing
添加 Polymarket to your dAIly cron:
polymarket featured + polymarket movers --timeframe 24h
- Watch Markets You Care About
# Watch with change alert (±10% from current) python3 {baseDir}/scripts/polymarket.py watch 添加 bitcoin-100k --alert-change 10
- 设置 Up Hourly Alerts (Cron)
- Weekly Category Digests
- Paper Trade to 追踪 Predictions
Commands Core # Trending markets (by 24h volume) python3 {baseDir}/scripts/polymarket.py trending
# Featured/high-性能分析 markets python3 {baseDir}/scripts/polymarket.py featured
# 搜索 markets python3 {baseDir}/scripts/polymarket.py 搜索 "giannis"
# 获取 event by slug python3 {baseDir}/scripts/polymarket.py event trump-2028
# Browse by category python3 {baseDir}/scripts/polymarket.py category politics
Watch列出 + Alerts (NEW) # 添加 to watch列出 python3 {baseDir}/scripts/polymarket.py watch 添加 trump-2028 python3 {baseDir}/scripts/polymarket.py watch 添加 bitcoin-100k --alert-at 70 python3 {baseDir}/scripts/polymarket.py watch 添加 fed-rate-cut --alert-change 15
# Watch specific outcome in multi-market python3 {baseDir}/scripts/polymarket.py watch 添加 giannis-trade --outcome warriors
# 列出 watch列出 with current prices python3 {baseDir}/scripts/polymarket.py watch 列出
# 移除 from watch列出 python3 {baseDir}/scripts/polymarket.py watch 移除 trump-2028
# 检查 for alerts (for cron) python3 {baseDir}/scripts/polymarket.py alerts python3 {baseDir}/scripts/polymarket.py alerts --quiet # Only 输出 if triggered
Resolution Calendar (NEW) # Markets resolving in next 7 days python3 {baseDir}/scripts/polymarket.py calendar
# Markets resolving in next 3 days python3 {baseDir}/scripts/polymarket.py calendar --days 3
# More 结果s python3 {baseDir}/scripts/polymarket.py calendar --days 14 --limit 20
Momentum 扫描器 (NEW) # Biggest movers (24h) python3 {baseDir}/scripts/polymarket.py movers
# Weekly movers python3 {baseDir}/scripts/polymarket.py movers --timeframe 1w
# Monthly movers with volume 过滤器 python3 {baseDir}/scripts/polymarket.py movers --timeframe 1m --min-volume 50
Category Digests (NEW) # Politics digest python3 {baseDir}/scripts/polymarket.py digest politics
# Crypto digest python3 {baseDir}/scripts/polymarket.py digest crypto
# Sports digest python3 {baseDir}/scripts/polymarket.py digest sports
Categories: politics, crypto, sports, tech, business
Paper Trading (NEW) # Buy $100 of a market python3 {baseDir}/scripts/polymarket.py buy trump-2028 100
# Buy specific outcome python3 {baseDir}/scripts/polymarket.py buy giannis-trade 50 --outcome warriors
# View portfolio python3 {baseDir}/scripts/polymarket.py portfolio
# Sell position python3 {baseDir}/scripts/polymarket.py sell trump-2028
启动s with $10,000 paper cash. 追踪 your predictions without real money.
Data Storage
Watch列出 and portfolio stored in ~/.polymarket/:
watch列出.json — Watched markets and alert thresholds portfolio.json — Paper positions and trade 历史 Cron Examples Hourly Alert 检查 0 python3 ~/.../polymarket.py alerts --quiet
DAIly Morning Brief 0 7 python3 ~/.../polymarket.py movers && python3 ~/.../polymarket.py calendar --days 1
Weekly Digests 0 10 0 python3 ~/.../polymarket.py digest politics 0 10 * 0 python3 ~/.../polymarket.py digest crypto
输出 Features
Markets show:
Current odds (Yes/No prices) Price momentum (24h/1wk/1mo changes with arrows) Volume (total + 24h activity) Time remAIning Bid/ask spread API
Uses the public Gamma API (no auth required for reading):
Base URL: https://gamma-API.polymarket.com Docs: https://docs.polymarket.com Security & 权限s
No API key or authentication required. This 技能 uses Polymarket's public Gamma API.
What this 技能 does:
Makes HTTPS 获取 请求s to gamma-API.polymarket.com (public, un认证d) Reads market data: odds, volumes, event detAIls, price 历史 Paper trading is local simulation only — stored in ~/.