Get Order Book Depth
- GET
/api/v3/market/depth
Weight(IP): 5
Request parameters
| Parameter | Type | Required? | Description |
|---|---|---|---|
| symbol | String | Yes | Trading pair, e.g. BTCUSDT. |
| limit | Integer | No | Number of depth entries. Supported values: 15, 200. Default 15. |
Request example
curl "https://api-spot.weex.com/api/v3/market/depth?symbol=BTCUSDT&limit=200"
Response parameters
| Field | Type | Description |
|---|---|---|
| lastUpdateId | Long | Order book snapshot ID. |
| bids | Array<Array> | Bid depth entries formatted as [price, quantity]. |
| asks | Array<Array> | Ask depth entries formatted as [price, quantity]. |
Response example
{
"lastUpdateId": 451234567890,
"bids": [
["68950.10", "2.345"],
["68949.80", "0.512"]
],
"asks": [
["68950.20", "1.104"],
["68950.40", "3.872"]
]
}