Market Discovery
Find active prediction markets on Polymarket — no authentication required.
Search markets
polygolem discover search --query "btc 5m" --limit 10polygolem discover search --query "ethereum" --limit 5Discover crypto markets
Find active crypto prediction markets with asset and interval filtering:
# Bitcoin 5-minute up/down marketspolygolem discover crypto --asset BTC --interval 5m --limit 10
# Ethereum markets with CLOB price enrichmentpolygolem discover crypto --asset ETH --interval 15m --enrich
# All crypto marketspolygolem discover crypto --limit 50Returns token IDs, outcomes, prices, and optionally live CLOB price/spread data.
Resolve the current window directly
For time-windowed markets (5m, 15m, 1h, 4h), use deterministic slug resolution instead of search — faster and immune to search index lag:
# Exact current BTC 5m windowpolygolem discover crypto-window --asset BTC --interval 5m
# With live CLOB price and spreadpolygolem discover crypto-window --asset ETH --interval 15m --enrichThis hits the event directly by its deterministic slug
(btc-updown-5m-<unix_timestamp>) and returns the active market with token IDs.
List all 6 active 5-minute crypto markets
Scan every supported crypto asset and return the current 5m window for each:
# All 6 markets at oncepolygolem discover crypto-5m
# With live CLOB price and spread (slower, one API call per market)polygolem discover crypto-5m --enrichAssets scanned: BTC, ETH, SOL, XRP, BNB, DOGE, HYPE. Returns token IDs, outcomes, condition IDs, and window boundaries for every active market in a single JSON response.
Stream crypto markets
Subscribe to live WebSocket events for crypto markets:
polygolem stream crypto --asset BTC --interval 5m --max-messages 100polygolem stream crypto --asset ETH --custom-featuresGet crypto market snapshots
Fetch current CLOB snapshots (price, spread, midpoint, tick size) for crypto markets:
polygolem marketdata crypto --asset BTC --interval 5m --limit 10polygolem marketdata crypto --asset SOL --limit 5Get market details
polygolem discover market --id "0xbd31dc8a..." # by Gamma IDpolygolem discover market --slug "will-btc-..." # by slugEnrich a market
Joins Gamma metadata with CLOB data in one call:
polygolem discover enrich --id "0x..."Returns: question, outcomes, prices, best bid/ask, spread, volume, tick size, fee rate, neg risk status, orderbook snapshot.
Using the Go SDK
import "github.com/TrebuchetDynamics/polygolem/pkg/marketresolver"
resolver := marketresolver.NewResolver("")result := resolver.ResolveTokenIDs(ctx, "BTC", "5m")// result.Status = "available"// result.UpTokenID = "123..."// result.DownTokenID = "456..."Gamma API Methods
| Method | Description |
|---|---|
Markets | List markets with filters |
Events | List events with filters |
Search | Cross-entity search (markets, events, profiles, tags) |
Tags | List tags, get by ID/slug, related tags |
Series | List series, get by ID |
Teams | List sports teams |
Comments | List comments, get by ID/user |
Profiles | Get public profile by wallet |
SportsMarketTypes | List valid sports market types |
MarketByToken | Resolve market from CLOB token ID |
EventsKeyset / MarketsKeyset | Keyset pagination variants |