Messages
{
"topic": "all_market_contexts",
"contexts": [
{
"market": "BTC/USD",
"volume_24h": 1250000,
"open_interest": 125000.5,
"mark_price": 50120.5,
"mid_price": 50122.25,
"oracle_price": 50125.75,
"previous_day_price": 49000,
"price_change_pct_24h": 2.29
}
]
}Websockets
All market contexts
Perp-only, like GET /api/v1/asset_contexts: the same payload (24h volume, 24h change, open interest, prices) for every perp market, pushed on each state sync (throttled to 1/s). Spot contexts never appear here; they are served by /api/v1/spot/asset_contexts. Global topic; computed in memory from the rolling 24h fill window.
WSS
all_market_contexts
Messages
{
"topic": "all_market_contexts",
"contexts": [
{
"market": "BTC/USD",
"volume_24h": 1250000,
"open_interest": 125000.5,
"mark_price": 50120.5,
"mid_price": 50122.25,
"oracle_price": 50125.75,
"previous_day_price": 49000,
"price_change_pct_24h": 2.29
}
]
}AllMarketContextsMessage
type:object
Perp-only, like GET /api/v1/asset_contexts: the same payload (24h volume, 24h change, open interest, prices) for every perp market, pushed on each state sync (throttled to 1/s). Spot contexts never appear here; they are served by /api/v1/spot/asset_contexts. Global topic; computed in memory from the rolling 24h fill window.

