简介
基于 Prediction Bridge API 的预测市场数据查询工具,聚合 Polymarket 等 9+ 平台实时数据,支持语义搜索、鲸鱼交易监控与 Smart PnL 分析,为交易决策提供链上情报支持。
原始描述
Query live prediction market data from the Prediction Bridge API. Use when the user asks about prediction markets, event odds, market prices, whale trades, trader analytics, or news related to prediction markets. Provides semantic search across 9 platforms (Polymarket, Kalshi, Limitless, Probable, PredictFun, SxBet, Myriad, PancakeSwap), on-chain whale trade monitoring, Smart PnL analytics, and trader leaderboards. Run the bundled Python script to fetch real-time data.
通过你的 Agent 添加
安装目录:prediction-bridge/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Prediction Bridge 是一个预测市场数据聚合查询工具,通过单一接口访问 Polymarket、Kalshi、Limitless、Probable、PredictFun、SxBet、Myriad、PancakeSwap 等9个以上平台的实时市场数据。用户可通过命令行脚本执行语义搜索事件、浏览市场、监控鲸鱼交易、查看交易者排行榜、获取 Smart PnL 信号等操作。
主要功能模块:
- 语义搜索:自然语言查询相关预测市场事件,如
search "trump tariff" - 事件浏览:按平台、状态、分类筛选活跃市场,支持
events --source polymarket - 鲸鱼监控:追踪链上大额交易,可按钱包地址或最小金额过滤
- 价格数据:获取市场历史价格和K线数据(1h/1d等间隔)
- 智能分析:Smart PnL 信号、持仓大户分布、交易者排行榜、个人钱包盈亏统计
- 新闻关联:获取与预测市场相关的新闻动态
技术优势: 纯 Python 标准库实现(urllib/json/sys/os),无需 pip 安装任何第三方依赖,彻底消除供应链攻击风险。
显著优点
- 零依赖安全架构:仅使用 Python 内置库,无第三方包引入的 CVE 风险
- 多平台数据聚合:一站式访问9+主流预测市场,消除跨平台切换成本
- 链上数据分析深度:提供鲸鱼交易、Smart PnL、持仓分布等高级分析功能
- 语义搜索能力:支持自然语言事件发现,降低信息检索门槛
- 代码透明可审计:MIT 开源协议,GitHub 公开,515行代码结构清晰
- 只读安全设计:所有 API 调用均为数据查询,无资产操作、无敏感信息上传
潜在缺点与局限性
- 外部服务依赖单一:完全依赖 prediction-bridge.onrender.com,无官方 SLA,Render 免费/低成本托管存在可用性风险
- 社区级维护(T3):个人开发者(kimcheese888)维护,无大型组织背书,长期更新不确定
- 无本地缓存机制:每次查询均实时请求 API,高频使用可能触发速率限制
- 参数验证较基础:手动参数解析,缺乏严格的类型校验和边界限制
- 错误处理较简单:未区分网络/API/客户端错误层级,排查问题需技术背景
- 网络层单一:仅支持 HTTPS,无代理或离线模式配置
适合人群
- 预测市场参与者:需要跨平台比价、追踪市场情绪的个人交易者
- 分析师与研究员:需要批量获取预测市场数据进行量化分析、学术研究
- DeFi/链上数据爱好者:关注鲸鱼动向、Smart Money 信号的高级用户
- 新闻与内容创作者:需要实时追踪预测市场热点事件的内容生产者
- 技术开发者:希望基于预测市场数据构建衍生应用或告警系统的工程师
常规风险
风险类型
等级
说明
API服务不可用
中
Render托管的免费服务,可能因流量、维护或项目终止导致中断
数据准确性
低-中
聚合自第三方平台,原始数据错误会传导至本工具
隐私泄露
低
仅查询公开链上数据,不收集用户钱包私钥或个人信息
投资决策误导
中
Smart PnL等分析信号仅供参考,不构成投资建议
供应链攻击
极低
零依赖设计从根本上消除第三方包篡改风险
- 外部服务依赖单一:完全依赖 prediction-bridge.onrender.com,无官方 SLA,Render 免费/低成本托管存在可用性风险
- 社区级维护(T3):个人开发者(kimcheese888)维护,无大型组织背书,长期更新不确定
- 无本地缓存机制:每次查询均实时请求 API,高频使用可能触发速率限制
- 参数验证较基础:手动参数解析,缺乏严格的类型校验和边界限制
- 错误处理较简单:未区分网络/API/客户端错误层级,排查问题需技术背景
- 网络层单一:仅支持 HTTPS,无代理或离线模式配置
适合人群
- 预测市场参与者:需要跨平台比价、追踪市场情绪的个人交易者
- 分析师与研究员:需要批量获取预测市场数据进行量化分析、学术研究
- DeFi/链上数据爱好者:关注鲸鱼动向、Smart Money 信号的高级用户
- 新闻与内容创作者:需要实时追踪预测市场热点事件的内容生产者
- 技术开发者:希望基于预测市场数据构建衍生应用或告警系统的工程师
常规风险
风险类型
等级
说明
API服务不可用
中
Render托管的免费服务,可能因流量、维护或项目终止导致中断
数据准确性
低-中
聚合自第三方平台,原始数据错误会传导至本工具
隐私泄露
低
仅查询公开链上数据,不收集用户钱包私钥或个人信息
投资决策误导
中
Smart PnL等分析信号仅供参考,不构成投资建议
供应链攻击
极低
零依赖设计从根本上消除第三方包篡改风险
| 风险类型 | 等级 | 说明 |
|---|---|---|
| API服务不可用 | 中 | Render托管的免费服务,可能因流量、维护或项目终止导致中断 |
| 数据准确性 | 低-中 | 聚合自第三方平台,原始数据错误会传导至本工具 |
| 隐私泄露 | 低 | 仅查询公开链上数据,不收集用户钱包私钥或个人信息 |
| 投资决策误导 | 中 | Smart PnL等分析信号仅供参考,不构成投资建议 |
| 供应链攻击 | 极低 | 零依赖设计从根本上消除第三方包篡改风险 |
使用建议:生产环境应配置备用 API 端点(PREDICTION_BRIDGE_URL),实施健康检查与本地缓存策略;关键决策前交叉验证原始平台数据。
技能正文
name: prediction-bridge
description: Query live prediction market data from the Prediction Bridge API. Use when the user asks about prediction markets, event odds, market prices, whale trades, trader analytics, or news related to prediction markets. Provides semantic search across 9+ platforms (Polymarket, Kalshi, Limitless, Probable, PredictFun, SxBet, Myriad, PancakeSwap), on-chain whale trade monitoring, Smart PnL analytics, and trader leaderboards. Run the bundled Python script to fetch real-time data.
Prediction Bridge
Query live prediction market data across 9+ platforms via the Prediction Bridge API.
How to Use
Run the script at scripts/prediction_bridge.py with the appropriate command. It uses only Python stdlib — no pip install needed.
python scripts/prediction_bridge.py <command> [args] [options]
Commands
Search events by meaning
python scripts/prediction_bridge.py search "trump tariff" --limit 5
python scripts/prediction_bridge.py search "will bitcoin hit 100k"
python scripts/prediction_bridge.py search "2028 election" --include-inactive
Browse events
python scripts/prediction_bridge.py events --limit 10
python scripts/prediction_bridge.py events --source polymarket --limit 5
python scripts/prediction_bridge.py events --status active --category "Crypto"
python scripts/prediction_bridge.py event 1839 # detail by ID
News matched to events
python scripts/prediction_bridge.py news --limit 10
Platform statistics
python scripts/prediction_bridge.py stats
Whale trades (on-chain large trades)
python scripts/prediction_bridge.py whale-trades --limit 10
python scripts/prediction_bridge.py whale-trades --address 0x1234... # by wallet
python scripts/prediction_bridge.py whale-trades --min-value 50000 # min USD
python scripts/prediction_bridge.py whale-trades --only-alerts # above alert threshold
python scripts/prediction_bridge.py whale-trades --event-slug "us-election"
Market price data
python scripts/prediction_bridge.py market-history polymarket 18454
python scripts/prediction_bridge.py market-candles polymarket 18454 --interval 1h
Analytics
python scripts/prediction_bridge.py smart-pnl 18454 # market Smart PnL
python scripts/prediction_bridge.py top-holders 18454 # top holders breakdown
python scripts/prediction_bridge.py leaderboard --limit 20 # top traders
python scripts/prediction_bridge.py user-summary 0x1234... # wallet portfolio
python scripts/prediction_bridge.py user-pnl 0x1234... # realized PnL
Other
python scripts/prediction_bridge.py languages # supported languages
python scripts/prediction_bridge.py --help # full help
Typical Workflows
python scripts/prediction_bridge.py events --limit 10
python scripts/prediction_bridge.py events --source polymarket --limit 5
python scripts/prediction_bridge.py events --status active --category "Crypto"
python scripts/prediction_bridge.py event 1839 # detail by ID
python scripts/prediction_bridge.py news --limit 10
Platform statistics
python scripts/prediction_bridge.py stats
Whale trades (on-chain large trades)
python scripts/prediction_bridge.py whale-trades --limit 10
python scripts/prediction_bridge.py whale-trades --address 0x1234... # by wallet
python scripts/prediction_bridge.py whale-trades --min-value 50000 # min USD
python scripts/prediction_bridge.py whale-trades --only-alerts # above alert threshold
python scripts/prediction_bridge.py whale-trades --event-slug "us-election"
Market price data
python scripts/prediction_bridge.py market-history polymarket 18454
python scripts/prediction_bridge.py market-candles polymarket 18454 --interval 1h
Analytics
python scripts/prediction_bridge.py smart-pnl 18454 # market Smart PnL
python scripts/prediction_bridge.py top-holders 18454 # top holders breakdown
python scripts/prediction_bridge.py leaderboard --limit 20 # top traders
python scripts/prediction_bridge.py user-summary 0x1234... # wallet portfolio
python scripts/prediction_bridge.py user-pnl 0x1234... # realized PnL
Other
python scripts/prediction_bridge.py languages # supported languages
python scripts/prediction_bridge.py --help # full help
Typical Workflows
python scripts/prediction_bridge.py stats
python scripts/prediction_bridge.py whale-trades --limit 10
python scripts/prediction_bridge.py whale-trades --address 0x1234... # by wallet
python scripts/prediction_bridge.py whale-trades --min-value 50000 # min USD
python scripts/prediction_bridge.py whale-trades --only-alerts # above alert threshold
python scripts/prediction_bridge.py whale-trades --event-slug "us-election"
Market price data
python scripts/prediction_bridge.py market-history polymarket 18454
python scripts/prediction_bridge.py market-candles polymarket 18454 --interval 1h
Analytics
python scripts/prediction_bridge.py smart-pnl 18454 # market Smart PnL
python scripts/prediction_bridge.py top-holders 18454 # top holders breakdown
python scripts/prediction_bridge.py leaderboard --limit 20 # top traders
python scripts/prediction_bridge.py user-summary 0x1234... # wallet portfolio
python scripts/prediction_bridge.py user-pnl 0x1234... # realized PnL
Other
python scripts/prediction_bridge.py languages # supported languages
python scripts/prediction_bridge.py --help # full help
Typical Workflows
python scripts/prediction_bridge.py market-history polymarket 18454
python scripts/prediction_bridge.py market-candles polymarket 18454 --interval 1h
python scripts/prediction_bridge.py smart-pnl 18454 # market Smart PnL
python scripts/prediction_bridge.py top-holders 18454 # top holders breakdown
python scripts/prediction_bridge.py leaderboard --limit 20 # top traders
python scripts/prediction_bridge.py user-summary 0x1234... # wallet portfolio
python scripts/prediction_bridge.py user-pnl 0x1234... # realized PnL
Other
python scripts/prediction_bridge.py languages # supported languages
python scripts/prediction_bridge.py --help # full help
Typical Workflows
python scripts/prediction_bridge.py languages # supported languages
python scripts/prediction_bridge.py --help # full help
"What are the hottest prediction markets right now?"
→ events --limit 10 (sorted by volume)
"Find markets about AI regulation"
→ search "AI regulation" (semantic search)
"Show me recent whale trades on Polymarket"
→ whale-trades --limit 10
"Who are the top traders and what are they betting on?"
→ leaderboard --limit 10, then user-summary <address> for details
"What's the Smart PnL signal for a specific market?"
→ Get market ID from event <id>, then smart-pnl <market_id>
"Any news moving prediction markets today?"
→ news --limit 10
Environment
Set PREDICTION_BRIDGE_URL to override the default API base URL:
export PREDICTION_BRIDGE_URL=https://prediction-bridge.onrender.com
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。