Skip to content

Market Discovery

Find active prediction markets on Polymarket — no authentication required.

Search markets

Terminal window
polygolem discover search --query "btc 5m" --limit 10
polygolem discover search --query "ethereum" --limit 5

Get market details

Terminal window
polygolem discover market --id "0xbd31dc8a..." # by Gamma ID
polygolem discover market --slug "will-btc-..." # by slug

Enrich a market

Joins Gamma metadata with CLOB data in one call:

Terminal window
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

MethodDescription
MarketsList markets with filters
EventsList events with filters
SearchCross-entity search (markets, events, profiles, tags)
TagsList tags, get by ID/slug, related tags
SeriesList series, get by ID
TeamsList sports teams
CommentsList comments, get by ID/user
ProfilesGet public profile by wallet
SportsMarketTypesList valid sports market types
MarketByTokenResolve market from CLOB token ID
EventsKeyset / MarketsKeysetKeyset pagination variants