获取深度数据
HTTP请求 获取深度数据
- GET /api/v2/market/depth
权重(IP): 1
请求参数
| 参数名 | 参数类型 | 是否必须 | 描述 | 
|---|---|---|---|
| symbol | String | 是 | 交易对 | 
| type | String | 否 | 默认:step0:不合并,取值:step0, step1, step2, step3, step4, step5 | 
| limit | String | 否 | 查询条数,只有15和200 | 
请求示例
curl "https://api-spot.weex.com/api/v2/market/depth?symbol=BTCUSDT_SPBL&type=step0&limit="
返回参数
| 字段名 | 类型 | 字段说明 | 
|---|---|---|
| asks | array | 卖盘 [价位, 挂单量] | 
| bids | array | 买盘 [价位, 挂单量] | 
返回示例
{
    "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"
    }
}