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

# 获取 K 线

`获取交易对最新的 K 线数据。如需按时间范围查询，请使用 [获取历史 K 线](/cn/restful_public_v3/kline-history)。`

#### 请求URL

`GET https://api.woox.io/v3/public/kline`

#### 请求限制

每 1 秒最多 10 次请求

#### 请求参数

> 请求

```shell theme={null}
curl "https://api.woox.io/v3/public/kline?symbol=PERP_BTC_USDT&type=1m&limit=1"
```

| 参数 | 类型 | 是否必填 | 描述 |
| :- | :- | :- | :- |
| symbol | String | 是 | 交易对，如 `PERP_BTC_USDT` |
| type | String | 是 | K 线周期：`1m` `3m` `5m` `15m` `30m` `1h` `2h` `4h` `6h` `12h` `1d` `1w` `1mon` `1y` |
| limit | Integer | 否 | K 线数量，默认 `100`，最大 `1000` |

#### 响应详情

> 响应

```json theme={null}
{
  "success": true,
  "timestamp": 1794963202000,
  "data": {
    "rows": [
      {
        "open": "64713",
        "close": "64726",
        "low": "64713",
        "high": "64726",
        "volume": "1.26852",
        "amount": "82097",
        "symbol": "PERP_BTC_USDT",
        "type": "1m",
        "startTimestamp": 1794963180000,
        "endTimestamp": 1794963240000
      }
    ]
  }
}
```

| 字段 | 类型 | 描述 |
| :- | :- | :- |
| open | String | 开盘价 |
| close | String | 收盘价 |
| low | String | 最低价 |
| high | String | 最高价 |
| volume | String | 成交量 |
| amount | String | 成交额 |
| symbol | String | 交易对 |
| type | String | K 线周期 |
| startTimestamp | Long | 起始时间（毫秒） |
| endTimestamp | Long | 结束时间（毫秒） |


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