Interface Description:
- Get the market depth of contract trading
Request URL:
https://apiv2.bitz.com/Market/getContractOrderBook
Request Mode:
Parameter:
Parameter |
Required |
Type |
Comment |
contractId |
true |
int |
Contract ID |
depth |
false |
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",
"amount":"2820"
},
...
],
"asks":[
{
"price":"8202.14",
"amount":"4863"
},
...
]
}
"time": 1532671288,
"microtime": "0.23065700 1532671288",
"source": "api"
}