Skip to main content
Event messages use a discriminated event_type union:
The union includes fills, settlements, trades, status updates, blocks, position changes, deposits, splits, merges, conversions, redemptions, combo execution/status/lifecycle/approval events, oracle events, Chainlink price feeds, and an unknown variant. Unknown additive events and fields are preserved so a compatible server addition does not require dropping the payload. Treat unknown as observable data, not as a fatal protocol error. Orderbook price and size values and perps prices/quantities are exact decimal strings. Keep them as strings or convert with a decimal library; do not use JavaScript number for exact accounting. V3 generic calls return wire JSON. Supply a type argument only when your application owns and validates the corresponding schema:
See event reference, orderbook protocol, and perps channels for wire fields.