Skip to main content

Get OrderBook Depth

Frequency limit: 20 times/1s (IP)

Description

Get OrderBook Depth

HTTP Request

  • GET /api/v2/spot/market/orderbook
Request Example
curl "https://api.cointr.com/api/v2/spot/market/orderbook?symbol=BTCUSDT&type=step0&limit=100"

Request Parameters

ParameterTypeRequiredDescription
symbolStringYesTrading pair
typeStringNoDefault:step0: The value enums:step0,step1,step2,step3,step4,step5
limitStringNoNumber of queries: Default: 150, maximum: 150
Response Example
{
"code": "00000",
"msg": "success",
"requestTime": 1698303884579,
"data": {
"asks": [
[
"34567.15",
"0.0131"
],
[
"34567.25",
"0.0144"
]
],
"bids": [
[
"34567",
"0.2917"
],
[
"34566.85",
"0.0145"
]
],
"ts": "1698303884584"
}
}

Response Parameters

ParameterTypeDescription
asksArrayAsk depth
e.g. ["38084.5","0.5"] ,"38084.5" is price,"0.5" is base coin volume
bidsArrayBid depth
tsStringtime