Get The Market Depth
Description
Get the market depth
HTTP Request
- GET /open/api/market_dept
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | String | Yes | coin pair, example: btcusdt |
| type | String | Yes | depth type. For example, there are three depth type: step0, step1, step2(include step0~2). The step0 is the highest accuracy. |
Request Example
http
curl 'https://openapi.100ex.com/open/api/market_dept?symbol=btcusdt&type=step0'Response Parameters
| Parameter | Type | Description |
|---|---|---|
| asks | List<Decimal> | selling market |
| bids | List<Decimal> | buying market |
| [99493, 0.07161] | index 0 is price index 1 is volume |
Response Example
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
}Status Code
| Code | Description |
|---|---|
| 0 | success |
| 1 | system error |
| 2 | parameter error |
