← 返回
数据分析 中文

Polymarket Monitor

Monitor Polymarket prediction markets and alert when odds cross a threshold. Use when a user wants to track any Polymarket market probability, set up recurri...
监控 Polymarket 预测市场,当赔率突破阈值时自动提醒。用于实时追踪任意市场的概率变化并可设置循环提醒。
xmeir-dev
数据分析 clawhub v1.0.1 1 版本 99786.5 Key: 无需
★ 1
Stars
📥 1,382
下载
💾 27
安装
1
版本
#latest

概述

Polymarket Monitor

Set up ongoing monitoring for any Polymarket prediction market with threshold-based alerts.

Workflow

1. Find the market(s)

Search the Gamma API for active markets matching the user's topic:

curl "https://gamma-api.polymarket.com/events?search=<topic>&limit=10&active=true"

Parse the response to find relevant markets. For each, note:

  • conditionId — needed to fetch prices
  • question — market title
  • outcomePrices — current Yes/No probabilities (JSON string)

See references/api.md for full API details.

2. Check current odds

Use the bundled script to fetch current prices for one or more markets:

python3 scripts/check_markets.py <conditionId1> [conditionId2 ...]

Output: JSON with question, yes_prob (0–1 float), and url per market.

3. Report current state

Show the user the markets found and their current probabilities before setting up monitoring.

4. Set up the cron alert

Create a cron job that runs every N minutes (default: 30) with sessionTarget: "isolated" and payload.kind: "agentTurn". The agent task should:

  1. Fetch each market via web_fetch using the Gamma API (conditionId endpoint)
  2. Parse outcomePrices[0] as the Yes probability
  3. If any market exceeds the threshold: send a Slack DM alert via the message tool (channel=slack, target=)
  4. If none exceed threshold: do nothing (no output)

Use delivery.mode: "none" to suppress default cron delivery — the agent handles its own alerting.

Template cron task message:

Check these Polymarket markets. For each, fetch:
  https://clob.polymarket.com/markets/<conditionId>
Parse tokens array: find outcome=="Yes" and use its price as probability (0–1).
If any exceeds <threshold> (e.g. 0.70):
  Send Slack DM to <user_slack_id> with: market question, current %, and Polymarket URL.
If none exceed threshold, do nothing.

Markets:
- <question>: https://clob.polymarket.com/markets/<conditionId> | https://polymarket.com/event/<slug>

5. Confirm setup

Tell the user:

  • Which markets are being monitored
  • Current odds for each
  • Alert threshold and check frequency
  • How to cancel (cron job ID + cron remove )

Notes

  • Polymarket has no "today" daily markets — use the nearest deadline market for short-term signals
  • outcomePrices is always ["yes", "no"] — first value is Yes
  • Closed markets return prices of 0 or 1; skip them
  • No API key needed

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 06:47 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 164 📥 59,858
data-analysis

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 270 📥 56,927
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,007