AGG is currently in alpha. APIs, components, and docs may change.
{
"type": "trade",
"outcomeId": "clv2abc123def456",
"channel": "orderbook",
"venue": "kalshi",
"side": "buy",
"price": 0.55,
"size": 100,
"timestamp": 1710000000000
}{
"action": "subscribe",
"channel": "orderbook",
"outcomeIds": [
"clv2abc123def456",
"clv2xyz789ghi012"
]
}{
"action": "unsubscribe",
"channel": "orderbook",
"outcomeIds": [
"clv2abc123def456",
"clv2xyz789ghi012"
]
}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.
{
"type": "trade",
"outcomeId": "clv2abc123def456",
"channel": "orderbook",
"venue": "kalshi",
"side": "buy",
"price": 0.55,
"size": 100,
"timestamp": 1710000000000
}{
"action": "subscribe",
"channel": "orderbook",
"outcomeIds": [
"clv2abc123def456",
"clv2xyz789ghi012"
]
}{
"action": "unsubscribe",
"channel": "orderbook",
"outcomeIds": [
"clv2abc123def456",
"clv2xyz789ghi012"
]
}App-level auth: pass appId as a query parameter on connect. Required for all connections. The appId must belong to an active app with matching allowed origins.
User-level auth: pass JWT as token query param on connect, or send { action: 'authenticate', token } mid-session. Required for user-specific events (orders, balances). Same JWT as the REST API.
Public trade event from a venue
Subscribe to aggregated orderbook updates for markets