Load Markets
Changed onLoad and cache all markets from the exchange into this.markets and this.marketsBySlug. Subsequent calls return the cached result without hitting the API again. This is the correct way to paginate or iterate over markets without drift. Because fetchMarkets() always hits the API, repeated calls with different offset values may return inconsistent results if the exchange reorders or adds markets between requests. Use loadMarkets() once to get a stable snapshot, then paginate over Object.values(exchange.markets) locally.
post/api/{exchange}/loadMarkets
Request
- Base URLhttps://api.pmxt.dev
- URLhttps://api.pmxt.dev/api/{exchange}/loadMarkets
- Authnone required
Path parameters
exchange'polymarket' | 'kalshi' | 'kalshi-demo' | 'limitless' | 'probable' | 'baozi' | 'myriad' | 'opinion' | 'metaculus' | 'smarkets' | 'polymarket_us' | 'gemini-titan' | 'hyperliquid' | 'suibets' | 'rain' | 'hunch' | 'router' required
The prediction market exchange to target.
Request body
Response
Load Markets response
Example response
{
"success": true
}Changes
- breaking
removed the enum value
mockfrom thepathrequest parameterexchange
- breaking
- info
added the new enum value
hunchto thepathrequest parameterexchange
- info