K线数据

1) 请求地址

{haoquote_host}/api/v1/quote/kline

2) 调用方式:HTTP GET
3) 接口描述:

k线

4) 请求参数:
GET参数:
字段名称 类型 必填 字段说明 备注
symbol string Y 交易对的symbol eg: symbol=usdjpy
interval ENUM Y k线间隔 eg: "m1", "m3", "m5", "m15", "m30", "h1", "h2", "h4", "h6", "h8", "h12", "d1", "d3", "w1", "mn"
limit int N 默认500,最大1000
5) 请求返回结果:
{
    "data": [
        [
            1696813800000,
            "107.868",
            "121.097",
            "107.868",
            "121.097",
            "100.00"
        ],
        [
            1696813740000,
            "105.824",
            "107.868",
            "105.824",
            "107.868",
            "20.00"
        ],
        [
            1696777140000,
            "104.801",
            "105.824",
            "104.801",
            "105.824",
            "9.49"
        ],
        [
            1695801720000,
            "49.199",
            "53.648",
            "30.118",
            "53.648",
            "12.00"
        ]
    ],
    "ok": 1
}
6) 请求返回结果参数说明:
    [
        1696813800000, //k线开盘时间
        "107.868",  // 开盘价
        "121.097", // 最高价
        "107.868", // 最低价
        "121.097", // 收盘价(当前K线未结束的即为最新价)
        "100.00"  // 成交量
    ],
END
Copyright © HaoTrader 2023 all right reserved,powered by GitbookFile Modify: 2024-04-22 06:49:46

results matching ""

    No results matching ""