> ## Documentation Index
> Fetch the complete documentation index at: https://alltick.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 取消报价订阅

> 本页面介绍AllTick股票WebSocket接口的“取消行情订阅”用法，包含退订请求格式、参数说明和示例，帮助开发者在不再需要某些股票Tick或盘口推送时，及时取消订阅以节省带宽和配额，优化行情系统资源利用。

## 接口说明

取消报价订阅

## 请求-协议号：22006

#### data定义

| 字段           | 名称   | 类型     | 必填项 | 说明                                        |
| ------------ | ---- | ------ | --- | ----------------------------------------- |
| cancel\_type | 取消类型 | uint32 | 是   | 0：取消所有报价订阅，1：取消盘口报价订阅，2：取消成交报价订阅，3：取消汇率订阅 |

### 数据结构(json)

```json theme={null}
{
    "cmd_id":22006,
    "seq_id":123,
    "trace":"3baaa938-f92c-4a74-a228-fd49d5e2f8bc-1678419657806",
    "data":{
        "cancel_type": 1
    }
}
```

## 应答-协议号：22007

### 数据结构(json)

```json theme={null}
{
    "ret":200,
    "msg":"ok",
    "cmd_id":22007,
    "seq_id":123,
    "trace":"3baaa938-f92c-4a74-a228-fd49d5e2f8bc-1678419657806",
    "data":{
    }    
}
```

#### AllTick网站

<Note>
  官方网站：<a href="https://alltick.co/">[https://alltick.co/](https://alltick.co/)</a>
</Note>

<script src="/seo-keywords.js" />
