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 freeSpot L2 order book snapshot (bids and asks) for a symbol.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
symbol | query | str | required | Spot symbol. example: ASTERUSDT |
limit | query | int | optional | Depth 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"