> ## 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 APIにおける「相場購読の取消」の使い方を説明します。退購読リクエスト形式、パラメータ説明、サンプルを掲載し、開発者が一部の株式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" />
