AGG is currently in alpha. APIs, components, and docs may change.
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
}
],
"matched": [
{
"venueMarketId": "<string>",
"venue": "<string>",
"midpoint": 123
}
]
}
]
}Returns live orderbook midpoints for the requested venue market IDs. Midpoint represents the Yes-side price (0-1). Max 200 IDs per request. Returns 503 if the orderbook engine is unavailable.
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
}
],
"matched": [
{
"venueMarketId": "<string>",
"venue": "<string>",
"midpoint": 123
}
]
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.agg.market/llms.txt
Use this file to discover all available pages before exploring further.