Skip to main content

Get Merge Depth

Frequency limit: 20 times/1s (IP)

Description

Get Merge Depth

HTTP Request

  • GET /api/v2/spot/market/merge-depth
Request Example
curl "https://api.cointr.com/api/v2/spot/market/merge-depth?symbol=BTCUSDT&precision=scale0&limit=100"

Request Parameters

ParameterTypeRequiredDescription
symbolStringYesTrading pair
precisionStringNoPrice precision, return the cumulative depth according to the selected precision as the step size, enumeration value:
scale0/scale1/scale2/scale3,
scale0 does not merge, the default value, generally speaking,
scale1 is the merged depth of the trading pair quotation accuracy 10, generally Under normal circumstances,
scale2 is the quotation accuracy
100. Under normal circumstances,
scale3 is the quotation accuracy * 1000.
Under normal circumstances, the accuracy corresponding to 0/1/2/3 is based on the actual return parameter "scale". Each trading pair The quotation accuracy is different. Some currency pairs do not have scale 2. Requests for scales that do not exist for the currency pair will be processed according to the maximum scale. Example: A certain trading pair only has scale 0/1, and when scale2 is requested, it is automatically reduced to scale1.
limitStringNoFixed gear enumeration value:1/5/15/50/max,default:100,When the actual depth does not meet the limit, return according to the actual gear, and pass in max to return the maximum gear of the trading pair.
Response Example
{
"code": "00000",
"msg": "success",
"requestTime": 1695808949356,
"data": {
"asks": [
[
"38084.5",
"0.0039"
],
[
"38085.7",
"0.0018"
],
[
"38086.7",
"0.0310"
],
[
"38088.2",
"0.5303"
]
],
"bids": [
[
"38073.7",
"0.4993000000000000"
],
[
"38073.4",
"0.4500"
],
[
"38073.3",
"0.1179"
],
[
"38071.5",
"0.2162"
]
],
"ts": "1622102974025",
"scale":"0.1",
"precision":"scale0",
"isMaxPrecision":"YES"
}
}

Response Parameters

ParameterTypeDescription
asksArrayAsk depth
e.g. ["38084.5","0.5"] ,"38084.5" is price,"0.5" is base coin volume
bidsArrayBid depth
precisionStringCurrent gear, e.g. "scale1"
scaleStringActual precision value, e.g. "0.1"
isMaxPrecisionStringIs max precision
YES:yes
NO:no
tsStringtime