> ## 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.

# Cancel Quote Subscription

> This documentation explains how to use AllTick’s stock WebSocket cancel quote subscription interface, including unsubscribe message format, parameters, and examples, allowing developers to stop receiving tick or order book updates for specific symbols and optimize bandwidth and quota usage.

## Interface Description

Cancel quote subscription.

## Request - Protocol Number: 22006

#### Data Definition

| Field        | Name        | Type   | Required | Description                                                                                                                                          |
| ------------ | ----------- | ------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| cancel\_type | Cancel type | uint32 | Yes      | 0: cancel all quote subscriptions, 1: cancel order book quote subscription, 2: cancel trade quote subscription, 3: cancel exchange rate subscription |

### Data Structure (JSON)

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

## Response - Protocol Number: 22007

### Data Structure (JSON)

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

#### AllTick Website

<Note>
  Official website: <a href="https://alltick.co/">[https://alltick.co/](https://alltick.co/)</a>
</Note>

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