Get OrderBook Depth
HTTP request Retrieve depth data
- GET /api/v2/market/depth
Weight(IP): 1
Request parameters
| Parameter | Parameter type | Required? | Description | 
|---|---|---|---|
| symbol | String | Yes | Futures name | 
| type | String | No | Default: step0: no aggregation.Values: step0, step1, step2, step3, step4, step5 | 
| limit | String | No | Number of entries (Only 15 and 200) | 
Request example
curl "https://api-spot.weex.com/api/v2/market/depth?symbol=BTCUSDT_SPBL&type=step0&limit="
Response parameters
| Field Name | Type | Field Description | 
|---|---|---|
| asks | array | Ask [Price, Quantity] | 
| bids | array | Bid [Price, Quantity] | 
Response example
{
    "code":"00000",
    "msg":"success",
    "requestTime":1622102974025,
    "data":{
        "asks":[
            [
                "38084.5",
                "0.0039"
            ],
            [
                "38085.7",
                "0.0018"
            ],
            [
                "38086.7",
                "0.0310"
            ],
            [
                "38088.2",
                "0.5303"
            ]
        ],
        "bids":[
            [
                "38073.7",
                "0.4993000000000000"
            ],
            [
                "38073.4",
                "0.4500"
            ],
            [
                "38073.3",
                "0.1179"
            ],
            [
                "38071.5",
                "0.2162"
            ]
        ],
        "timestamp":"1622102974025"
    }
}