Skip to content

Kline Data

Kline data

Http Request

GET
/api/usdt/instruments/candles

Request Frequency Restriction:

  • 10times / 1second

Request Parameters

Name Type Mandatory Description
instrument_id string YES Contract abbreviation, such as BTC, ETH, BCH, BSV, etc.
start_time string YES Unix timestamp. for example. 1680765457
end_time string YES Unix timestamp
period string YES Kline granularity, reference to the value range

Tip

The value of period can only be "1", "3", "5", "15", "30", "60", "120", "240", "360", "720", "D", "W", "M"], otherwise the request will be rejected.

Corresponding to [1min, 3min, 5min, 15min, 30min, 1 hour, 2 hour, 4 hour, 6 hour, 12 hour, 1 day, 1 week, 1 month]

Response fields description

Format: [timestamp, open, high, low, close, volume, turnover, long_volume, short_volume]

turnover = volume * multiplier * price

Response

{
    "code":200,
    "message":null,
    "data":[
        [
          "1681120800000",
          "28308.3",
          "28332.5",
          "28299.9",
          "28300.4",
          "59078",
          "1672882.498",
          "0",
          "59078"
        ],
        [
          "1681117200000",
          "28293.7",
          "28346.8",
          "28275.1",
          "28308.3",
          "178757",
          "5060113.977",
          "0",
          "178757"
        ]
    ]
}