接口描述:
  • 獲取合約K線數據
請求URL:
  • https://apiv2.bitz.com/Market/getContractKline
請求方式:
  • GET
參數:
參數名 必選 類型 備註
contractId int 合約ID
type string K線類型 1m, 5m, 15m, 30m, 1h, 4h, 1d,默認5m
size int 獲取數據數量 1-300, 默認300
請求示例:
  • https://apiv2.bitz.com/Market/getContractKline?contractId=1&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 ""