Expand description
WebSocket authentication for Bybit V5 private channels.
Authentication is required for private WebSocket topics (position, execution, order, wallet). The process:
- Generate an
expirestimestamp (current ms + 10 seconds) - Sign the expires value with HMAC-SHA256 using the API secret
- Send
{"op": "auth", "args": [api_key, expires, signature]}
Functionsยง
- generate_
auth_ params - Generate WebSocket authentication parameters.