跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://developer.wooxpro.com/llms.txt

Use this file to discover all available pages before exploring further.

查询标记价格K线数据

适用于查询标记价格K线数据, 单次请求限制500条数据

请求URL

GET https://cloud-api.wooxpro.com/contract/public/markprice-kline

请求限制

参见 速率限制详细

请求参数

请求
curl https://cloud-api.wooxpro.com/contract/public/markprice-kline?symbol=BTCUSDT&step=5&start_time=1662518172&end_time=1662518172
参数类型是否必填描述
symbolString必填合约交易对(如BTCUSDT)
stepLong选填K线间隔,默认为1分钟 步长: 1, 3, 5, 15, 30, 60, 120, 240, 360, 720, 1440, 4320, 10080
start_timeLong必填开始时间(时间戳,精确到秒)
end_timeLong必填结束时间(时间戳,精确到秒)

响应详情

响应
{
  "code": 1000,
  "trace": "0cc6f4c4-8b8c-4253-8e90-8d3195aa109c",
  "message": "Ok",
  "data": [{
    "timestamp": 1662518160,
    "open_price": "100",
    "close_price": "120",
    "high_price": "130",
    "low_price": "90",
    "volume": "941008"
    },
    {
    "timestamp": 1662518161,
    "open_price": "99",
    "close_price": "119",
    "high_price": "129",
    "low_price": "89",
    "volume": "941008"
    }
  ]
}
字段类型描述
timestampLong时间窗口
open_priceString开盘价
close_priceString收盘价
high_priceString最高价
low_priceString最低价
volumeString成交量