{
  "id": "surf.exchange.depth",
  "object": "tool",
  "name": "Exchange Order Book Depth",
  "summary": "Returns order book bid/ask levels with computed stats.",
  "description": "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.\n\nRaw surf#exchange/depth endpoint: input is { body, queryParams, pathParams } as the provider documents them (https://docs.asksurf.ai/data-api/exchange/depth).",
  "category": "lookup",
  "hosted_by": "Surf",
  "runtime": "partner",
  "side_effects": false,
  "status": "live",
  "credits": 0,
  "price": null,
  "providers": [
    {
      "id": "surf",
      "name": "Surf",
      "price": null,
      "own_key_only": true
    }
  ],
  "mcp_name": "surf_exchange_depth",
  "input_schema": {
    "type": "object",
    "properties": {
      "queryParams": {
        "type": "object",
        "properties": {
          "pair": {
            "type": "string",
            "minLength": 1,
            "description": "Trading pair (e.g. BTC/USDT). Example: BTC/USDT."
          },
          "type": {
            "default": "spot",
            "type": "string",
            "enum": [
              "spot",
              "swap",
              "perpetual",
              "perp"
            ],
            "description": "Market type: spot for spot trading, swap/perpetual/perp for perpetual contracts. Example: spot. Defaults to \"spot\"."
          },
          "limit": {
            "default": 20,
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Number of price levels (1-100). Example: 20. Defaults to 20."
          },
          "exchange": {
            "default": "binance",
            "type": "string",
            "enum": [
              "binance",
              "okx",
              "bybit",
              "bitget",
              "coinbase",
              "kraken",
              "gate",
              "mexc",
              "upbit",
              "bitstamp",
              "deribit",
              "bitmex",
              "bithumb",
              "hyperliquid"
            ],
            "description": "Exchange identifier. Note: hyperliquid uses USDC-settled perps (e.g. BTC/USDC:USDC); pass USDC-quoted pairs when querying hyperliquid. Example: binance. Defaults to \"binance\"."
          }
        },
        "required": [
          "pair"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "queryParams"
    ],
    "additionalProperties": false
  },
  "kind": "endpoint"
}