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

# Get Kline History

`Get the historical klines of the trading instrument.`

#### Request URL

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

#### Request Limit

10 requests per 1 second per IP address

#### Request Parameter

> Request

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

| Field | Type | Required? | Description |
| :- | :- | :- | :- |
| symbol | String | Yes | Symbol name, such as `PERP_BTC_USDT` |
| type | String | Yes | Kline interval: `1m` `3m` `5m` `15m` `30m` `1h` `2h` `4h` `6h` `12h` `1d` `1w` `1mon` `1y` |
| before | Integer | No | The start timestamp cursor for fetching the previous page of results, excluding the kline associated with the cursor itself. Either `before` or `after` can be specified. If both are provided, `before` takes precedence |
| after | Integer | No | The start timestamp cursor for fetching the next page of results, excluding the kline associated with the cursor itself. Either `before` or `after` can be specified. If both are provided, `before` takes precedence |
| limit | Integer | No | Number of klines to query. Default `100`, maximum `1000` |

If neither `before` nor `after` is passed, the results start from the most recent kline.

#### Response Data

The response format is the same as [Get Kline](https://developer.wooxpro.com/english/restful_public_v3/kline.md).

> Response

```json theme={null}
{
  "success": true,
  "timestamp": 1794963202000,
  "data": {
    "rows": [
      {
        "symbol": "PERP_BTC_USDT",
        "open": "65309",
        "close": "64800",
        "high": "65691",
        "low": "63321",
        "volume": "11.20818",
        "amount": "722935",
        "type": "1d",
        "startTimestamp": 1794873600000,
        "endTimestamp": 1794960000000
      }
    ]
  }
}
```


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