数据分析

Polymarket

试用

实时查询 Polymarket 预测市场数据,涵盖赔率、热门市场、进行中的赛事和赛程。

它能做什么

通过内置 Python 脚本调用 Polymarket 公开的 Gamma API,只读地获取预测市场实时数据。可以查询任意市场的赔率与价格、浏览热门和高交易量市场,按关键词在体育、政治、加密货币、商业、娱乐等分类中搜索市场;还能拉取体育元数据、联赛系列(NFL、NBA、MLB)、锦标赛对阵(疯狂三月、世界杯)、按日期和项目查询每日赛程,以及正在进行的体育市场。价格为 0–1 的概率值,可换算为隐含赔率。

什么时候用它

  • 查看某个 Polymarket 市场的当前赔率
  • 浏览热门或正在进行的体育预测市场
  • 按日期查询 NBA、NFL、世界杯等比赛赛程
  • 按关键词跨分类搜索预测市场

技能文档

Polymarket Real-time Query Skill

Purpose

Query real-time prediction market data from Polymarket, including:

  • Sports metadata, series, and tournament brackets
  • Current odds/prices for any market
  • Trending and most actively traded markets
  • Live/in-play sports markets
  • Search for specific markets by keyword
  • Detailed event and market information with sub-markets

When to Use

Use this skill when the user asks about:

  • Polymarket markets, odds, or predictions
  • Current betting odds for events (sports, politics, crypto, etc.)
  • Live or in-play markets
  • Trending prediction markets
  • Specific market or event details on Polymarket
  • Tournament brackets (March Madness, World Cup)
  • Sports series information (NFL, NBA, MLB seasons)
  • Prediction market probabilities for real-world events

How to Use

Primary Tool: Python Query Script

Execute the bundled Python script scripts/polymarket_query.py to query Polymarket data:

python "/scripts/polymarket_query.py"  [options]

A PowerShell version (scripts/polymarket_query.ps1) is available in the GitHub repository but is not included in the ClawHub package due to file type restrictions.

Schedule Sport Keywords

When using the schedule command, supported sport keywords are:

  • nba, basketball → NBA
  • nfl, football → NFL
  • mlb, baseball → MLB
  • nhl, hockey → NHL
  • soccer, epl, premierleague → English Premier League (soccer also covers all soccer leagues + World Cup + UEFA tournaments)
  • laliga → La Liga
  • ligue1 → Ligue 1
  • ucl, championsleague → UEFA Champions League
  • uel, europaleague → UEFA Europa League
  • ueu, europaconference → UEFA Conference League
  • worldcup, fifaworldcup, fifawc, fifa, wc, fifwc → FIFA World Cup (slug prefix fifwc-)
  • mls → MLS
  • atp, tennis → ATP Tennis
  • wta → WTA Tennis
  • ufc, mma → UFC/MMA
  • cs2, csgo → Counter-Strike 2
  • lol, leagueoflegends → League of Legends
  • f1, racing → Formula 1
  • pga, golf → PGA Golf
  • boxing → Boxing
  • cricket → Cricket

Soccer note: The soccer keyword maps to multiple league prefixes (epl, lal, serie, bundes, ligue, fifwc, ucl, uel, ueu) so it returns matches from all major soccer competitions including the FIFA World Cup. Use worldcup for World Cup matches only.

Available Commands

CommandParametersDescription
categories—List sports metadata & popular tags (uses /sports + /tags)
sports-meta--limit N (default 100)List sports metadata from /sports endpoint
series--limit N (default 20)List series (NFL/NBA/etc.) from /series endpoint
tournaments--limit N (default 20)List tournaments (March Madness, World Cup) from /tournaments
trending--limit N (default 10)Top trending markets by 24h volume
search`` --limit NSearch markets by keyword in question/description
marketIDGet detailed market info with odds, volume, dates
eventIDGet event with all sub-markets and their odds
oddsIDGet focused odds/prices for a market
sports--limit N (default 15)Show sports markets
politics--limit N (default 15)Show politics markets
crypto--limit N (default 15)Show crypto markets
category--slug X --limit NMarkets in a specific category slug
live--limit N (default 20)Show live/in-play sports markets
schedule--sport X --date YYYY-MM-DDShow sports schedule by sport & date

Note on --limit: All limit-accepting commands support both --limit N and a bare positional integer (e.g., trending 5 works the same as trending --limit 5) for backward compatibility.

Execution Examples

# List sports metadata and popular tags (replaces old categories command)
python "/scripts/polymarket_query.py" categories

# Browse all 306 sports metadata entries
python "/scripts/polymarket_query.py" sports-meta --limit 50

# List series (NFL, NBA, MLB, etc.)
python "/scripts/polymarket_query.py" series --limit 20

# Show tournament brackets (March Madness, World Cup)
python "/scripts/polymarket_query.py" tournaments

# Top 10 trending markets
python "/scripts/polymarket_query.py" trending --limit 10

# Search for Bitcoin markets
python "/scripts/polymarket_query.py" search --keyword "Bitcoin" --limit 5
python "/scripts/polymarket_query.py" search Bitcoin 5

# Get market details
python "/scripts/polymarket_query.py" market 1862566

# Get odds for a specific market
python "/scripts/polymarket_query.py" odds 1862566

# Get event details with sub-markets
python "/scripts/polymarket_query.py" event 320112

# Show sports markets
python "/scripts/polymarket_query.py" sports --limit 15

# Show live/in-play markets
python "/scripts/polymarket_query.py" live

# Show NBA schedule for a specific date
python "/scripts/polymarket_query.py" schedule --sport nba --date 2026-04-12

# Show soccer/EPL schedule
python "/scripts/polymarket_query.py" schedule --sport soccer --date 2026-04-12

Workflow

  1. Identify user intent: Determine what type of Polymarket data the user wants
  2. Select appropriate command: Choose the script command that best matches the query
  3. Execute the script: Run the Python script using execute_command tool
  4. Format the response: Present the results in a clear, readable format to the user in their language

Common Query Patterns

  • "Polymarket上有什么热门的?" → Use trending command
  • "X的赔率是多少?" → Use search to find the market, then odds or market with the market ID
  • "有什么体育比赛市场?" → Use sports command
  • "有哪些政治预测市场?" → Use politics command
  • "有什么正在进行的比赛?" → Use live command
  • "搜索比特币相关市场" → Use search --keyword "Bitcoin" command
  • "Polymarket有哪些运动项目?" → Use categories or sports-meta command
  • "March Madness / 世界杯赛程结构" → Use tournaments command
  • "NFL/NBA赛季系列信息" → Use series command
  • "今天NBA有什么比赛?" → Use schedule --sport nba --date YYYY-MM-DD command
  • "4月12日的足球比赛" → Use schedule --sport soccer --date 2026-04-12 command

Understanding Odds

Polymarket uses a price-based system where:

  • Price ranges from 0 to 1 (displayed as percentage, e.g., 65%)
  • A "Yes" price of 0.65 means the market thinks there's a 65% probability
  • Implied odds = 1 / price (e.g., 0.65 → 1.54x)
  • For multi-outcome markets (e.g., "Who will win X?"), each option has its own price

Direct API Fallback

If the script is unavailable or needs adjustment, query the Gamma API directly:

# Sports metadata (replaces /categories)
curl "https://gamma-api.polymarket.com/sports?limit=100"
curl "https://gamma-api.polymarket.com/series?limit=20&active=true"
curl "https://gamma-api.polymarket.com/tournaments?limit=20"
curl "https://gamma-api.polymarket.com/tags?limit=50"

# Markets and events
curl "https://gamma-api.polymarket.com/markets?limit=10&active=true&closed=false&order=volume24hr&ascending=false"
curl "https://gamma-api.polymarket.com/markets/{market_id}"
curl "https://gamma-api.polymarket.com/events/{event_id}"

For detailed API documentation, refer to references/api_reference.md.

Important Notes

  • Polymarket is a prediction market (not a traditional sportsbook). "Odds" represent probability estimates, not fixed payouts.
  • There is no "real-time score" feed in the Polymarket API — for live scores of sports events, consult sports-specific APIs. However, price movements on Polymarket often reflect game progress.
  • Market data is updated frequently but may have slight delays (typically seconds to minutes).
  • The Python script uses certifi for SSL certificate verification if available, otherwise tries system CA bundles. On Windows systems without certifi, it falls back to disabling cert verification with a warning. Install certifi (pip install certifi) for secure connections.
  • A PowerShell version is available in the GitHub repository for Windows users who prefer it.
  • API changes (July 2026): The /categories endpoint was removed by Polymarket. The categories command now uses /sports + /tags endpoints. New commands sports-meta, series, and tournaments were added to expose the new endpoints. The category query parameter on /markets still works but may return loosely-related markets — for precise sport filtering, the schedule command uses slug-prefix matching which is more reliable.
  • Time zone note: Beijing time (UTC+8) is 12-13 hours ahead of US Eastern Time. NBA games played on US evening of May 4 correspond to Beijing time morning/afternoon of May 5. When the user specifies a Beijing date, query the same date OR the previous US date depending on game time.
  • Legacy category slugs (still work as category param but with loose matching): sports, politics, crypto, business, coronavirus, pop-culture, science, ai

相关技能

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。

作者 Iván559 次安装18 星标

以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。

作者 johnpatternai22 次安装8 星标

诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。

作者 Iván855 次安装69 星标

amurtiger01 的更多技能

浏览全部技能

查询葡萄酒资料、评分、年份对比与电商比价链接,不下单、不动账号。

作者 amurtiger0115 次安装

Compare real-time flight and train ticket prices across major platforms with direct booking links, real-time train availability, and discount condition details.

作者 amurtiger0121 次安装