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

# K 線頻道

> 訂閱指定合約與週期的即時 K 線。

訂閱指定合約與週期的即時 K 線。

**頻道：** `futures.candlesticks`

**認證：** 不需要

## 訂閱

```json theme={null}
{
  "time": 1700000000,
  "channel": "futures.candlesticks",
  "event": "subscribe",
  "payload": ["1m", "BTC_USDT"]
}
```

服務端確認訂閱後，會透過同一 `channel` 持續推送 `event: "update"` 消息。

## 取消訂閱

將 `event` 改為 `unsubscribe`，並保持 `payload` 與訂閱時一致。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.