跳到主要内容

查询指数价格K线数据

描述

查询指数价格的K线信息

HTTP请求

GET /v3/market/indexPriceCandlesticks

请求参数

参数是否必填类型描述
symbolString交易对
intervalString枚举:
  • MINUTE_1
  • IMINUTE_5
  • MINUTE_15
  • MINUTE_30
  • HOUR_1
  • HOUR_2
  • HOUR_4
  • HOUR_8
  • HOUR_12
  • DAY_1
  • DAY_3
  • WEEK_1
sTimeString查询开始时间,UNIX时间戳,以毫秒为单位。
eTimeString查询结束时间,UNIX时间戳,以毫秒为单位。
limitInteger分页页面大小,默认为10,最大为100。

响应参数

参数类型描述
tsString更新时间,Unix时间戳的毫秒数格式,如 1597026383085
lString最低价格
hString最高价格
oString开盘价格
cString收盘价格
sTString开始时间
cTString结束时间

请求示例

{
"symbol": "DOT_USDT_PERP",
"interval": "MINUTE_30",
"limit": "10"
}

响应示例

{
"code": 200,
"data": [
["1719959400000", "6.556", "6.59", "6.564", "6.569"],
["1719961200000", "6.533", "6.577", "6.569", "6.546"],
["1719963000000", "6.513", "6.551", "6.546", "6.532"],
["1719964800000", "6.503", "6.544", "6.531", "6.518"],
["1719966600000", "6.488", "6.519", "6.518", "6.499"],
["1719968400000", "6.451", "6.499", "6.499", "6.467"],
["1719970200000", "6.402", "6.479", "6.469", "6.41"],
["1719972000000", "6.382", "6.414", "6.41", "6.399"],
["1719973800000", "6.361", "6.4", "6.399", "6.382"],
["1719975600000", "6.328", "6.382", "6.382", "6.333"]
],
"msg": "Success"
}