Depth methods
Used to get information on order books for a specific pair.
List of Depth methods:
Depth Query - used for one-time data get requests.
Depth Subscribe - used to subscribe to receive real-time updates.
Depth Unsubscribe - used to unsubscribe from the Depth Subscribe method.
Depth Query method
Used for one-time data get requests.
Method
depth.queryRequest "params" parameters
market*
STRING
Any public pair
BTC_USDT
limit*
NUMERIC
Limit of order quantity
1
interval*
STRING
Interval (defoult = 1, no interval: 0, step = 1)
0
Request example
{
"method":"depth.query",
"params":
[
"BTC_USDT", // market
1, // limit
"0" // interval
],
"id":1
}Response "result" parameters
type
STRING
Order type (ask = sell, bid = buy)
price
STRING
Order price (in 1st ticker of the pair)
amount
STRING
Order amount (in 1st ticker of the pair)
Response example
Depth Subscribe method
Used to subscribe to receive real-time updates.
Method
Request "params" parameters
market*
STRING
Any public pair
BTC_USDT
limit*
NUMERIC
Number of orders
1
interval*
STRING
Interval (defoult = 1, no interval: 0, step = 1)
0
Request example
Response example (successfully subscribed)
Response "params" parameters ("depth.update")
status
BOOLEAN
FALSE = returned latest result, TRUE = no updates
type
STRING
Order type (ask = sell, bid = buy)
price
STRING
Order price (in 1st ticker of the pair)
amount
STRING
Order amount (in 1st ticker of the pair)
market
STRING
Pair name
Response example ("depth.update")
Depth Unsubscribe method
Used to unsubscribe from the Depth Subscribe method.