Opera WebSocket
Connection
Opera WebSocket
Upgrade to WebSocket. All Opera traffic is JSON text frames.
Client actions (set action):
operaConnect—{ token, requestId? }required for external bots (marks the socket as API; cannot call bot-mode / session record/reset)operaPlace— single order fields or{ orders: [...] }(max 40)operaCancel—{ orderId }operaCancelAlloperaGetState
Optional requestId is echoed on operaResult. The browser UI authenticates with userConnected (not operaConnect); UI-only ops are gated by that connection kind, not by a client source field.
Server messages (set type):
operaResult— reply to a client action (op,status, body fields)operaState— snapshot push after mutationsorderBook— live book / participants
GET
Opera WebSocket
Response
101
Switching Protocols