Interface Description:
  • Get K Line Data of Contract
Request URL:
  • https://apiv2.bitz.com/Market/getContractKline
Request Mode:
  • GET
Parameter:
Parameter Required Type Comment
contractId Yes int Contract ID
type Yes string K line type 1m, 5m, 15m, 30m, 1h, 4h, 1d,default5m
size No int Get data volume 1-300, default 300
Request Example:
  • https://apiv2.bitz.com/Market/getContractKline?contractId=101&type=1d&size=300
Example of Return Result:
{
    "status":200,
    "msg":"",
    "data":{
          "lists":[
            [
                "1558433100000", //time
                "7921.69000000", //opening price
                "7921.96000000", //highest price
                "7882.31000000", //lowest price
                "7882.31000000", //closing price
                "1793940.00000000", //volume
                "14183930623.27000000" //turnover
            ]
        ]
    }
    "time": 1532671288,
    "microtime": "0.23065700 1532671288",
    "source": "api"
}

results matching ""

    No results matching ""