Skip to main content
WebSocket events are Pydantic models selected by event_type:
The model union covers fills, settlements, trades, confirmation updates, blocks, position changes, deposits, splits, merges, conversions, redemptions, combo execution/status/lifecycle/approval events, oracle events, Chainlink price feeds, and an UnknownEvent fallback. Unknown additive messages preserve the raw payload. Observe them without treating every compatible server addition as fatal. V3 decimal fractions decode as Decimal. Orderbook prices and sizes remain exact strings. Perps prices and quantities are also wire strings. Keep these exact representations for accounting and convert only for display. See the event reference, orderbook protocol, and perps channels.