Public channel for updates related to market updates (level 2 price data).
SUBSCRIBE
<wss-channel> market
Book Message
Emitted When:
- First subscribed to a market
- When there is a trade that affects the book
Structure
Name | Type | Description |
---|
event_type | string | ”book” |
asset_id | string | asset ID (token ID) |
market | string | condition ID of market |
timestamp | string | unix timestamp the current book generation in milliseconds (1/1,000 second) |
hash | string | hash summary of the orderbook content |
buys | OrderSummary[] | list of type (size, price) aggregate book levels for buys |
sells | OrderSummary[] | list of type (size, price) aggregate book levels for sells |
Where a OrderSummary
object is of the form:
Name | Type | Description |
---|
price | string | size available at that price level |
size | string | price of the orderbook level |
{
"event_type": "book",
"asset_id": "65818619657568813474341868652308942079804919287380422192892211131408793125422",
"market": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
"bids": [
{ "price": ".48", "size": "30" },
{ "price": ".49", "size": "20" },
{ "price": ".50", "size": "15" }
],
"asks": [
{ "price": ".52", "size": "25" },
{ "price": ".53", "size": "60" },
{ "price": ".54", "size": "10" }
],
"timestamp": "123456789000",
"hash": "0x0...."
}
Price_change Message
Emitted When:
- A new order is placed
- An order is cancelled
Structure
Name | Type | Description |
---|
event_type | string | ”price_change” |
asset_id | string | asset ID (token ID) |
market | string | condition ID of market |
price | string | price level affected |
size | string | new aggregate size for price level |
side | string | buy/sell |
timestamp | string | time of event |
{
"asset_id": "71321045679252212594626385532706912750332728571942532289631379312455583992563",
"changes": [
{
"price": "0.4",
"side": "SELL",
"size": "3300"
},
{
"price": "0.5",
"side": "SELL",
"size": "3400"
},
{
"price": "0.3",
"side": "SELL",
"size": "3400"
}
],
"event_type": "price_change",
"market": "0x5f65177b394277fd294cd75650044e32ba009a95022d88a0c1d565897d72f8f1",
"timestamp": "1729084877448",
"hash": "3cd4d61e042c81560c9037ece0c61f3b1a8fbbdd"
}
Tick_size_change Message
Emitted When:
- The minimum tick size of the market changes. This happens when the book’s price reaches the limits: price > 0.96 or price < 0.04
Structure
Name | Type | Description |
---|
event_type | string | ”price_change” |
asset_id | string | asset ID (token ID) |
market | string | condition ID of market |
old_tick_size | string | previous minimum tick size |
new_tick_size | string | current minimum tick size |
side | string | buy/sell |
timestamp | string | time of event |
{
"event_type": "tick_size_change",
"asset_id": "65818619657568813474341868652308942079804919287380422192892211131408793125422",\
"market": "0xbd31dc8a20211944f6b70f31557f1001557b59905b7738480ca09bd4532f84af",
"old_tick_size": "0.01",
"new_tick_size": "0.001",
"timestamp": "100000000"
}
last_trade_price Message
Emitted When:
- When a maker and taker order is matched creating a trade event.
{
"asset_id":"114122071509644379678018727908709560226618148003371446110114509806601493071694",
"event_type":"last_trade_price",
"fee_rate_bps":"0",
"market":"0x6a67b9d828d53862160e470329ffea5246f338ecfffdf2cab45211ec578b0347",
"price":"0.456",
"side":"BUY",
"size":"219.217767",
"timestamp":"1750428146322"
}