This topic sends the latest market depth when it is updated.

market.$symbol$.depth.$type$

Topic Parameter

ParameterData TypeRequiredDefault ValueDescriptionValue Range
symbolstringtrueNATrading symbolAll supported trading symbols, e.g. btcusdt, bccbtc
typestringtruestep0Market depth aggregation level, details belowstep0, step1, step2, step3, step4, step5
{
  "sub": "market.btcusdt.depth.step0",
  "id": "id1"
}

"type" Details

ValueDescription
step0No market depth aggregation
step1Aggregation level = precision*10
step2Aggregation level = precision*100
step3Aggregation level = precision*1000
step4Aggregation level = precision*10000
step5Aggregation level = precision*100000
{
  "id": "id1",
  "status": "ok",
  "subbed": "market.btcusdt.depth.step0",
  "ts": 1489474081631
}

Update Content

FieldData TypeDescription
bidsobjectThe current all bids in format [price, quote volume]
asksobjectThe current all asks in format [price, quote volume]
{
  "ch": "market.btcusdt.depth.step0",
  "ts": 1489474082831,
  "tick": {
    "bids": [
    [9999.3900,0.0098], // [price, amount]
    [9992.5947,0.0560]
    // more Market Depth data here
    ],
    "asks": [
    [10010.9800,0.0099],
    [10011.3900,2.0000]
    //more data here
    ]
  }
}

Pull Request

Pull request is supported.

{
  "req": "market.btcusdt.depth.step0",
  "id": "id10"
}