Interface Description:
  • Get Trade History of Certain Contract
Request URL:
  • https://apiv2.bitz.com/Market/getContractTradesHistory
Request Mode:
  • GET
Parameter:
Parameter Required Type Comment
contractId Yes int Contract ID
pageSize No int Get data volume range:10-300 default 10
Request Example:
  • https://apiv2.bitz.com/Market/getContractTradesHistory?contractId=1
Example of Return Result:
{
    "status":200,
    "msg":"",
    "data":{
          "lists":[
            {
                "time":1558432920, //timestamp
                "price":"7926.41",  //price
                "num":7137, // number
                "type":"buy" // type
            }
        ]
    }
    "time": 1532671288,
    "microtime": "0.23065700 1532671288",
    "source": "api"
}

results matching ""

    No results matching ""