# Unsubscribe

`WS` `request · cmd 7`

> **Quote Permission Required · Free**
> Included with OpenAPI activation — no extra purchase needed.
> _OpenAPI quote perms are separate from App/Web perms_

This API is used to unsubscribe quote.

```protobuf
message UnsubscribeRequest {
  repeated string symbol = 1;
  repeated SubType sub_type = 2;
  bool unsub_all = 3;
}

message UnsubscribeResponse {
}
```

## Request Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `symbol` | string[] | Yes | Security code list, for example: [700.HK]. Max 500 symbols per request |
| `sub_type` | int32[] | Yes | Subscription type list, for example: [1,2], see SubType |
| `unsub_all` | bool | Yes | Is unsubscribe all; empty symbol unsubscribes all, otherwise all types of these symbols |

## Response JSON Example

```json
{}
```
