- Clarify --detail argument (only for MATCH markets, error on out of range) - Add Troubleshooting section with common issues - Add Examples section with usage patterns - Add Changelog section - Add Credits section
8.6 KiB
name, version, category, description
| name | version | category | description |
|---|---|---|---|
| polymarket-browse | 0.0.2 | research | Browse tradeable Polymarket events by game category. Shows active matches with ML odds (cents format), volume, tournament, and market URLs. Supports Counter Strike, League of Legends, Dota 2, Valorant, NBA, NFL, UFC, Tennis. |
Polymarket Event Browser
Browse tradeable Polymarket prediction market events by game category.
Installation
For Hermes Agent users:
hermes skills install https://github.com/shokollm/jujutsu-skills#polymarket-browse
For OpenClaw users:
# Clone the repo
git clone https://github.com/shokollm/jujutsu-skills.git ~/jujutsu-skills
# Copy skill to your OpenClaw skills folder
cp -r ~/jujutsu-skills/skills/polymarket-browse ~/.openclaw/skills/
Optional: For better experience, install the Polymarket MCP server: This lets the agent answer questions about Polymarket markets, rules, and trading mechanics.
# Ask your agent to install it for you, or add to config.yaml:
hermes mcp add polymarket https://docs.polymarket.com/mcp
Usage
polymarket-browse [--category "Counter Strike"] [--limit 5] [--matches N] [--non-matches N] [--search "TeamName"] [--matches-only] [--non-matches-only] [--detail N] [--raw] [--telegram] [--no-cache] [--max-total N]
Arguments
--category: Game category to browse. Options: All Esports, Counter Strike, League of Legends, Dota 2, Valorant, NBA, NFL, UFC, Tennis (default: Counter Strike)--limit: Max events per section (match + non-match). Default: 5--matches: Max match markets to show. Default: --limit--non-matches: Max non-match markets to show. Default: --limit--search: Free-text team/term search within the selected category. Appends to the category query. Example:--category "Counter Strike" --search "FlyQuest"--matches-only: Show only match markets (suppress non-match section).--non-matches-only: Show only non-match markets (suppress match section).--detail N: Show detailed markets for match event N (1-indexed).- Only applies to MATCH markets (not non-match/tournament markets)
- Default: 1 (auto-shows details for first match)
- Set to 0 to disable detail view
- If N exceeds available matches, shows error with available range
--list-categories: List available game categories and exit--raw: Show all events without tradeable filter (for debugging). Includes fetch stats.--no-cache: Disable caching and fetch fresh data from the API.--max-total: Maximum total events to fetch before early exit. Default: no limit. Useful for quick snapshots.--telegram: Send results to Telegram. RequiresBOT_TOKENandCHAT_IDin environment variables.
Output Format
Output is split into two sections:
=== COUNTER STRIKE ===
Current time (WIB): 17:00 WIB | Mar 24, 2026
MATCH MARKETS
1. [Counter-Strike: TheMongolz vs Spirit (BO3)](https://polymarket.com/market/...)
Mar 24, 03:45 WIB | LIVE
Vol: $2,626,029
Tournament: BLAST Open Rotterdam Group B
Odds: TheMongolz 100c | 0c Spirit
NON-MATCH MARKETS
1. [Blast Open Rotterdam 2026: Winner](https://polymarket.com/event/...)
Feb 28, 04:43 WIB | 24d ago
Markets: 17 | Total Vol: $958,116
Match Markets are actual head-to-head matches with moneyline odds (sorted by volume). Non-match Markets are tournament futures, props, and other markets without direct match odds.
Stats line (Fetched / Total / Match counts) only shown when --raw flag is used.
If a fetch is interrupted (API error/timeout), a WARNING: Partial fetch line appears showing data may be incomplete.
Game Categories
| Category | Search Term |
|---|---|
| All Esports | Esports |
| Counter Strike | Counter Strike |
| League of Legends | League of Legends |
| Dota 2 | Dota2 |
| Valorant | Valorant |
| NBA | NBA |
| NFL | Football |
| UFC | UFC |
| Tennis | Tennis |
Filters Applied
The script classifies every event into one of two categories:
Match Markets: Events that are actual head-to-head matches (have seriesSlug + gameId, OR title contains " vs ").
Non-match Markets: Everything else — tournament futures, prop bets, player props, etc.
Tradeable match markets additionally require:
- Must have seriesSlug + gameId (actual match, not tournament future)
- ML volume > 0
- acceptingOrders = true
- ML closed = false
- ML bestBid < 0.99 (market hasn't converged toward favorite)
- ML bestAsk > 0.01 (market hasn't converged toward underdog)
- BO2 matches that ended in a tie (1-1) are filtered out
- Event endDate has not passed (API doesn't always close ML market promptly)
- Match startTime is not more than 4 hours in the past (matches that already ended are filtered out)
Use --raw to disable the tradeable filter and see all match markets regardless of volume or open orders.
Pagination
The script fetches ALL pages until the API runs out of results.
Parallel Fetching
Pages are fetched in parallel batches of 5 using ThreadPoolExecutor. This significantly reduces fetch time:
| Scenario | Without Parallelization | With Parallelization |
|---|---|---|
| 10 pages (50 events) | ~20s (2s per page × 10) | ~4s (2s per batch × 2 batches) |
| 20 pages (100 events) | ~40s | ~8s |
The script first fetches page 1 to determine total pages, then fetches remaining pages in parallel batches of 5.
Rate Limiting
- Exponential backoff: 2s → 4s → 8s → 16s → 32s
- Max 5 retries before aborting
Caching
Results are cached in ~/.cache/polymarket-browse/ with a 5-minute TTL to reduce redundant API calls.
- Use
--no-cacheto bypass the cache and fetch fresh data - Cached data is automatically used when available and not expired
- Useful when running the script repeatedly (e.g., for monitoring)
Odds Format
All odds are shown in cents format:
30c= 0.30 probability95c= 0.95 probabilityGamerLegion 28c | 72c Team Yandex= GamerLegion at 28c, Team Yandex at 72c
Troubleshooting
"WARNING: Partial fetch" appears
The API returned incomplete data due to an error/timeout. Results shown may be incomplete. Try again with --no-cache to force a fresh fetch.
No markets appear
- Verify your category is correct:
--list-categories - Try with
--rawto see all events (not just tradeable ones) - Some categories may have no active match markets at certain times
Why did my match disappear?
Matches are filtered out when:
- They have ended (startTime > 4 hours ago)
- BO2 matches ended in a tie (1-1)
- The market has converged (bestBid >= 0.99 or bestAsk <= 0.01)
- The event has ended (endDate passed)
Telegram not working
- Verify
BOT_TOKENandCHAT_IDenvironment variables are set - Ensure bot is started and chat ID is correct
- Check Telegram has not blocked the bot
Examples
Basic usage
# Browse Counter Strike matches (default)
polymarket-browse
# Browse NBA matches
polymarket-browse --category NBA
# Show more results
polymarket-browse --limit 10
Searching for teams
# Find FlyQuest Counter Strike matches
polymarket-browse --category "Counter Strike" --search "FlyQuest"
# Find any team/event across category
polymarket-browse --category "Counter Strike" --search "Spirit"
Filtering results
# Show only match markets (no tournament futures)
polymarket-browse --matches-only
# Show only non-match markets (tournaments, props)
polymarket-browse --non-matches-only
# Different limits for each section
polymarket-browse --matches 10 --non-matches 5
Using --detail
# Show details for 1st match (default behavior, auto-enabled)
polymarket-browse --detail 1
# Show details for 3rd match
polymarket-browse --detail 3
# Disable detail view
polymarket-browse --detail 0
Debugging
# Show all events without tradeable filter
polymarket-browse --raw
# Force fresh data (bypass cache)
polymarket-browse --no-cache
# Limit total events for quick snapshot
polymarket-browse --max-total 20
Timezone
# Display times in different timezone (default: UTC+7/WIB)
polymarket-browse --timezone UTC+8
polymarket-browse --timezone UTC-5
Changelog
v0.0.2 (Current)
- Added
--matches-onlyand--non-matches-onlyfilters - Added
--max-totalfor limiting fetch size - Added Telegram support with
--telegramflag - Added
--timezoneargument for display timezone configuration - Improved BO2 tie detection
v0.0.1
- Initial release
- Basic Polymarket browsing by category
- Match/non-match market filtering
- Moneyline odds display
Credits
Author: shokollm
Repository: https://github.com/shokollm/jujutsu-skills
Built for Hermes Agent and OpenClaw.