{
  "path": "/options/order_book",
  "operation_id": "listOptionsOrderBook",
  "auth_required": false,
  "parameters": [
    {
      "name": "contract",
      "in": "query",
      "description": "Options contract name",
      "required": true,
      "schema": {
        "type": "string"
      },
      "example": "BTC_USDT-20210916-5000-C"
    },
    {
      "name": "interval",
      "in": "query",
      "required": false,
      "description": "Price precision for merged depth. 0 means no merging. If not specified, defaults to 0",
      "schema": {
        "type": "string",
        "default": "0",
        "enum": [
          "0",
          "0.1",
          "0.01"
        ]
      },
      "example": "0"
    },
    {
      "name": "limit",
      "in": "query",
      "description": "Number of depth levels",
      "required": false,
      "schema": {
        "type": "integer",
        "default": 10,
        "minimum": 1,
        "maximum": 50
      },
      "example": 10
    },
    {
      "name": "with_id",
      "in": "query",
      "required": false,
      "description": "Whether to return depth update ID. This ID increments by 1 each time the depth changes",
      "schema": {
        "type": "boolean",
        "default": false
      },
      "example": false
    }
  ],
  "response_fields": {
    "200": {
      "description": "Depth query successful",
      "fields": [
        {
          "path": "$",
          "type": "object",
          "description": "",
          "constraints": ""
        },
        {
          "path": "$.id",
          "type": "integer",
          "description": "Order Book ID. Increases by 1 on every order book change. Set `with_id=true` to include this field in response",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$.current",
          "type": "number",
          "description": "Response data generation timestamp",
          "constraints": "格式：\"double\""
        },
        {
          "path": "$.update",
          "type": "number",
          "description": "Order book changed timestamp",
          "constraints": "格式：\"double\""
        },
        {
          "path": "$.asks",
          "type": "array<object>",
          "description": "Ask Depth",
          "constraints": ""
        },
        {
          "path": "$.asks[]",
          "type": "object",
          "description": "",
          "constraints": ""
        },
        {
          "path": "$.asks[].p",
          "type": "string",
          "description": "Price (quote currency)",
          "constraints": ""
        },
        {
          "path": "$.asks[].s",
          "type": "integer",
          "description": "Size",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$.bids",
          "type": "array<object>",
          "description": "Bid Depth",
          "constraints": ""
        },
        {
          "path": "$.bids[]",
          "type": "object",
          "description": "",
          "constraints": ""
        },
        {
          "path": "$.bids[].p",
          "type": "string",
          "description": "Price (quote currency)",
          "constraints": ""
        },
        {
          "path": "$.bids[].s",
          "type": "integer",
          "description": "Size",
          "constraints": "格式：\"int64\""
        }
      ]
    }
  },
  "source_version": "v4.106.132",
  "source_url": "https://github.com/gate/gateapi-python/blob/cd2cac4d339ec0734480787d23c020f467fd7b80/openapi.yaml",
  "local_tool_limits": [
    "仅检查必填、枚举和简单数值范围",
    "复杂类型序列化、条件必填、时间窗口等以官方规则为准",
    "不会发起 API 请求"
  ]
}
