Skip to content

Orderbook Data Push

Connection Information

Connection Endpoint: wss://{host}/ws/orderbooks/v1?symbols=doge@dcex/eth@dcex

Description: Provides real-time orderbook data push for Makers

Authentication: JWT token passed through subprotocols

Query Parameters

ParameterTypeRequiredDescription
symbolsstringYesURL parameter, single format is {symbol}@{market}, multiple separated by /. Market possible values are usex/hkex/dcex. US stock single format can omit market, i.e., no need for @{market} part

Orderbook Update Notification

When orderbook data updates, you will receive messages in the following format:

json
{
  "type": "orderbook_update",
  "timestamp": "2026-01-19T06:55:49.301529733Z",
  "data": {
    "symbol": "DOGE",
    "market": "dcex",
    "bid": [],
    "ask": [
      {
        "price": 0.12988,
        "volume": 6.0
      },
      {
        "price": 0.13083,
        "volume": 5.0
      }
    ],
    "time": "2025-12-24T01:33:24Z"
  }
}

Message Field Description

FieldTypeDescription
typestringMessage type
timestampstringTimestamp, message time
dataobjectOrderbook update data
data.symbolstringStock symbol
data.marketstringMarket code enum. See Market enum type description for details
data.askobject arrayAsk orders
data.ask[].pricedecimalPrice in corresponding market
data.ask[].volumedecimalVolume
data.bidobject arrayBid orders
data.bid[].pricedecimalPrice in corresponding market
data.bid[].volumedecimalVolume
data.timestringData time

Server Heartbeat

The server sends heartbeat messages to the connection at regular intervals:

json
{
  "type": "heartbeat",
  "timestamp": 1763722070521
}

Enum Types

WebSocketDataType - WebSocket Message Type

EnumDescription
heartbeatServer-side heartbeat notification
order_status_changeOrder status change