Depth Information
Description
Get limited-level order book information.
Method
depth
Request
{
"id": "51e2affb-0aba-4821-ba75-f2625006eb43",
"method": "depth",
"params": {
"symbol": "BTCUSDT"
}
}
Weight
| limit | Weight |
|---|---|
| 5, 10, 20, 50 | 2 |
| 100 | 5 |
| 500 | 10 |
| 1000 | 20 |
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | STRING | YES | Trading pair |
| limit | INT | NO | Default 500; Valid values: [5, 10, 20, 50, 100, 500, 1000] |
Response Example
{
"id": "51e2affb-0aba-4821-ba75-f2625006eb43",
"status": 200,
"result": {
"lastUpdateId": 1027024,
"E": 1589436922972, // Message time
"T": 1589436922959, // Matching engine time
"bids": [ // Bids
[
"4.00000000", // Price
"431.00000000" // Quantity
]
],
"asks": [ // Asks
[
"4.00000200", // Price
"12.00000000" // Quantity
]
]
},
"rateLimits": [
{
"rateLimitType": "REQUEST_WEIGHT",
"interval": "MINUTE",
"intervalNum": 1,
"limit": 2400,
"count": 5
}
]
}