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 recurring price checks, or get notified when a market's Yes/No probability exceeds a specific percentage. Covers searching for markets by topic, fetching current odds, and setting up cron-based alerts via Slack or other channels.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "polymarket-monitor" with this command: npx skills add xmeir-dev/polymarket-monitor

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=<user_id>)
  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 <id>)

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Amazon Review Advisor

帮助亚马逊卖家分类评论情绪,提供差评合规应对方案,优化好评邀请,提炼产品改进和运营策略。

Registry SourceRecently Updated
General

prompt-eval

Evaluate and optimize any AI prompt (`prompt_a`) with a 6-step pipeline: test plan, ~50 test cases, prompt execution, evaluator prompt (`prompt_b`), automate...

Registry SourceRecently Updated
General

Miaoji Video Script

基于爆款视频结构和产品信息,快速生成适配不同平台的高转化带货视频脚本与分镜方案。

Registry SourceRecently Updated
General

Miaoji Scene Studio

快速生成适配TikTok等平台的产品场景图AI绘图提示词与构图方案,提升内容真实感与点击率。

Registry SourceRecently Updated