Skip to main content
Version: Next

WebSocket Connection Guide

Connection Address​

wss://api9528mystks.mystonks.org/api/v1/futures/ws

General Rules​

  • Protocol: WebSocket (ws:// or wss://)
  • Data Format: JSON
  • Heartbeat Timeout: Auto-disconnects after 70 seconds without messages
  • Recommended Heartbeat Interval: Send ping every 20 seconds

Heartbeat Mechanism​

Heartbeat Request​

{"action": "ping"}

Heartbeat Response​

{"event": "pong", "timestamp": 1736163000000}