Skip to content

Get The Market Depth

Description

Get the market depth

HTTP Request

  • GET /open/api/market_dept

Request Parameters

ParameterTypeRequiredDescription
symbolStringYescoin pair, example: btcusdt
typeStringYesdepth 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

ParameterTypeDescription
asksList<Decimal>selling market
bidsList<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

CodeDescription
0success
1system error
2parameter error