Minute Stock Prices (OHLC) (/equities/bars/minute)
GET /v2/equities/bars/minute
Overview
You can retrieve minute-by-minute stock price data.
This API provides 1-minute interval data including OHLC (Open, High, Low, Close), trading volume, and turnover value.
Attention
- Stocks that are not listed on the TSE (including issue listed only on the other exchanges) are not included in the data.
- Data is available for the past 2 years.
- Data is not recorded for time periods with no trading activity.
Retrieve Minute Stock Prices
GET https://api.jquants.com/v2/equities/bars/minute
To retrieve data, you must specify either a stock code (code) or date (date).
Parameter and Response
To retrieve data, you must specify either a stock code (code) or date (date).
Parameter in the request and results are as below:
| code | date | from /to | Results |
|---|---|---|---|
| Data for the specified issue for all periods | |||
| Data for the specified issue on the specified date | |||
| Data for the specified issue during the specified period | |||
| Data for all listed issues on the specified date |
Requests
Headers
- x-api-keystringrequired
API Key
Query Parameters
Either code or date must be specified.
- codestringoptional
Issue code (e.g. 27800 or 2780)
If a 4-character issue code is specified, only the data of common stock will be obtained for the issue on which both common and preferred stocks are listed.- datestringoptional
When from and to are not specified (e.g. 20210907 or 2021-09-07)
- fromstringoptional
From date (e.g. 20210901 or 2021-09-01)
- tostringoptional
To date (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/equities/bars/minute \
-H "x-api-key: {loading}" \
-d code="86970" \
-d date="20230324"Responses
Data Item
- Datestring
- Date (YYYY-MM-DD)
- Timestring
- Time (HH:mm)
- Codestring
- Issue code
- Onumber
- Open price
- Hnumber
- High price
- Lnumber
- Low price
- Cnumber
- Close price
- Vonumber
- Trading volume
- Vanumber
- Trading value
Response Sample
{
"data": [
{
"Date": "2023-03-24",
"Time": "09:00",
"Code": "86970",
"O": 2047.0,
"H": 2055.0,
"L": 2045.0,
"C": 2050.0,
"Vo": 12500.0,
"Va": 25625000.0
}
],
"pagination_key": "value1.value2."
}