Get Market Depth
1. Request Url
https://{host}/marketApi/depth
2. Request Param
Parameter name
Is it necessary
description
channelId
Y
Channel number
timestamp
Y
Millisecond timestamp(UTC+8)
tradePair
Y
Trade pair
depth
Y
Deep polymerization, 1,2,3,4,5,6
3.Request Example
1
{
2
"channelId":"swft-channel",
3
"sign":"102027D292DD0707E0D899459D91C759858D7367D223CB239A8EC3A90C30B122",
4
"timestamp":"1557653925555",
5
"tradePair":"BTC/USDT",
6
"depth":"1"
7
}
Copied!
4.Response Data
1
{
2
"data":{
3
"buyOrders":[
4
[
5
"10395.67",
6
"0.006137"
7
],
8
[
9
"10393.50",
10
"4.741722"
11
]
12
],
13
"sellOrders":[
14
[
15
"10392.33",
16
"0.097679"
17
],
18
[
19
"10392.39",
20
"1.593146"
21
]
22
],
23
"latestPrice":"10392.33",
24
"latestType":"buy"
25
},
26
"resCode":"800",
27
"resMsg":"SUCCESS"
28
}
Copied!
5.Response Data Explanation
Description
Is Array
Parameter name
Data type
Length
Is it necessary
Remark
Buy orders
Y
buyOrders
Array
-
Y
eg: array
Sell orders
Y
sellOrders
Array
-
Y
eg: array
Latest price
N
latestPrice
String
20
Y
eg: 10392.33
Latest type
N
latestType
String
20
Y
eg: sell/buy
Last modified 2yr ago
Copy link