Install
openclaw skills install @amurtiger01/polymarket-queryThis skill should be used when the user wants to query real-time data from Polymarket (https://polymarket.com/), including market categories, trending markets, event details, market odds/prices, live/in-play sports markets, and search for specific prediction markets across all categories such as sports, politics, crypto, business, entertainment, and more. It provides access to Polymarket's public Gamma API and CLOB API for real-time odds, volumes, and market information.
openclaw skills install @amurtiger01/polymarket-queryQuery real-time prediction market data from Polymarket, including:
Use this skill when the user asks about:
Execute the bundled Python script scripts/polymarket_query.py to query Polymarket data:
python "<skill_dir>/scripts/polymarket_query.py" <command> [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.
When using the schedule command, supported sport keywords are:
nba, basketball → NBAnfl, football → NFLmlb, baseball → MLBnhl, hockey → NHLsoccer, epl, premierleague → English Premier League (soccer also covers all soccer leagues + World Cup + UEFA tournaments)laliga → La Ligaligue1 → Ligue 1ucl, championsleague → UEFA Champions Leagueuel, europaleague → UEFA Europa Leagueueu, europaconference → UEFA Conference Leagueworldcup, fifaworldcup, fifawc, fifa, wc, fifwc → FIFA World Cup (slug prefix fifwc-)mls → MLSatp, tennis → ATP Tenniswta → WTA Tennisufc, mma → UFC/MMAcs2, csgo → Counter-Strike 2lol, leagueoflegends → League of Legendsf1, racing → Formula 1pga, golf → PGA Golfboxing → Boxingcricket → CricketSoccer note: The
soccerkeyword 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. Useworldcupfor World Cup matches only.
| Command | Parameters | Description |
|---|---|---|
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 | <keyword> --limit N | Search markets by keyword in question/description |
market | ID | Get detailed market info with odds, volume, dates |
event | ID | Get event with all sub-markets and their odds |
odds | ID | Get 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 N | Markets in a specific category slug |
live | --limit N (default 20) | Show live/in-play sports markets |
schedule | --sport X --date YYYY-MM-DD | Show sports schedule by sport & date |
Note on
--limit: All limit-accepting commands support both--limit Nand a bare positional integer (e.g.,trending 5works the same astrending --limit 5) for backward compatibility.
# List sports metadata and popular tags (replaces old categories command)
python "<skill_dir>/scripts/polymarket_query.py" categories
# Browse all 306 sports metadata entries
python "<skill_dir>/scripts/polymarket_query.py" sports-meta --limit 50
# List series (NFL, NBA, MLB, etc.)
python "<skill_dir>/scripts/polymarket_query.py" series --limit 20
# Show tournament brackets (March Madness, World Cup)
python "<skill_dir>/scripts/polymarket_query.py" tournaments
# Top 10 trending markets
python "<skill_dir>/scripts/polymarket_query.py" trending --limit 10
# Search for Bitcoin markets
python "<skill_dir>/scripts/polymarket_query.py" search --keyword "Bitcoin" --limit 5
python "<skill_dir>/scripts/polymarket_query.py" search Bitcoin 5
# Get market details
python "<skill_dir>/scripts/polymarket_query.py" market 1862566
# Get odds for a specific market
python "<skill_dir>/scripts/polymarket_query.py" odds 1862566
# Get event details with sub-markets
python "<skill_dir>/scripts/polymarket_query.py" event 320112
# Show sports markets
python "<skill_dir>/scripts/polymarket_query.py" sports --limit 15
# Show live/in-play markets
python "<skill_dir>/scripts/polymarket_query.py" live
# Show NBA schedule for a specific date
python "<skill_dir>/scripts/polymarket_query.py" schedule --sport nba --date 2026-04-12
# Show soccer/EPL schedule
python "<skill_dir>/scripts/polymarket_query.py" schedule --sport soccer --date 2026-04-12
execute_command tooltrending commandsearch to find the market, then odds or market with the market IDsports commandpolitics commandlive commandsearch --keyword "Bitcoin" commandcategories or sports-meta commandtournaments commandseries commandschedule --sport nba --date YYYY-MM-DD commandschedule --sport soccer --date 2026-04-12 commandPolymarket uses a price-based system where:
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.
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./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.category param but with loose matching): sports, politics, crypto, business, coronavirus, pop-culture, science, ai