KLine methods

Used to get data for charts.

List of KLine methods:

KLine Query method

Used for one-time data get requests.

Method

kline.query

Request "params" parameters

Name
Type
Description
Example

pair*

STRING

Any public pair

BTC_USDT

start*

NUMERIC

Start time in TimeStamp format

1727272000

end*

NUMERIC

Start time in TimeStamp format

1727276700

interval*

NUMERIC

Time interval (60 = 1 min, 900 = 15 min, 1800 = 30 min, 3600 = 1 h, 14400 = 4 h, 86400 = 1 d, etc)

3600

Request example

{
  "method":"kline.query",
  "params":
    [
      "BTC_USDT",
      1727272000,
      1727276700,
      3600
    ],
  "id":10
}

Response "result" parameters

Name
Type

time

NUMERIC

open

STRING

close

STRING

highest

STRING

lowest

STRING

volume

STRING

amount

STRING

market

STRING

Response example

KLine Subscribe method

Used to subscribe to receive real-time updates.

Method

Request "params" parameters

Name
Type
Description
Example

pair*

STRING

Any public pair

BTC_USDT

interval*

NUMERIC

Time interval (60 = 1 min, 900 = 15 min, 1800 = 30 min, 3600 = 1 h, 14400 = 4 h, 86400 = 1 d, etc)

3600

Request example

Response example (successfully subscribed)

Response "params" parameters ("kline.update")

Name
Type

time

NUMERIC

open

STRING

close

STRING

highest

STRING

lowest

STRING

volume

STRING

amount

STRING

market

STRING

Response example ("kline.update")

KLine unsubscribe method

Used to unsubscribe from the KLine Subscribe method.

Method

Request example

Response example (successfully unsubscribed)