Interface Description:
  • Get the market depth of contract transactions
Request URL:
  • https://apiv2.bitz.com/Market/getContractOrderBook
Request Mode:
  • GET
Parameter:
Parameter Required Type Comment
contractId Yes int Contract ID
depth no string Depth type 5, 10, 15, 20, 30, 100,,default10
Request Example:
  • https://apiv2.bitz.com/Market/getContractOrderBook?contractId=101&depth=5
Example of Return Result:
{
    "status":200,
    "msg":"",
    "data":{
          "bids":[
            {
               "price":"8201.32",//buy一price
                "amount":"2820"//buy一amount
            },
            ...
        ],
        "asks":[
            {
                "price":"8202.14",//sell一price
                "amount":"4863"//sell一amount
            },
            ...
        ]
    }
    "time": 1532671288,
    "microtime": "0.23065700 1532671288",
    "source": "api"
}

results matching ""

    No results matching ""