Public-Depth Channel

Return the depth data

Pushing Rules

  1. No user login required
  2. After subscribing, the current data will be returned directly, and then the changes will be pushed

Example

Request
{"op": "subscribe", "args": ["spot/depth5:BTC_USDT"]}

spot/depth5 is the channel name and BTC_USDT is the trading pair

Channel List
Channel Name Description
spot/depth5 5 Level Depth Channel
spot/depth400 400 Level Depth Channel
Response

(Note: This data is displayed after decompression, Refer to Data Compression for details)

{
    "table":"spot/depth5",
    "data":[
        {
            "asks":[
                [
                    "161.96",
                    "7.37567"
                ]
            ],
            "bids":[
                [
                    "161.94",
                    "4.552355"
                ]
            ],
            "symbol":"ETH_USDT",
            "ms_t": 1542337219120
        }
    ]
}

Return Parameter Description:

Parameter Type Description
symbol string Trading pair, BTC_USDT
asks List Ask depth
bids List Bid depth
ms_t long Timestamp (in millisecond)

Note

An example of the array of asks and bids values: ["411.8","10"]. 411.8 is the price, and 10 is the quantity.

results matching ""

    No results matching ""