Indices (OHLC) (/indices/bars/daily)
GET /v2/indices/bars/daily
Overview
Available various indices.
Please refer to this page for the currently distributed indices.
Attention
- Although the Tokyo Stock Exchange Mothers market was reorganized on April 4, 2022, based on certain rules, the replacement of the component stocks of the Tokyo Stock Exchange Mothers Index was carried out, and on November 6, 2023, the index name was changed to "Tokyo Stock Exchange Growth Market 250 Index". For details, please refer to here.
- The OHLC data for Oct. 1st, 2020 includes the closing price from the previous trading day (Sep. 30th, 2020) because trading was halted all day due to the failure of the equity trading system, arrowhead.
Get daily various indices prices (OHLC)
GET https://api.jquants.com/v2/indices/bars/daily
Either "code" or "date" must be specified.
Parameter and Response
In your request message, either "code" or "date" must be specified.
Combination of parameter in the request and results are as below.
| code | date | from /to | Results |
|---|---|---|---|
| All historical indices prices of a specific index code. | |||
| Indices prices of a specific index code on the specific date. | |||
| Indices prices of a specific index code for the specified period. | |||
| All listed indices prices for the specific date. |
Requests
Headers
- x-api-keystringrequired
API Key
Query Parameters
Either code or date must be specified.
- codestringoptional
Index code (e.g. 0000 or 0028)
Please refer to the index codes page for the currently distributed indices.- datestringoptional
Date of data when "from" and "to" are not specified (e.g. 20210907 or 2021-09-07)
- fromstringoptional
Starting point of data period (e.g. 20210901 or 2021-09-01)
- tostringoptional
End point of data period (e.g. 20210907 or 2021-09-07)
- pagination_keystringoptional
The primary key of the first item that this operation will evaluate.
Use the value that was returned forpagination_keyin the previous operation.
Sample Code
Request
curl -G https://api.jquants.com/v2/indices/bars/daily \
-H "x-api-key: {loading}" \
-d code="0028" \
-d date="20231201"Responses
Data Item
- Datestring
- Date (YYYY-MM-DD)
- Codestring
Index Code
Please refer to this page for the currently distributed indices.- Onumber
- Open Price
- Hnumber
- High Price
- Lnumber
- Low Price
- Cnumber
- Close Price
Response Sample
{
"data": [
{
"Date": "2023-12-01",
"Code": "0028",
"O": 1199.18,
"H": 1202.58,
"L": 1195.01,
"C": 1200.17
}
],
"pagination_key": "value1.value2."
}