Exchange
Exchange Order Book Depth
Returns order book bid/ask levels with computed stats.
Included fields: spread, spread percentage, mid-price, and total bid/ask depth.
Use limit to control the number of price levels (1–100, default 20). Set type=swap to query perpetual contract order books instead of spot.
get/gateway/v1/exchange/depth
Request
- Base URLhttps://api.asksurf.ai
- AuthHTTP bearer
Query parameters
pairstring required
Trading pair (e.g. BTC/USDT)
Example:BTC/USDT
type'spot' | 'swap' | 'perpetual' | 'perp'
Market type: spot for spot trading, swap/perpetual/perp for perpetual contracts
Example:spot
limitinteger
Number of price levels (1-100)
Example:20
exchange'binance' | 'okx' | 'bybit' | 'bitget' | 'coinbase' | 'kraken' | 'gate' | 'mexc' | 'upbit' | 'bitstamp' | 'deribit' | 'bitmex' | 'bithumb' | 'hyperliquid'
Exchange identifier. Note: hyperliquid uses USDC-settled perps (e.g. BTC/USDC:USDC); pass USDC-quoted pairs when querying hyperliquid.
Example:binance
Response
OK
Example response
{
"$schema": "https://example.com/schemas/SimpleListResponseExchangeDepthItem.json"
}Changes
No recorded changes to this operation across all 12 revisions of this API.