@agg-build/sdk.
For the REST endpoint map, query/path shapes, and curl examples see the
Correlated Markets overview.
Correlated Markets starts from one prediction market and returns a paginated list of related events:
- Expand - Yes-side events that become more attractive if your thesis is right.
- Hedge - Yes-side events that become more attractive if your thesis is wrong.
1. Create the client
2. Resolve a market and fetch candidates
UseresolveCorrelatedMarkets when you have an external venue identifier, event slug,
Polymarket condition ID, or a text query. If AGG has not generated signals for the market yet, the
response is status: "processing" and a market-intel job has been queued. Poll the same request
again to read results after the job completes.
3. Use an internal venueMarketId when you already have one
If your UI already has avenueMarket.id from GET /venue-events or GET /venue-markets,
call the cascade endpoint directly. This path does not resolve identifiers.
cursor: cascade.nextCursor for the next page. limit is capped at 100. Resolved and closed
markets are excluded by default; add includeResolved: true when you want historical results.
4. Inspect generated signals
Signals explain why a market connects to another event. They are generated for both Yes and No outcomes and grouped by domain.5. Search by a theme
UsequeryCorrelatedMarkets for free-text discovery across generated signals.
Operational status
UsegetCorrelatedMarketsStatus for coverage dashboards or operator checks.
Related
Building Market Views
Compose discovery and orderbook endpoints into event grids and trading views.
Comparing Venue Prices
Compare matched markets across venues with live midpoint data.