360 Secure SkillHub
360 安全技能中心

Openclaw Skill Publish

基于 prob.trade 接口查询 Polymarket 预测市场信息,包括整体概况、热门市场、24 小时价格异动、新市场、关键词搜索、市场详情、分类统计和顶级交易者排行;同时支持下单、撤单、查看持仓、余额和挂单,命令输出结构化 JSON。使用前需配置 prob.trade API 密钥。

vlprosvirkin
vlprosvirkin
热度 69.79
最近更新 2026-05-18 12:09:11
分类:数据依赖:代码执行 / 第三方 API / 读写文件应用场景:市场分析 / 财务 / 研究 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openclaw-skill-publish
Metadata
name
probtrade
version
2.0.4
description
Polymarket prediction markets: analytics, trading, hot markets, price movements, top traders, and market search. Powered by prob.trade.
homepage
https://app.prob.trade
user-invocable
true
metadata
{"openclaw":{"requires":{"bins":["python3"],"env":["PROBTRADE_API_KEY","PROBTRADE_API_SECRET"],"config":["~/.openclaw/skills/probtrade/config.yaml"]},"emoji":"📊","install":[{"id":"python3","kind":"brew","formula":"python@3","bins":["python3"],"label":"Install Python 3","os":["darwin","linux"]}]}}

prob.trade — Polymarket Analytics & Trading

Get real-time prediction market intelligence and trade on Polymarket from prob.trade. Browse trending markets, discover price movements, see what top traders are doing, and place orders.

Setup (required for all commands)

All commands require a prob.trade API key. Configure it in ~/.openclaw/skills/probtrade/config.yaml:

api_key: "ptk_live_..."
api_secret: "pts_..."

Generate keys at https://app.prob.trade (Settings → API Keys). Free account required.

Analytics Commands

Use the scripts below to query the prob.trade Public API.

Market Overview

Get a quick snapshot of the prediction market landscape:

python3 {baseDir}/scripts/probtrade.py overview

Returns: market stats, top 10 hot markets, breaking price movements, and newest markets.

Hot Markets

See the most actively traded markets right now:

python3 {baseDir}/scripts/probtrade.py hot [--limit N]

Breaking Markets

Markets with the biggest price movements in the last 24 hours:

python3 {baseDir}/scripts/probtrade.py breaking [--limit N]

New Markets

Recently created prediction markets:

python3 {baseDir}/scripts/probtrade.py new [--limit N] [--days N]

Search Markets

Find markets about a specific topic:

python3 {baseDir}/scripts/probtrade.py search "Trump" [--limit N]

Market Details

Get detailed information about a specific market by its condition ID:

python3 {baseDir}/scripts/probtrade.py market <condition_id>

Market Statistics

Category breakdown and overall market counts:

python3 {baseDir}/scripts/probtrade.py stats

Top Traders

See the most profitable prediction market traders:

python3 {baseDir}/scripts/probtrade.py traders [--limit N] [--sort pnl|roi|volume|winRate] [--period all|30d|7d|24h]

Trading Commands

Trade on Polymarket using the same API key configured above.

Place Order

python3 {baseDir}/scripts/probtrade.py order --market <condition_id> --side BUY --outcome Yes --type LIMIT --price 0.55 --amount 10

Cancel Order

python3 {baseDir}/scripts/probtrade.py cancel --order-id <orderId>

View Positions

python3 {baseDir}/scripts/probtrade.py positions

View Balance

python3 {baseDir}/scripts/probtrade.py balance

View Open Orders

python3 {baseDir}/scripts/probtrade.py orders

Security: API secret never leaves your machine. Only HMAC signatures are sent. No withdraw/transfer endpoints exist.

Output Format

All commands output structured JSON for easy parsing by AI agents. Key fields:

  • condition_id: Unique market identifier (use for trading on Polymarket)
  • question: The prediction market question
  • tokens: Current prices for Yes/No outcomes
  • volume_24hr: Trading volume in last 24 hours
  • liquidity: Available liquidity for trading
  • end_date_iso: When the market resolves

Links