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 | Fixed gear enumeration value: 15/200, the default gear is 15 |
Request example
curl "https://api-contract.weex.com/capi/v2/market/depth?symbol=cmt_btcusdt&limit=15"
Response parameters
| Parameter | Type | Description |
|---|---|---|
| asks | List | Sell side depth data Format: [price, quantity] where quantity is in base currency |
| Index 0 | String | Price |
| Index 1 | String | Quantity |
| bids | List | Buy side depth data Format: [price, quantity] where quantity is in base currency |
| Index 0 | String | Price |
| Index 1 | String | Quantity |
| timestamp | String | Timestamp Unix millisecond timestamp |
Response example
{
"asks":[
[
"8858.0", //price
"19299"//quantity
]
],
"bids":[
[
"7466.0", //price
"499" //quantity
],
[
"4995.0",
"12500"
]
],
"timestamp":"1591237821479"
}