Skip to main content

Index Price Kline/Candlestick Data

API Description

Kline/candlestick bars for the index price of a pair. Klines are uniquely identified by their open time.

HTTP Request

GET /dapi/v1/indexPriceKlines

Request Weight

based on parameter LIMIT

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

1000 | 10

Request Parameters

NameTypeMandatoryDescription
pairSTRINGYES
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

[
[
1591256400000, // Open time
"9653.69440000", // Open
"9653.69640000", // High
"9651.38600000", // Low
"9651.55200000", // Close (or latest price)
"0 ", // Ignore
1591256459999, // Close time
"0", // Ignore
60, // Number of bisic data
"0", // Ignore
"0", // Ignore
"0" // Ignore
]
]