Skip to main content

Module messages

Module messages 

Source
Expand description

WebSocket message types for the Polymarket CLOB API.

Structs§

MarketInitialSubscribeRequest
Initial market-channel subscribe request sent for a fresh WebSocket session.
MarketSubscribeRequest
Incremental market-channel subscribe request sent after the initial session subscribe.
MarketUnsubscribeRequest
Market-channel dynamic unsubscribe request sent during an active session.
PolymarketBestBidAsk
A best bid/ask notification from the WebSocket market channel.
PolymarketBookLevel
A single price level in an order book snapshot.
PolymarketBookSnapshot
An order book snapshot from the WebSocket market channel.
PolymarketMarketResolved
A market resolved notification from the WebSocket market channel.
PolymarketNewMarket
A new market notification from the WebSocket market channel.
PolymarketNewMarketEvent
Event metadata embedded in a new market notification.
PolymarketQuote
A single price change entry within a quotes message.
PolymarketQuotes
A price change (quotes) message from the WebSocket market channel.
PolymarketTickSizeChange
A tick size change notification from the WebSocket market channel.
PolymarketTrade
A last trade price message from the WebSocket market channel.
PolymarketUserOrder
A user order status update from the WebSocket user channel.
PolymarketUserTrade
A user trade update from the WebSocket user channel.
PolymarketWsAuth
Auth payload embedded in user-channel subscribe messages.
UserSubscribeRequest
User-channel subscribe request sent on connect.

Enums§

MarketWsMessage
An envelope for tagged WebSocket market channel messages.
PolymarketWsMessage
Output message type from the Polymarket WebSocket handler.
UserWsMessage
An envelope for tagged WebSocket user channel messages.