Skip to content

WebSocket Protocol Reference

See the full WebSocket Protocol guide on GitHub for the binary packet format, packet structure, and parsing details.

Topics covered:

  • Packet header structure
  • Market data packet format (LTP, OHLCV, depth)
  • Order update packet format
  • Subscription request format
  • Heartbeat and keepalive
  • Error codes

Community project — not affiliated with Dhan. MIT License.