Depth methods

Used to get information on order books for a specific pair.

List of Depth methods:

Depth Query method

Used for one-time data get requests.

Method

depth.query

Request "params" parameters

Name
Type
Description
Example

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

Name
Type
Description

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

Name
Type
Type
Example

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")

Name
Type
Description

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.

Method

Request example

Response example (successfully unsubscribed)