Polymarket
v1.5.0This 技能 should be used when the user wants to 查询 real-time data from Polymarket (https://polymarket.com/), including market categories, trending markets, event detAIls, market odds/prices, live/in-play sports markets, and 搜索 for specific prediction markets across all categories such as sports, politics, crypto, business, entertAInment, and more. It provides 访问 to Polymarket's public Gamma API and CLOB API for real-time odds, volumes, and market in格式化ion.
运行时依赖
安装命令
点击复制技能文档
Polymarket Real-time 查询 技能 Purpose
查询 real-time prediction market data from Polymarket, including:
All market categories (Sports, Politics, Crypto, Business, EntertAInment, AI, etc.) Current odds/prices for any market Trending and most actively traded markets Live/in-play sports markets 搜索 for specific markets by keyword DetAIled event and market in格式化ion with sub-markets When to Use
Use this 技能 when the user asks about:
Polymarket markets, odds, or predictions Current betting odds for 事件 (sports, politics, crypto, etc.) Live or in-play markets Trending prediction markets Specific market or event detAIls on Polymarket Prediction market probabilities for real-world 事件 How to Use Primary 工具: Python 查询 Script
执行 the bundled Python script scripts/polymarket_查询.py to 查询 Polymarket data:
python "<技能_dir>/scripts/polymarket_查询.py" [options]
A PowerShell version (scripts/polymarket_查询.ps1) is avAIlable in the GitHub 仓库 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 laliga → La Liga ligue1 → Ligue 1 ucl, championsleague → UEFA Champions League 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 AvAIlable Commands Command Parameters Description categories — 列出 all market categories and sub-categories trending --limit N (default 10) Show top trending markets by 24h volume 搜索 --keyword X --limit N 搜索 markets by keyword in question/description market ID 获取 detAIled market 信息 with odds, volume, dates event ID 获取 event with all sub-markets and their odds odds ID 获取 focused odds/prices for a market sports --limit N (default 10) Show sports markets politics --limit N (default 10) Show politics markets crypto --limit N (default 10) Show crypto markets category --slug X --limit N Markets in a specific category slug live — Show live/in-play sports markets schedule --sport X --date YYYY-MM-DD Show sports schedule by sport & date Execution Examples # 列出 all categories python "<技能_dir>/scripts/polymarket_查询.py" categories
# Top 10 trending markets python "<技能_dir>/scripts/polymarket_查询.py" trending --limit 10
# 搜索 for Bitcoin markets python "<技能_dir>/scripts/polymarket_查询.py" 搜索 --keyword "Bitcoin" --limit 5
# 获取 market detAIls python "<技能_dir>/scripts/polymarket_查询.py" market 1862566
# 获取 odds for a specific market python "<技能_dir>/scripts/polymarket_查询.py" odds 1862566
# 获取 event detAIls with sub-markets python "<技能_dir>/scripts/polymarket_查询.py" event 320112
# Show sports markets python "<技能_dir>/scripts/polymarket_查询.py" sports --limit 15
# Show live/in-play markets python "<技能_dir>/scripts/polymarket_查询.py" live
# Show NBA schedule for a specific date python "<技能_dir>/scripts/polymarket_查询.py" schedule --sport nba --date 2026-04-12
# Show soccer/EPL schedule python "<技能_dir>/scripts/polymarket_查询.py" schedule --sport soccer --date 2026-04-12
工作流 Identify user intent: Determine what type of Polymarket data the user wants Select 应用ropriate command: Choose the script command that best matches the 查询 执行 the script: 运行 the Python script using 执行_command 工具 格式化 the 响应: Present the 结果s in a clear, readable 格式化 to the user in their language Common 查询 Patterns "Polymarket上有什么热门的?" → Use trending command "X的赔率是多少?" → Use 搜索 to find the market, then odds or market with the market ID "有什么体育比赛市场?" → Use sports command "有哪些政治预测市场?" → Use politics command "有什么正在进行的比赛?" → Use live command "搜索比特币相关市场" → Use 搜索 --keyword "Bitcoin" command "Polymarket有哪些分类?" → Use categories 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 系统 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, 查询 the Gamma API directly:
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/事件/{event_id}" curl "https://gamma-API.polymarket.com/categories"
For detAIled API documentation, refer to references/API_reference.md.
导入ant Notes Polymarket