Stockbit Research research Playground @hansputera

WebSocket Protocol

Stockbit uses three WebSocket endpoints for real-time data, all communicating via Protocol Buffers (protobuf) binary frames.

Endpoints

Endpoint URL Sub-protocol Purpose
Trading Data wss://wss-trading.stockbit.com/ws (add ?type=chart for chart WS) ["web"] Live prices, orderbook, trades, IEPIEV, chart data
Social wss://wssocial.stockbit.com Social feed, chat messages
General wss://ws-gen.stockbit.com/v1 General-purpose protobuf WS

Parts

Document Description
Trading Data WS Auth, two-step handshake, decode, orderbook text format, chart WS
General WS Reconnection, heartbeat, error handling
Social WS Social feed & chat real-time updates
Protobuf Schemas All message definitions and enums