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

# 【Public】Kline Channel

Get K-line data of a symbol

### Pushing Rules

1. No user login required
2. Pushed every second if a new trade occurs in that second. Otherwise, pushed only when a new trade occurs within the same candle
3. A final push is sent when the candle closes, even if no trades occurred during the candle

### Request

> Request

```json theme={null}
{
  "id": "1",
  "cmd": "SUBSCRIBE",
  "params": ["kline@PERP_BTC_USDT@1m"]
}
```

Topic Format:

`kline@<symbol>@<interval>`

* symbol: Trading pair, such as `PERP_BTC_USDT`
* interval: K-line interval, support `1m` `3m` `5m` `15m` `30m` `1h` `2h` `4h` `6h` `12h` `1d` `3d` `1w` `1M`

### Response

> Response

```json theme={null}
{
  "topic": "kline@PERP_BTC_USDT@1m",
  "ts": 1618822432146,
  "data": {
    "s": "PERP_BTC_USDT",
    "t": "1m",
    "o": "56948.97",
    "c": "56891.76",
    "h": "56948.97",
    "l": "56889.06",
    "v": "44.00947568",
    "a": "2504584.9",
    "st": 1618822380000,
    "et": 1618822440000,
    "ts": 1614152260000,
    "tts": 1614152250000
  }
}
```

Return data description:

| Field | Type | Description |
| :- | :- | :- |
| s | String | Symbol |
| t | String | K-line interval |
| o | String | Open price |
| c | String | Close price |
| h | String | Highest price |
| l | String | Lowest price |
| v | String | Volume (in base token) |
| a | String | Amount (in USDT) |
| st | Long | Start time (in millisecond) |
| et | Long | End time (in millisecond) |
| ts | Long | Generation time (in millisecond) |
| tts | Long | Last trade time (in millisecond) |


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