Skip to main content
GET
/
stats
/
api
/
v1
/
order_book_l2
Get Order Book (L2)
curl --request GET \
  --url https://api.example.com/stats/api/v1/order_book_l2
{
  "value": [
    {
      "symbol": "<string>",
      "side": 123,
      "amount": "<string>",
      "price": "<string>"
    }
  ],
  "success": true,
  "timestamp": 123
}

Query Parameters

symbol
string

The symbol

depth
integer

The best N bids and asks to return, where N = depth

side
enum<integer>

The side of the order. Values include: 0: Bid, 1: Ask

Available options:
0,
1
priceAggregation
enum<number>

The price aggregation to use for the L2 orderbook. Valid values for each symbol include: ETHP: 0.1, 1, 10 BTCP: 1, 10, 100

Available options:
0.1,
1,
10,
100

Response

Order Book L2 data

Successful response for the Order Book L2 API

value
object[]
required

The value of the response

success
boolean
required

Whether the request was successful

timestamp
number
required

The timestamp of the response

Example:

1673031089

Last modified on April 27, 2026