> For the complete documentation index, see [llms.txt](https://docs.infoway.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.infoway.io/en-docs/rest-api/get-basic-info/get-market-trading-hours.md).

# GET Market Trading Hours

### Overview

The **Market Trading Hours API** provides the basic trading hours for different markets, including the start and end times for normal trading sessions, pre-market, and post-market sessions.

### Endpoint

* Base Path: `/common/basic/markets`
* Full Path: `https://data.infoway.io/common/basic/markets`

### Request Frequency

This API shares the same rate limits as other endpoints. The number of allowed requests per second depends on your subscription plan. Please refer to the [**Rate Limit**](/en-docs/getting-started/api-limitation/rest-api-limitation.md) for details.

### Error Codes

See the [HTTP Error Codes](/en-docs/getting-started/error-codes/rest-api-error-codes.md) section for reference.

### Authentication

Each request must include your **API Key** in the header.

| **Header** | **Type** | **Required** | **Description**                                 |
| ---------- | -------- | ------------ | ----------------------------------------------- |
| `apiKey`   | String   | Yes          | Your API Key associated with your current plan. |

### Example Response

```json
{
  "ret": 200,
  "msg": "success",
  "traceId": "7b32f9db-852b-4234-aafb-5766f9ba385e",
  "data": [
    {
      "market": "CN",
      "remark": "A 股市场",
      "trade_schedules": [
        {
          "begin_time": "09:30:00",
          "end_time": "11:30:00",
          "type": "NormalTrade"
        },
        {
          "begin_time": "13:00:00",
          "end_time": "14:57:00",
          "type": "NormalTrade"
        }
      ]
    },
    {
      "market": "HK",
      "remark": "港股市场",
      "trade_schedules": [
        {
          "begin_time": "09:30:00",
          "end_time": "12:00:00",
          "type": "NormalTrade"
        },
        {
          "begin_time": "13:00:00",
          "end_time": "16:00:00",
          "type": "NormalTrade"
        }
      ]
    },
    {
      "market": "US",
      "remark": "美股市场",
      "trade_schedules": [
        {
          "begin_time": "04:00:00",
          "end_time": "09:30:00",
          "type": "PreTrade"
        },
        {
          "begin_time": "09:30:00",
          "end_time": "16:00:00",
          "type": "NormalTrade"
        },
        {
          "begin_time": "16:00:00",
          "end_time": "20:00:00",
          "type": "PostTrade"
        }
      ]
    }
  ]
}
```

### Response Fields

| **Field**         | **Type** | **Required** | **Description**                                                                  | **Example / Values** |
| ----------------- | -------- | ------------ | -------------------------------------------------------------------------------- | -------------------- |
| `market`          | String   | Yes          | The market code.                                                                 | `US`, `HK`, `CN`     |
| `remark`          | String   | Yes          | Description of the market.                                                       | `US Stock Market`    |
| `trade_schedules` | Array    | Yes          | List of trading sessions, including pre-market, normal trading, and post-market. | See below            |

### Trade Session Fields

Each entry in the `trade_schedules` array will contain the following fields:

| **Field**    | **Type** | **Required** | **Description**                                                  | **Example** |
| ------------ | -------- | ------------ | ---------------------------------------------------------------- | ----------- |
| `begin_time` | String   | Yes          | Start time of the trading session in `HH:mm:ss` format.          | `04:00:00`  |
| `end_time`   | String   | Yes          | End time of the trading session in `HH:mm:ss` format.            | `09:30:00`  |
| `type`       | String   | Yes          | Type of trading session: `PreTrade`, `NormalTrade`, `PostTrade`. | `PreTrade`  |

### Notes

* The `trade_schedules` array lists the various trading sessions for the market. These sessions can include pre-market, regular market hours, and post-market.
* Each market may have different session times based on its location and trading rules.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.infoway.io/en-docs/rest-api/get-basic-info/get-market-trading-hours.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
