Skip to main content

Continuous Contract Kline/Candlestick Data

API Description#

Kline/candlestick bars for a specific contract type. Klines are uniquely identified by their open time.

  • Contract type:
    • PERPETUAL
    • CURRENT_QUARTER
    • NEXT_QUARTER

HTTP Request#

GET /dapi/v1/continuousKlines

Request Weight#

based on parameter LIMIT

LIMITweight
[1,100)1
[100, 500)2
[500, 1000]5
> 100010

Request Parameters#

NameTypeMandatoryDescription
pairSTRINGYES
contractTypeENUMYES
intervalENUMYES
startTimeLONGNO
endTimeLONGNO
limitINTNODefault 500; max 1500.
  • The difference between startTime and endTime can only be up to 200 days
  • Between startTime and endTime, the most recent limit data from endTime will be returned:
    • If startTime and endTime are not sent, current timestamp will be set as endTime, and the most recent data will be returned.
    • If startTime is sent only, the timestamp of 200 days after startTime will be set as endTime(up to the current time)
    • If endTime is sent only, the timestamp of 200 days before endTime will be set as startTime

Response Example#

[  [    1591258320000,          // Open time    "9640.7",               // Open    "9642.4",               // High    "9640.6",               // Low    "9642.0",               // Close (or latest price)    "206",                  // Volume    1591258379999,          // Close time    "2.13660389",           // Base asset volume    48,                     // Number of trades    "119",                  // Taker buy volume    "1.23424865",           // Taker buy base asset volume    "0"                     // Ignore.  ]]