Skip to main content
GET
/
gateway
/
v1
/
exchange
/
depth
Exchange Order Book Depth
curl --request GET \
  --url https://api.ask.surf/gateway/v1/exchange/depth
{
  "data": [
    {
      "ask_depth": 123,
      "asks": [
        {
          "amount": 123,
          "price": 123
        }
      ],
      "bid_depth": 123,
      "bids": [
        {
          "amount": 123,
          "price": 123
        }
      ],
      "exchange": "<string>",
      "mid_price": 123,
      "pair": "<string>",
      "spread": 123,
      "spread_pct": 123
    }
  ],
  "meta": {
    "cached": true,
    "credits_used": 123
  },
  "$schema": "<string>"
}

Query Parameters

pair
string
required

Trading pair (e.g. BTC/USDT)

Example:

"BTC/USDT"

type
enum<string>
default:spot

Market type: spot for spot trading, swap for perpetual contracts

Available options:
spot,
swap
Example:

"spot"

limit
integer<int64>
default:20

Number of price levels (1-100)

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

20

exchange
enum<string>
default:binance

Exchange identifier

Available options:
binance,
okx,
bybit,
bitget,
coinbase,
kraken,
gate,
mexc,
upbit,
bitstamp,
deribit,
bitmex,
bithumb
Example:

"binance"

Response

OK

data
object[] | null
required
meta
object
required
$schema
string<uri>

A URL to the JSON Schema for this object.

Example:

"https://example.com/schemas/SimpleListResponseExchangeDepthItem.json"