360 Secure SkillHub
360 安全技能中心

Polymarket News Monitor

基于 Python 3 的单文件脚本,定时抓取 Polymarket 官方博客与 CLOB API 状态,用关键词规则为条目打分并去重,按重要性阈值通过控制台或 webhook 推送告警,告警历史与已读状态保存于本地数据目录。

mig6671
mig6671
热度 37.49
最近更新 2026-05-11 17:26:41
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:工作流 / 自动化脚本 / 研究

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add polymarket-news-monitor
Metadata
name
polymarket-news-monitor
description
Monitor official Polymarket sources (The Oracle blog, API status) for important updates, security alerts, and breaking news. Automatic importance scoring with instant notifications for critical events.

Polymarket News Monitor 📰🔔

Stay informed about Polymarket updates, security alerts, and critical events

Automatically monitors official Polymarket sources and alerts you when something important happens.

Features

📊 Monitored Sources

  • The Oracle (news.polymarket.com) - Official Polymarket blog
  • Breaking News - Real-time updates from polymarket.com
  • API Status - CLOB API health monitoring

🚨 Alert Types

  • 🔴 Critical: Security incidents, API outages, exploits
  • 🟠 High: Breaking changes, maintenance, regulatory updates
  • 🟡 Medium: General announcements, feature updates

🎯 Smart Detection

  • Keyword-based importance scoring
  • Duplicate detection (remembers seen articles)
  • Configurable alert thresholds
  • Multiple notification methods

Quick Start

Installation

# Clone skill
git clone https://github.com/yourusername/polymarket-news-monitor.git
cd polymarket-news-monitor

# Install (no dependencies!)
python3 scripts/polymarket-monitor.py

Basic Usage

# Run once
python3 scripts/polymarket-monitor.py

# With custom data directory
python3 scripts/polymarket-monitor.py --data-dir /path/to/data

# Lower threshold (more alerts)
python3 scripts/polymarket-monitor.py --min-importance 2

Cron Setup (Recommended)

# Check every 30 minutes
*/30 * * * * /path/to/polymarket-monitor.py --data-dir /path/to/data

# Check every hour with notifications
0 * * * * /path/to/polymarket-monitor.py --config config.json

Configuration

Config File (config.json)

{
  "data_dir": "./data",
  "check_interval": 1800,
  "min_importance": 4,
  "notification": {
    "enabled": true,
    "method": "webhook",
    "webhook": "https://hooks.slack.com/services/YOUR/WEBHOOK/URL"
  }
}
}

Notification Methods

Method Description Setup
console Print to stdout Default, no setup
webhook HTTP POST to URL Set webhook URL
telegram Telegram bot (coming soon) Set telegram_token and chat_id
email Email alerts (coming soon) Set SMTP credentials

Importance Scoring

Keywords (2 points each)

  • security, maintenance, api, update, regulation
  • usdc, withdrawal, deposit, outage, downtime

Security Alerts (5 points each)

  • phishing, hack, exploit, scam, fraud
  • private key, seed phrase, credential, attack

Critical Patterns (+3 points)

  • system.*down, security.*incident
  • api.*deprecated, withdrawal.*disabled

Alert Levels

Score Level Action
≥ 7 🔴 Critical Immediate notification
4-6 🟠 High Standard notification
2-3 🟡 Medium Log only (if min_importance ≤ 3)

Output Example

🔍 Polymarket News Monitor
==================================================
[2026-02-21 14:08:16] Starting Polymarket News Monitor
[2026-02-21 14:08:16] =
==================================================
[2026-02-21 14:08:16] Checking The Oracle...
[2026-02-21 14:08:17] Found: 5 new articles
[2026-02-21 14:08:17] Checking API status...
[2026-02-21 14:08:18] Found: 0 issues
[2026-02-21 14:08:18] =
==================================================
[2026-02-21 14:08:18] Total: 5 items, 2 important
[2026-02-21 14:08:18] 🚨 IMPORTANT ALERTS:

🔴 **Polymarket Alert** (The Oracle) - HIGH

**New Security Guidelines Released**

🔗 URL: https://news.polymarket.com/p/security-update
📅 Time: Mon, 21 Feb 2026 13:00:00 GMT
⚡ Importance: 8/10
🏷️ Keywords: security, phishing, credential

---

Data Files

File Description
data/news_state.json Seen articles hash (deduplication)
data/alerts.json Important alerts history
data/monitor.log Runtime log

API Endpoints Used

  • https://news.polymarket.com/feed - RSS feed
  • https://clob.polymarket.com/health - API health

Security

✅ No sensitive data stored
✅ No API keys required
✅ Read-only monitoring
✅ Local data only

Official Sources

Disclaimer

This is an unofficial monitoring tool. Always verify information on official Polymarket channels. Not affiliated with Polymarket.

License

MIT - Free for personal and commercial use.


Created for ClawHub 🦞
Version: 1.0.0
Last Updated: 2026-02-21