Skip to main content

Get Index Price K-line Data

Description

Obtain the K-line data for the index price.

HTTP Request

GET /v3/market/indexPriceCandlesticks

Request Parameters

ParameterRequiredTypeDescription
symbolYesStringA trading pair
intervalYesString
  • MINUTE_1
  • IMINUTE_5
  • MINUTE_15
  • MINUTE_30
  • HOUR_1
  • HOUR_2
  • HOUR_4
  • HOUR_8
  • HOUR_12
  • DAY_1
  • DAY_3
  • WEEK_1
sTimeNoStringStarting time of the candlestick, Unix timestamp format in milliseconds.
eTimeNoStringEnding time of the candlestick, Unix timestamp format in milliseconds.
limitNoIntegerPagination size defaults to 10, with a maximum limit of 100.

Response Parameters

ParameterTypeDescription
oStringOpening price
hStringHighest price
lStringLowest price
cStringClosing price
sTStringStart time
cTStringEnd time

Request Example

{
"symbol": "DOT_USDT_PERP",
"interval": "MINUTE_5",
"limit": "5"
}

Response Example

{
"code": 200,
"data": [
["6.556", "6.59", "6.564", "6.569", "1721985000000", "1721985299999"],
["6.533", "6.577", "6.569", "6.546", "1721985300000", "1721985599999"],
["6.513", "6.551", "6.546", "6.532", "1721985600000", "1721985899999"],
["6.503", "6.544", "6.531", "6.518", "1721985900000", "1721986199999"],
["6.488", "6.519", "6.518", "6.499", "1721986200000", "1721986499999"]
],
"msg": "Success"
}