Order Book
HTTP Request
GET /spot/v3/public/quote/depth
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
symbol | true | string | symbol |
limit | false | integer | Limit for data size. [1 , 200 ]. Default: 100 |
Response Parameters
Parameter | Type | Comments |
---|---|---|
time | number | Current time, unit in millisecond |
bids | array | Bid price and quantity, with best bid prices ranked from top to bottom |
asks | array | Ask price and quantity, with best ask prices ranked from top to bottom |
Request Example
curl --location --request GET 'https://api-testnet.bybit.com/spot/v3/public/quote/depth?symbol=BTCUSDT&limit=1'
Response Example
{
"retCode": 0,
"retMsg": "OK",
"result": {
"time": 1659429083820,
"bids": [
[
"21170.14",
"0.050096"
]
],
"asks": [
[
"21250",
"0.00211"
]
]
},
"retExtInfo": {},
"time": 1659429083979
}