Get live midpoints for multiple markets
curl --request GET \
--url https://api.agg.market/midpoints \
--header 'x-app-id: <api-key>'{
"data": [
{
"venueMarketId": "<string>",
"venue": "<string>",
"midpoint": 123,
"spread": 123,
"timestamp": 123,
"outcomes": [
{
"venueMarketOutcomeId": "<string>",
"label": "<string>",
"midpoint": 123,
"bestBid": 123,
"bestAsk": 123
}
],
"matched": [
{
"venueMarketId": "<string>",
"venue": "<string>",
"midpoint": 123,
"bestBid": 123,
"bestAsk": 123
}
],
"bestBid": 123,
"bestAsk": 123
}
]
}Orderbook
Get live midpoints for multiple markets
Returns live orderbook midpoints for the requested venue market IDs. venueMarketIds accepts either a comma-separated string (?venueMarketIds=a,b,c) or repeated params (?venueMarketIds=a&venueMarketIds=b). Midpoint represents the Yes-side price (0-1). Direct GET callers should keep batches small enough to stay under CDN URL limits; AGG SDK/UI clients default to 75 IDs per request and merge multiple batches automatically. Pass bestPrice=true to also receive top-of-book bestBid/bestAsk on every entry, per-outcome row, and matched sibling. Returns 503 if the orderbook engine is unavailable.
GET
/
midpoints
Get live midpoints for multiple markets
curl --request GET \
--url https://api.agg.market/midpoints \
--header 'x-app-id: <api-key>'{
"data": [
{
"venueMarketId": "<string>",
"venue": "<string>",
"midpoint": 123,
"spread": 123,
"timestamp": 123,
"outcomes": [
{
"venueMarketOutcomeId": "<string>",
"label": "<string>",
"midpoint": 123,
"bestBid": 123,
"bestAsk": 123
}
],
"matched": [
{
"venueMarketId": "<string>",
"venue": "<string>",
"midpoint": 123,
"bestBid": 123,
"bestAsk": 123
}
],
"bestBid": 123,
"bestAsk": 123
}
]
}⌘I