Skip to main content
Version: Next

Order Book Depth

Get buy and sell depth data for futures trading pairs.

API Information

  • Method: GET
  • Path: /api/v1/futures/open-api/orderbook/{symbol}

Request Parameters

ParameterLocationTypeRequiredDescription
symbolpathstringYesFutures trading pair, e.g. BTCUSDT
depthqueryintNoDepth levels, default 20, max 400
with_idqueryboolNoReturn sequence number for incremental sync, default false
stepquerystringNoPrice aggregation precision, e.g. 0.01, 0.1, 1

Request Example

GET /api/v1/futures/open-api/orderbook/BTCUSDT?depth=20&with_id=true

Response Fields

FieldTypeDescription
codeintStatus code, 200 indicates success
msgstringResponse message
data.symbolstringFutures trading pair
data.bidsarrayBids, [[price, quantity], ...]
data.asksarrayAsks, [[price, quantity], ...]
data.timestampint64Timestamp
data.idint64Sequence number (when with_id=true)
Notes
  • bids sorted high to low
  • asks sorted low to high
  • id sequence number for incremental sync (requires with_id=true)

Response Example

{
"code": 200,
"msg": "success",
"data": {
"symbol": "BTCUSDT",
"bids": [
["68500.5", "1.25"],
["68500.0", "2.50"]
],
"asks": [
["68501.0", "1.50"],
["68501.5", "2.00"]
],
"timestamp": 1737536400000,
"id": 12345678
}
}