查询买卖盘深度
描述
查询买卖盘深度
HTTP请求
- GET /open/api/market_dept
请求参数
| 参数名 | 参数类型 | 是否必须 | 描述 |
|---|---|---|---|
| symbol | String | 是 | 币对,例如: btcusdt |
| type | String | 是 | 深度类型,step0, step1, step2(合并深度0-2);step0时,精度最高 |
请求示例
http
curl 'https://openapi.100ex.com/open/api/market_dept?symbol=btcusdt&type=step0'返回参数
| 返回字段 | 字段类型 | 字段说明 |
|---|---|---|
| asks | List<Decimal> | 卖盘 |
| bids | List<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 | 参数错误 |
