> For the complete documentation index, see [llms.txt](https://rwaperp-1.gitbook.io/rwaperp-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rwaperp-1.gitbook.io/rwaperp-docs/rwa-perp-b2b-api/rest-api-reference/candles-and-tradingview/get-v1-tv-kline-history.md).

# get v1 tv kline history

`GET /v1/tv/kline_history`

**Authentication:** RWA

**Rate limit:** 5 request per 10 second per IP address

## Description

Get the historical klines of the specified symbol.

## Parameters

| Name         | Location | Type   | Required | Description                                                                                                                                    | Example         |
| ------------ | -------- | ------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | --------------- |
| `symbol`     | query    | string | Yes      | Symbol name                                                                                                                                    | `PERP_BTC_USDC` |
| `resolution` | query    | string | Yes      | `1m/5m/15m/30m/1h/4h/12h/1d/1w/1mon`                                                                                                           | `1d`            |
| `from`       | query    | string | No       | If the range from from to to contains 1200 klines, only 1000 klines will be returned, starting from to and moving backward (due to the limit). | `1761926400`    |
| `to`         | query    | string | No       | If the range from from to to contains only 500 klines, then all 500 will be returned, starting from to and moving backward.                    | `1762790400`    |
| `limit`      | query    | number | No       | Numbers of klines you want to query. Maximum of 1000 klines allowed.                                                                           | `1000`          |

## Responses

### HTTP 200

OK

| Field | Type                    | Required | Description                                                                                     |
| ----- | ----------------------- | -------- | ----------------------------------------------------------------------------------------------- |
| `s`   | string                  | Yes      | Example: `ok`                                                                                   |
| `o`   | array                   | Yes      | Example: `[2.105, 2.155, 2.105, 2.0285, 1.8, 2.55, 2.55]`                                       |
| `c`   | array                   | Yes      | Example: `[2.1, 2.155, 2.057, 1.86, 1.8, 2.55, 2.48]`                                           |
| `h`   | array                   | Yes      | Example: `[2.155, 2.155, 2.105, 2.0285, 1.8, 2.55, 3.175]`                                      |
| `l`   | array                   | Yes      | Example: `[2.1, 2.155, 2.02, 1.85, 1.8, 2.55, 2.48]`                                            |
| `v`   | array                   | Yes      | Example: `[22.0, 0.0, 2.0, 3000.0, 26.0, 0.0, 2.0]`                                             |
| `a`   | array                   | Yes      | Example: `[46.2, 0.0, 4.114, 5635.0, 46.8, 0.0, 6.1]`                                           |
| `t`   | array\<integer (int64)> | Yes      | Example: `[1761955200, 1762041600, 1762128000, 1762214400, 1762300800, 1762646400, 1762732800]` |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://rwaperp-1.gitbook.io/rwaperp-docs/rwa-perp-b2b-api/rest-api-reference/candles-and-tradingview/get-v1-tv-kline-history.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
