Skip to content

查询买卖盘深度

描述

查询买卖盘深度

HTTP请求

  • GET /open/api/market_dept

请求参数

参数名参数类型是否必须描述
symbolString币对,例如: btcusdt
typeString深度类型,step0, step1, step2(合并深度0-2);step0时,精度最高

请求示例

http
curl 'https://openapi.100ex.com/open/api/market_dept?symbol=btcusdt&type=step0'

返回参数

返回字段字段类型字段说明
asksList<Decimal>卖盘
bidsList<Decimal>买盘
[99493, 0.07161]index 0: 价格
index 1: 数量

返回示例

json
{
    "code": "0",
    "msg": "suc",
    "data": {
        "tick": {
            "asks": [
                [
                    99493,
                    0.07161
                ],
                [
                    99495,
                    0.04126
                ],
                [
                    99496,
                    0.04539
                ]
            ],
            "bids": [
                [
                    99489,
                    0.79431
                ],
                [
                    99488,
                    0.39903
                ],
                [
                    99487,
                    0.11564
                ]
            ],
            "time": null
        }
    },
    "message": null,
    "traceId": null
}

状态码

状态码说明
0成功
1系统错误
2参数错误