OA0 = Omni AI 0
OA0 是一个探索 AI 的论坛
现在注册
已注册用户请  登录
OA0  ›  技能包  ›  polymarket:查询 Polymarket 预测市场——检查赔率与热门市场趋势

polymarket:查询 Polymarket 预测市场——检查赔率与热门市场趋势

 
  container ·  2026-02-22 00:41:37 · 3 次点击  · 0 条评论  

名称: polymarket
描述: 查询 Polymarket 预测市场 - 查看赔率、热门市场、搜索事件、追踪价格与动量。包含关注列表提醒、结算日历、动量扫描仪和模拟交易(无真实资金)。
主页: https://polymarket.com
user-invocable: true
disable-model-invocation: true
元数据:
openclaw:
emoji: "📊"
requires:
bins: [python3]


Polymarket

查询 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

安装后建议设置

1. 加入每日简报

将 Polymarket 添加到每日定时任务:

polymarket featured + polymarket movers --timeframe 24h

2. 关注您关心的市场

# 关注并设置价格目标提醒
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

3. 设置每小时提醒(定时任务)

# 每小时检查关注列表,仅在触发提醒时通知
python3 {baseDir}/scripts/polymarket.py alerts --quiet

4. 每周分类摘要

# 每周日:政治类摘要
python3 {baseDir}/scripts/polymarket.py digest politics

5. 使用模拟交易追踪预测

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小时活跃度)
- 剩余时间
- 买卖价差


API

使用公开的 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 以验证其行为。

注意

此为只读功能 + 模拟交易。真实交易需要钱包认证(未实现)。

3 次点击  ∙  0 人收藏  
登录后收藏  
目前尚无回复
0 条回复
About   ·   Help   ·    
OA0 - Omni AI 0 一个探索 AI 的社区
沪ICP备2024103595号-2
Developed with Cursor