名称: polymarket
描述: 查询 Polymarket 预测市场 - 查看赔率、热门市场、搜索事件、追踪价格与动量。包含关注列表提醒、结算日历、动量扫描仪和模拟交易(无真实资金)。
主页: https://polymarket.com
user-invocable: true
disable-model-invocation: true
元数据:
openclaw:
emoji: "📊"
requires:
bins: [python3]
查询 Polymarket 预测市场。查看赔率、发现热门市场、搜索事件、追踪价格变动。
# 热门市场
python3 {baseDir}/scripts/polymarket.py trending
# 搜索
python3 {baseDir}/scripts/polymarket.py search "trump"
# 最大变动者
python3 {baseDir}/scripts/polymarket.py movers
# 即将结算的市场
python3 {baseDir}/scripts/polymarket.py calendar
将 Polymarket 添加到每日定时任务:
polymarket featured + polymarket movers --timeframe 24h
# 关注并设置价格目标提醒
python3 {baseDir}/scripts/polymarket.py watch add trump-2028 --alert-at 60
# 关注并设置变动提醒(相对当前价格 ±10%)
python3 {baseDir}/scripts/polymarket.py watch add bitcoin-100k --alert-change 10
# 每小时检查关注列表,仅在触发提醒时通知
python3 {baseDir}/scripts/polymarket.py alerts --quiet
# 每周日:政治类摘要
python3 {baseDir}/scripts/polymarket.py digest politics
python3 {baseDir}/scripts/polymarket.py buy trump-2028 100 # 在特朗普市场投入 $100
python3 {baseDir}/scripts/polymarket.py portfolio # 查看盈亏
# 热门市场(按24小时交易量)
python3 {baseDir}/scripts/polymarket.py trending
# 精选/高关注度市场
python3 {baseDir}/scripts/polymarket.py featured
# 搜索市场
python3 {baseDir}/scripts/polymarket.py search "giannis"
# 通过标识符获取事件
python3 {baseDir}/scripts/polymarket.py event trump-2028
# 按分类浏览
python3 {baseDir}/scripts/polymarket.py category politics
# 添加到关注列表
python3 {baseDir}/scripts/polymarket.py watch add trump-2028
python3 {baseDir}/scripts/polymarket.py watch add bitcoin-100k --alert-at 70
python3 {baseDir}/scripts/polymarket.py watch add fed-rate-cut --alert-change 15
# 关注多结果市场中的特定结果
python3 {baseDir}/scripts/polymarket.py watch add giannis-trade --outcome warriors
# 列出关注列表及当前价格
python3 {baseDir}/scripts/polymarket.py watch list
# 从关注列表中移除
python3 {baseDir}/scripts/polymarket.py watch remove trump-2028
# 检查提醒(用于定时任务)
python3 {baseDir}/scripts/polymarket.py alerts
python3 {baseDir}/scripts/polymarket.py alerts --quiet # 仅在触发时输出
# 未来7天内将结算的市场
python3 {baseDir}/scripts/polymarket.py calendar
# 未来3天内将结算的市场
python3 {baseDir}/scripts/polymarket.py calendar --days 3
# 更多结果
python3 {baseDir}/scripts/polymarket.py calendar --days 14 --limit 20
# 最大变动者(24小时)
python3 {baseDir}/scripts/polymarket.py movers
# 周度变动者
python3 {baseDir}/scripts/polymarket.py movers --timeframe 1w
# 月度变动者(带交易量过滤)
python3 {baseDir}/scripts/polymarket.py movers --timeframe 1m --min-volume 50
# 政治类摘要
python3 {baseDir}/scripts/polymarket.py digest politics
# 加密货币摘要
python3 {baseDir}/scripts/polymarket.py digest crypto
# 体育类摘要
python3 {baseDir}/scripts/polymarket.py digest sports
可用分类:politics, crypto, sports, tech, business
# 买入 $100 某市场
python3 {baseDir}/scripts/polymarket.py buy trump-2028 100
# 买入特定结果
python3 {baseDir}/scripts/polymarket.py buy giannis-trade 50 --outcome warriors
# 查看投资组合
python3 {baseDir}/scripts/polymarket.py portfolio
# 卖出持仓
python3 {baseDir}/scripts/polymarket.py sell trump-2028
初始提供 $10,000 模拟资金。无需真实资金即可追踪您的预测。
关注列表和投资组合存储在 ~/.polymarket/:
- watchlist.json — 关注的市场及提醒阈值
- portfolio.json — 模拟持仓及交易历史
0 * * * * python3 ~/.../polymarket.py alerts --quiet
0 7 * * * python3 ~/.../polymarket.py movers && python3 ~/.../polymarket.py calendar --days 1
0 10 * * 0 python3 ~/.../polymarket.py digest politics
0 10 * * 0 python3 ~/.../polymarket.py digest crypto
市场信息显示:
- 当前赔率(是/否价格)
- 价格动量(24小时/1周/1月变动,带箭头指示)
- 交易量(总量 + 24小时活跃度)
- 剩余时间
- 买卖价差
使用公开的 Gamma API(读取无需认证):
- 基础 URL:https://gamma-api.polymarket.com
- 文档:https://docs.polymarket.com
无需 API 密钥或身份验证。 本技能使用 Polymarket 的公开 Gamma API。
本技能的功能:
- 向 gamma-api.polymarket.com 发起 HTTPS GET 请求(公开、无需认证)
- 读取市场数据:赔率、交易量、事件详情、价格历史
- 模拟交易仅为本地模拟 — 数据以 JSON 文件形式存储在 ~/.polymarket/
- 无真实资金,不涉及钱包或区块链交易
本技能不执行的操作:
- 不连接任何钱包或金融账户
- 不执行真实交易或转账
- 不需要或处理任何凭证或 API 密钥
- 不向外部发送任何个人数据
- 无法由代理自主调用(disable-model-invocation: true)
本地存储的数据: ~/.polymarket/watchlist.json, ~/.polymarket/portfolio.json
首次使用前请查看 scripts/polymarket.py 以验证其行为。
此为只读功能 + 模拟交易。真实交易需要钱包认证(未实现)。