Stock Prices (OHLC) (/equities/bars/daily)

GET /v2/equities/bars/daily

Overview

You can get information about stock price.
Stock price consists before and after adjustment of stock splits and reverse stock splits (Rounded to first decimal places).

Attention

  • Open, High, Low, Close, the volume of trade and the amount of purchase for the issue on the day when there is no trade volume (no sale) are recorded as Null.
  • Stocks that are not listed on the TSE (including issue listed only on the other exchanges) are not included in the data.
  • The data for Oct. 1st, 2020 are the OHLC, trading volume, and trading value in Null because trading was halted all day due to the failure of the equity trading system, arrowhead.
  • Daily prices can be obtained for all plans, but morning/afternoon session prices are available only for Premium plan.
  • Stock price adjustments are supported only for stock splits and reverse stock splits. Please note that some corporate actions are not supported.

Get daily stock prices

GET https://api.jquants.com/v2/equities/bars/daily

In your request message, 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.

codedatefrom /toResults
All historical stock prices of a specific issue.
Stock prices of a specific issue for the specific date
Stock prices of a specific issue for the specified period
All listed issue prices for the specific date.

Requests

Headers

x-api-keystringrequired

API Key

Query Parameters

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

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 for pagination_key in the previous operation.

Sample Code

Request

GET
/v2/equities/bars/daily
curl -G https://api.jquants.com/v2/equities/bars/daily \
-H "x-api-key: {loading}" \
-d code="86970" \
-d date="20230324"

Responses

Data Item

Datestring
Date (YYYY-MM-DD)
Codestring
Issue code
Onumber
Open Price (before adjustment)
Hnumber
High price (before adjustment)
Lnumber
Low price (before adjustment)
Cnumber
Close price (before adjustment)
ULstring
Flag of hitting the upper price limit of the day (0: Other than hitting the upper price limit, 1: Hitting the upper price limit)
LLstring
Flag of hitting the lower price limit of the day (0: Other than hitting the lower price limit, 1: Hitting the lower price limit)
Vonumber
Trading volume (before adjustment)
Vanumber
Trading value
AdjFactornumber
Adjustment factor (In the case of a two-for-one stock split, "0.5" will be set in the record on the ex-rights date.)
AdjOnumber
Adjusted open price (*1)
AdjHnumber
Adjusted high price (*1)
AdjLnumber
Adjusted low price (*1)
AdjCnumber
Adjusted close price (*1)
AdjVonumber
Adjusted volume (*1)
MOnumber
Open price of the morning session (before adjustment) (*2)
MHnumber
High price of the morning session (before adjustment) (*2)
MLnumber
Low price of the morning session (before adjustment) (*2)
MCnumber
Close price of the morning session (before adjustment) (*2)
MULstring
Flag of hitting the upper price limit of the day in morning session (0: Other than hitting the upper price limit, 1: Hitting the upper price limit) (*2)
MLLstring
Flag of hitting the lower price limit of the day in morning session (0: Other than hitting the lower price limit, 1: Hitting the lower price limit) (*2)
MVonumber
Trading volume of the morning session (before adjustment) (*2)
MVanumber
Trading value of the morning session (*2)
MAdjOnumber
Adjusted open price of the morning session (*1, *2)
MAdjHnumber
Adjusted high price of the morning session (*1, *2)
MAdjLnumber
Adjusted low price of the morning session (*1, *2)
MAdjCnumber
Adjusted close price of the morning session (*1, *2)
MAdjVonumber
Adjusted trading volume of the morning session (*1, *2)
AOnumber
Open price of the afternoon session (before adjustment) (*2)
AHnumber
High price of the afternoon session (before adjustment) (*2)
ALnumber
Low price of the afternoon session (before adjustment) (*2)
ACnumber
Close price of the afternoon session (before adjustment) (*2)
AULstring
Flag of hitting the upper price limit of the day in afternoon session (0: Other than hitting the upper price limit, 1: Hitting the upper price limit) (*2)
ALLstring
Flag of hitting the lower price limit of the day in afternoon session (0: Other than hitting the lower price limit, 1: Hitting the lower price limit) (*2)
AVonumber
Trading volume of the afternoon session (before adjustment) (*2)
AVanumber
Trading value of the afternoon session (*2)
AAdjOnumber
Adjusted open price of the afternoon session (*1, *2)
AAdjHnumber
Adjusted high price of the afternoon session (*1, *2)
AAdjLnumber
Adjusted low price of the afternoon session (*1, *2)
AAdjCnumber
Adjusted close price of the afternoon session (*1, *2)
AAdjVonumber
Adjusted trading volume of the afternoon session (*1, *2)

*1 The item has been adjusted to take into account past divisions, etc.
*2 The item is available only for Premium plan users.

Response Sample

{
    "data": [
        {
            "Date": "2023-03-24",
            "Code": "86970",
            "O": 2047.0,
            "H": 2069.0,
            "L": 2035.0,
            "C": 2045.0,
            "UL": "0",
            "LL": "0",
            "Vo": 2202500.0,
            "Va": 4507051850.0,
            "AdjFactor": 1.0,
            "AdjO": 2047.0,
            "AdjH": 2069.0,
            "AdjL": 2035.0,
            "AdjC": 2045.0,
            "AdjVo": 2202500.0,
            "MO": 2047.0,
            "MH": 2069.0,
            "ML": 2040.0,
            "MC": 2045.5,
            "MUL": "0",
            "MLL": "0",
            "MVo": 1121200.0,
            "MVa": 2297525850.0,
            "MAdjO": 2047.0,
            "MAdjH": 2069.0,
            "MAdjL": 2040.0,
            "MAdjC": 2045.5,
            "MAdjVo": 1121200.0,
            "AO": 2047.0,
            "AH": 2047.0,
            "AL": 2035.0,
            "AC": 2045.0,
            "AUL": "0",
            "ALL": "0",
            "AVo": 1081300.0,
            "AVa": 2209526000.0,
            "AAdjO": 2047.0,
            "AAdjH": 2047.0,
            "AAdjL": 2035.0,
            "AAdjC": 2045.0,
            "AAdjVo": 1081300.0
        }
    ],
    "pagination_key": "value1.value2."
}

Was this page helpful?