GET /api/v1/depth

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/aster/api/v1/depthCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Spot L2 order book snapshot (bids and asks) for a symbol.

Parameters

nameintypedescription
symbolquerystrrequiredSpot symbol.
example: ASTERUSDT
limitqueryintoptionalDepth levels.
example: 5

Response

type: object
data key: bids
pagination: none
sample: {
  "lastUpdateId": "int",
  "E": "int",
  "T": "int",
  "symbol": "str",
  "bids": "array[5]",
  "asks": "array[5]"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/aster/api/v1/depth?symbol=ASTERUSDT&limit=5"