Skip to main content
GET
/
v1
/
market
/
depth
Order Book Depth
curl --request GET \
  --url https://api.tickdb.ai/v1/market/depth \
  --header 'X-API-Key: <api-key>'
{
  "code": 0,
  "message": "success",
  "data": {
    "symbol": "BTCUSDT",
    "timestamp": 1703123456789,
    "bids": [
      [
        "43100.00",
        "1.25"
      ]
    ],
    "asks": [
      [
        "43101.00",
        "0.85"
      ]
    ]
  }
}

Order Book Depth

GET /v1/market/depth

Overview

Retrieve real-time order book depth (bids & asks) for a trading symbol.

Multi-Market Examples

Crypto: BTCUSDT, ETHUSDT, ADAUSDT
US Stocks: AAPL.US, TSLA.US, MSFT.US
HK Stocks: 700.HK, 9988.HK, 3690.HK
curl -H "X-API-Key: YOUR_API_KEY" \
     "https://api.tickdb.ai/v1/market/depth?symbol=700.HK&limit=10"

Example Response

{
    "code": 0,
    "message": "success",
    "data": {
        "symbol": "700.HK",
        "timestamp": 1768274016162,
        "bids": [
            [
                "626",
                "19700"
            ],
            [
                "625.5",
                "40800"
            ],
            [
                "625",
                "58200"
            ],
            [
                "624.5",
                "23600"
            ],
            [
                "624",
                "31300"
            ],
            [
                "623.5",
                "37500"
            ],
            [
                "623",
                "47200"
            ],
            [
                "622.5",
                "17000"
            ],
            [
                "622",
                "12700"
            ],
            [
                "621.5",
                "5600"
            ]
        ],
        "asks": [
            [
                "626.5",
                "36100"
            ],
            [
                "627",
                "50700"
            ],
            [
                "627.5",
                "49100"
            ],
            [
                "628",
                "54000"
            ],
            [
                "628.5",
                "37500"
            ],
            [
                "629",
                "37100"
            ],
            [
                "629.5",
                "43600"
            ],
            [
                "630",
                "78900"
            ],
            [
                "630.5",
                "53500"
            ],
            [
                "631",
                "37700"
            ]
        ]
    }
}

Notes

  • bids sorted by price descending
  • asks sorted by price ascending
  • timestamp in milliseconds (UTC)

Authorizations

X-API-Key
string
header
required

Query Parameters

symbol
string
required

Trading symbol

Example:

"BTCUSDT"

limit
integer
default:10

Depth levels (default 10, max 50)

Required range: 1 <= x <= 50
Example:

20

Response

200 - application/json

Successful response

code
integer
Example:

0

message
string
Example:

"success"

data
object