# TOPIX Prices (OHLC) (/indices/bars/daily/topix)

`GET`    /v2/indices/bars/daily/topix

## Overview

Available index is TOPIX (Tokyo Stock Price Index).

## Get Daily TOPIX Information

`GET` `https://api.jquants.com/v2/indices/bars/daily/topix`

"from/to" can be specified (Optional). If "from/to" is not specified, the response contains all historical data.

### Requests

### Headers

| Parameter | Type   | Required | Description |
| --------- | ------ | -------- | ----------- |
| x-api-key | string | Required | API Key     |

### Query Parameters

| Parameter       | Type   | Required | Description                                                                                                                                         |
| --------------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| from            | string | Optional | Starting point of data period (e.g. 20210901 or 2021-09-01)                                                                                         |
| to              | string | Optional | End point of data period (e.g. 20210907 or 2021-09-07)                                                                                              |
| pagination\_key | string | Optional | The primary key of the first item that this operation will evaluate. Use the value that was returned for pagination\_key in the previous operation. |

### Sample Code

/v2/indices/bars/daily/topix

**cURL**

```bash
curl -G https://api.jquants.com/v2/indices/bars/daily/topix \
-H "x-api-key: {{apiKey}}" \
-d from="{{from}}" \
-d to="{{to}}"
```

**JavaScript**

```javascript
import axios from 'axios'

const client = axios.create({
baseURL: "https://api.jquants.com",
headers: { "x-api-key": "{{apiKey}}" },
})

await client.get("/v2/indices/bars/daily/topix", {
params: {
  from: '{{from}}',
  to: '{{to}}',
},
})
```

**Python**

```python
import requests

headers = {"x-api-key": "{{apiKey}}"}
resp = requests.get(
  "https://api.jquants.com/v2/indices/bars/daily/topix",
  params={
      "from": "{{from}}",
      "to": "{{to}}",
  },
  headers=headers,
)
print(resp.json())
```

### Responses

### Data Item

| Parameter | Type   | Required | Description       |
| --------- | ------ | -------- | ----------------- |
| Date      | string | Required | Date (YYYY-MM-DD) |
| O         | number | Required | Open Price        |
| H         | number | Required | High Price        |
| L         | number | Required | Low Price         |
| C         | number | Required | Close Price       |

### Response Sample

```bash {{ title: "200:OK" }}
{
    "data": [
        {
            "Date": "2022-06-28",
            "O": 1885.52,
            "H": 1907.38,
            "L": 1885.32,
            "C": 1907.38
        }
    ],
    "pagination_key": "value1.value2."
}
```
