WebSocket

View as Markdown

Service Endpoint

wss://6mm.com/ws

WebSocket channels are divided into public channels and private channels:

TypeAuthenticationDescription
Public channelsNot requiredMarket data, such as depth, trades, Klines, and ticker
Private channelslistenKey or JWT requiredUser order, account, and position streams

Public Channels

Public WebSocket does not require authentication. After connecting, send a subscribe request to subscribe to market channels.

Common channels:

ChannelDescription
market.depth.{symbol}Order book depth. Sends a snapshot first, then incremental updates
market.trade.{symbol}Latest trades
market.kline.{symbol}.{interval}Klines
market.ticker.{symbol}Single-symbol ticker summary
market.tickersAll-symbol ticker summary

Private Channels

listenKey

For private WebSocket streams, create a listenKey through the REST API first, then connect to:
wss://6mm.com/ws?listenKey=YOUR_LISTEN_KEY

JWT

Compatible JWT connection method:
wss://6mm.com/ws?token=YOUR_ACCESS_TOKEN

After authentication succeeds, the server automatically subscribes the connection to the current user’s private channel. No manual subscription is required.