# Morning Session Stock Prices (OHLC) (/equities/bars/daily/am)

`GET`    /v2/equities/bars/daily/am

## Overview

You can obtain the morning session's high, low, opening, and closing prices for individual stocks as quick updates at noon.

### Attention

> **Info**
>
> - Null is recorded for the open, high, low, close, volume and trading value for stocks for which there is no trading volume in the morning session.
> - Stocks that are not listed on the TSE (including issue listed only on the other exchanges) are not included in the data.
> - Data for the day can be obtained until around 6:00 the next day.
>   For historical data, please use [Stock Prices (OHLC)](/en/spec/eq-bars-daily).

## Get stock prices in the morning session

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

In your request message, "code" can be specified.

### Parameter and Response

In your request message, "code" can be specified.\
Parameter in the request and results are as below.

- code: ✓ → A specified issue price in the morning session

- code: – → All listed issue prices in the morning session

### Requests

### Headers

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

### Query Parameters

| Parameter       | Type   | Required | Description                                                                                                                                                                                       |
| --------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| code            | string | Optional | 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. |
| 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/equities/bars/daily/am

**cURL**

```bash
curl -G https://api.jquants.com/v2/equities/bars/daily/am \
-H "x-api-key: {{apiKey}}" \
-d code="{{code}}"
```

**JavaScript**

```javascript
import axios from 'axios'

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

await client.get('/v2/equities/bars/daily/am', {
params: {
  code: '{{code}}',
},
})
```

**Python**

```python
import requests

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

### Responses

### Data Item

| Parameter | Type   | Required | Description                           |
| --------- | ------ | -------- | ------------------------------------- |
| Date      | string | Required | Date (YYYY-MM-DD)                     |
| Code      | string | Required | Issue code                            |
| MO        | number | Required | Open price of the morning session     |
| MH        | number | Required | High price of the morning session     |
| ML        | number | Required | Low price of the morning session      |
| MC        | number | Required | Close price of the morning session    |
| MVo       | number | Required | Trading volume of the morning session |
| MVa       | number | Required | Trading value of the morning session  |

### Response Sample

```bash {{ title: "200:OK" }}
{
    "data": [
        {
            "Date": "2023-03-20",
            "Code": "39400",
            "MO": 232.0,
            "MH": 244.0,
            "ML": 232.0,
            "MC": 240.0,
            "MVo": 52600.0,
            "MVa": 12518800.0
        }
    ],
    "pagination_key": "value1.value2."
}
```
