> For the complete documentation index, see [llms.txt](https://abcc-docs.gitbook.io/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://abcc-docs.gitbook.io/api/market-data/kline-data.md).

# Kline Data

## Get Kline Data

<mark style="color:blue;">`GET`</mark> `https://api.abcc.com/api/v1/exchange/klines/:market_code`

#### Path Parameters

| Name         | Type   | Description              |
| ------------ | ------ | ------------------------ |
| market\_code | string | 1-100000 (Default is 30) |

#### Query Parameters

| Name        | Type   | Description                                                |
| ----------- | ------ | ---------------------------------------------------------- |
| start\_time | string |                                                            |
| end\_time   | string |                                                            |
| limit       | string | Default 30; max 10000.                                     |
| period      | string | \[1, 5, 15, 30, 60, 120, 240, 360, 720, 1440, 4320, 10080] |

{% tabs %}
{% tab title="200 Data successfully retrieved." %}

```
{
	"btcusdt": [
		[1633397400, 49082.29, 49219.54, 49027.46, 49173.81, 1.4923],
		[1633397700, 49262.56, 49301.51, 49192.09, 49213.78, 1.7156],
		[1633398000, 49205.4, 49272.07, 49162.03, 49241.29, 1.2334],
		[1633398300, 49229.04, 49334.88, 49210.56, 49330.77, 1.044],
		[1633398600, 49299.71, 49476.23, 49230.43, 49232.04, 13.0938],
		[1633398900, 49241.92, 49258.13, 49163.89, 49210.42, 4.4876],
		[1633399200, 49201.97, 49325.14, 49173.35, 49281.99, 1.5833],
		[1633399500, 49303.66, 49370.87, 49264.31, 49321.51, 1.1822],
		[1633399800, 49349.08, 49408.04, 49326.55, 49356.27, 1.316],
		[1633400100, 49364.39, 49364.39, 49274.53, 49283.06, 1.0799]
	]
}
```

{% endtab %}
{% endtabs %}

**OUTPUT EXPLANATION**

| Script           | Type    | Explain                            |
| ---------------- | ------- | ---------------------------------- |
| market\_code     | Array   | Data corresponding to market\_code |
| market\_code\[0] | Integer | Starting time                      |
| market\_code\[1] | Decimal | Open price                         |
| market\_code\[2] | Decimal | Highest price                      |
| market\_code\[3] | Decimal | Lowest price                       |
| market\_code\[4] | Decimal | Closing price                      |
| market\_code\[5] | Decimal | Trading volume                     |
