Get OrderBook Depth
- GET /capi/v2/market/depth
Weight(IP): 1
Request parameters
| Parameter | Parameter type | Required? | Description | 
|---|---|---|---|
| symbol | String | Yes | Trading pair | 
| limit | Integer | No | Depth size currently has 15 levels and 200 levels | 
Request example
curl "https://api-contract.weex.com/capi/v2/market/depth?symbol=cmt_btcusdt&limit=15"
Response parameters
| Parameter | Type | Description | 
|---|---|---|
| asks | List | Ask depth | 
| bids | List | Bid depth | 
| timestamp | string | Timestamp | 
Response example
{
   "asks":[
         [
            "8858.0", //price
            "19299"//quantity
        ]   
     ],
   "bids":[
         [
            "7466.0", //price
            "499"  //quantity
        ],
         [
            "4995.0",
            "12500"
        ]
     ],
   "timestamp":"1591237821479" 
}