Get Order Book
Description
Get market depth data of the designated trading pair
HTTP Request
GET /v3/market/orderBook
Request Parameters
Parameter | Required | Type | Description |
---|---|---|---|
symbol | Yes | String | A trading pair, consisting of two currencies: base currency and quote currency |
scale | No | String | Level of market depth |
limit | No | Integer | Number of results per request. The default limit is 10 . The effective limit: 5 , 10 , 20 , 100 , 150 |
Response Parameters
Parameter | Type | Description |
---|---|---|
ts | String | Timestamp |
s | String | Level of market depth |
asks | List<String> | Buy order book |
bids | List<String> | Sell order book |
Request Example
{
"symbol": "BTC_USDT_PERP",
"scale": "100",
"limit": 50
}
Response Example
{
"code": 200,
"data": {
"asks": [["58700", "9934"]],
"bids": [
["58600", "9952"],
["46000", "10"],
["41000", "2"],
["10000", "13"]
],
"s": "100",
"ts": 1719974138333
},
"msg": "Success"
}