Skip to main content

Get Spread Orderbook

Query spread orderbook depth data

HTTP Request

GET /v5/spread/orderbook

Request Parameters

ParameterRequiredTypeComments
symboltruestringSpread combination symbol name
limitfalseintegerLimit size for each bid and ask [1, 25]. Default: 1

Response Parameters

ParameterTypeComments
sstringSpread combination symbol name
barrayBid, buyer. Sort by price desc
> b[0]stringBid price
> b[1]stringBid size
aarrayAsk, seller. Order by price asc
> a[0]stringAsk price
> a[1]stringAsk size
tsintegerThe timestamp (ms) that the system generates the data
uintegerUpdate ID, is always in sequence, it is corresponding to u in the wss 25-level orderbook
seqintegerCross sequence
ctsintegerThe timestamp from the match engine when this orderbook data is produced. It can be correlated with T from public trade channel

Request Example

GET /v5/spread/orderbook?symbol=SOLUSDT_SOL/USDT&limit=1 HTTP/1.1
Host: api-testnet.bybit.com

Response Example

{
"retCode": 0,
"retMsg": "Success",
"result": {
"s": "SOLUSDT_SOL/USDT",
"b": [
[
"21.0000",
"0.1"
]
],
"a": [
[
"23.0107",
"4.6"
]
],
"u": 46977,
"ts": 1744077242177,
"seq": 213110,
"cts": 1744076329043
},
"retExtInfo": {},
"time": 1744077243583
}