接口描述:
  • 获取合约K线数据
请求URL:
  • https://apiv2.bitz.com/Market/getContractKline
请求方式:
  • GET
参数:
参数名 必选 类型 备注
contractId int 合约ID
type string K线类型 1m, 5m, 15m, 30m, 1h, 4h, 1d
size int 获取数据数量 1-300, 默认300
请求示例:
  • https://apiv2.bitz.com/Market/getContractKline?contractId=101&type=1d&size=300
返回结果实例:
{
    "status":200,
    "msg":"",
    "data":{
          "lists":[
            [
                "1558433100000", //时间
                "7921.69000000", //开盘价
                "7921.96000000", //最高价
                "7882.31000000", //最低价
                "7882.31000000", //收盘价
                "1793940.00000000", //交易量
                "14183930623.27000000" //成交额
            ]
        ]
    }
    "time": 1532671288,
    "microtime": "0.23065700 1532671288",
    "source": "api"
}

results matching ""

    No results matching ""