Skip to main content
GET
/
api
/
v2
/
markets
/
orderbook
/
{market}
Get orderbook depth
curl --request GET \
  --url https://api.quantdesk.app/api/v2/markets/orderbook/{market}
{
  "success": true,
  "source": "cache",
  "data": {
    "bids": [
      {
        "price": 168.4,
        "size": 125.5
      }
    ],
    "asks": [
      {
        "price": 168.4,
        "size": 125.5
      }
    ]
  }
}

Path Parameters

market
string
required

Market symbol, e.g. SOL-PERP.

Example:

"SOL-PERP"

Response

200 - application/json

Orderbook depth

success
boolean
Example:

true

source
enum<string>

Whether depth came from the hot cache or a fallback snapshot.

Available options:
cache,
snapshot
Example:

"cache"

data
object