The same prediction market often trades on more than one venue at the same time, at different prices. AGG’s matching pipeline links those markets together asDocumentation Index
Fetch the complete documentation index at: https://docs.agg.market/llms.txt
Use this file to discover all available pages before exploring further.
matchedVenueMarkets so you
can build a cross-venue price comparison in three calls:
- List matched events — events confirmed on two or more venues.
- Walk every market and its matched siblings — collect each
venueMarketId. - Batch-fetch midpoints — one request returns the live Yes-side price per market.
0.55 means the
market implies a 55% probability of “Yes”. Comparing midpoints across venues for the same
matched event surfaces the spread an arbitrageur, smart router, or “best price” badge cares
about.
1. Create the client
2. List matched events
getVenueEvents accepts matchStatus as an array. Pass ["matched", "verified"] to restrict
the response to events confirmed across more than one venue — every market in the response
includes its matchedVenueMarkets. Calls GET /venue-events.
3. Collect every venueMarketId
Walk the response and gather every market ID — the event’s own markets plus eachmatchedVenueMarkets[].id.
4. Batch-fetch midpoints
getMidpoints accepts up to 200 IDs per call. Chunk and parallelize for larger universes.
Calls GET /midpoints.
5. Build the comparison
Index midpoints byvenueMarketId, then for each market look up its own midpoint plus its
siblings’.
Live updates
/midpoints is a snapshot. For continuously updating prices, subscribe to the WebSocket
orderbook channel with the outcome IDs you care about — every snapshot and delta carries
the live midpoint per outcome with per-venue attribution. See
Real-Time Orderbook.
Related
Building Market Views
Compose discovery and orderbook endpoints into event grids and trading views.
Real-Time Orderbook
Stream live midpoints and depth via WebSocket.