# 股票历史列表

- 接口：stock_history_list
- 路径：/api/v1/market/data/stock-history-list
- 方法：GET
- 描述：A 股股票历史日截面：按交易日返回当日全部股票的截面记录，字段展开返回行情 OHLC、多周期涨跌幅、股本、估值、市值、板块归属等共 46 个字段，固定按代码升序分页。截面包含已退市股票（`status=Delisted`，行情字段为 null）。统一分页响应，`data.records` 为股票截面记录。
- 数据范围：2017 年至今，按交易日提供历史日截面数据
- 单次限量：`page` 默认 1；`page_size` 默认 50、最大 200
- 提示：
  - `trade_date` 必填（YYYYMMDD 整数），无效日期返回 400。
  - `code` 选填，支持 `600000.SH`、`600000.XSHG` 或纯 6 位数字；不传返回当日全部股票。
  - 排序固定为代码升序；不支持排序方向与字段筛选参数。
  - 退市股票 `status=Delisted`，行情类字段为 null，`turnover`/`volume` 为 0。
  - `region_sector`、`cum_adjust_factor` 不可用。
  - `pe_ttm`、`concept_sectors` 仅 2026 年起有数据。

## 输入参数

| 名称 | 类型 | 必选 | 描述 |
|------|------|------|------|
| trade_date | integer | Y | 查询交易日，格式 YYYYMMDD |
| code | string | N | 股票代码，支持 600000.SH、600000.XSHG 或纯 6 位数字；不传返回当日全部股票 |
| page | integer | N | 页码，默认 1 |
| page_size | integer | N | 每页条数，默认 50，最大 200 |

## 输出参数
成功响应外层固定为 `code`、`message`、`data`：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| code | integer | Y | HTTP 状态码；成功固定为 200 |
| message | string | Y | 成功固定为 `success`；失败时为中文错误信息 |
| data | object / null | Y | 成功时为分页数据对象；失败时为 `null`。其字段如下 |

data 对象：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| pageNum | integer | Y | 当前页码 |
| pageSize | integer | Y | 每页条数 |
| total | integer | Y | 总条数 |
| pages | integer | Y | 总页数 |
| records | array | Y | 股票日截面记录列表 |

records 数组：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| trade_date | integer | Y | 交易日 YYYYMMDD |
| symbol | string | Y | 股票代码，如 000001.SZ |
| name | string | Y | 股票名称（退市股含「退市」标注） |
| open | string | Y | 开盘价；退市/停牌无数据时为 null |
| high | string | Y | 最高价 |
| low | string | Y | 最低价 |
| close | string | Y | 收盘价 |
| prev_close | string | Y | 昨收价 |
| turnover | string | Y | 成交额 |
| volume | integer | Y | 成交量 |
| board | string | Y | 板块：`main`（主板）/`chi_next`（创业板）/`star`（科创板）/`bjse`（北交所） |
| marginable | boolean | Y | 是否融资融券标的 |
| st | boolean | Y | 是否 ST |
| status | string | Y | 状态：Normal（正常）/ Suspended（停牌）/ Delisted（退市） |
| shares | integer | Y | 总股本 |
| tradable_a_shares | integer | Y | 流通 A 股股本 |
| non_tradable_a_shares | integer | Y | 限售 A 股股本 |
| company_name_en | string | Y | 公司英文名 |
| company_name_zh | string | Y | 公司中文名 |
| cum_adjust_factor | number | Y | 累计复权因子；不可用 |
| delisting_date | integer | Y | 退市日期 YYYYMMDD；未退市为 null |
| issue_price | string | Y | 发行价 |
| listing_date | integer | Y | 上市日期 YYYYMMDD |
| net_inflow_main | string | Y | 主力净流入 |
| net_inflow_small | string | Y | 小单净流入 |
| pe_ttm | number | Y | 市盈率（TTM）；仅 2026 年起有数据 |
| concept_sectors | array | Y | 概念板块列表；仅 2026 年起有数据 |
| industry_sector | string | Y | 行业板块 |
| region_sector | string | N | 地域板块；不可用 |
| change | string | Y | 涨跌额 |
| change_rate | number | Y | 当日涨跌幅 |
| change_rate_day5 | number | Y | 5 日涨跌幅 |
| change_rate_day10 | number | Y | 10 日涨跌幅 |
| change_rate_day20 | number | Y | 20 日涨跌幅 |
| change_rate_day60 | number | Y | 60 日涨跌幅 |
| change_rate_day120 | number | Y | 120 日涨跌幅 |
| change_rate_ytd | number | Y | 年初至今涨跌幅 |
| limit_down | string | Y | 跌停价 |
| limit_up | string | Y | 涨停价 |
| limited_down | boolean | Y | 当日是否跌停 |
| limited_up | boolean | Y | 当日是否涨停 |
| average_price | string | Y | 均价 |
| amplitude | number | Y | 振幅 |
| market_cap | string | Y | 总市值 |
| tradable_a_market_cap | string | Y | 流通 A 股市值 |
| turnover_rate | number | Y | 换手率 |

## 接口示例

```bash
curl -sS "https://market.ft.tech/gateway/api/v1/market/data/stock-history-list?trade_date=20260826&page=1&page_size=5"
```


Python（[`ftshare`](https://github.com/FTShare-Lab/FTShare-python-sdk.git) SDK，方法 `market.stock_history_list`，默认返回 pandas `DataFrame`）：

```python
import ftshare as ft

market = ft.market_api()
df = market.stock_history_list(
    trade_date=20260826,
    page=1,
    page_size=5,
)
print(df)
```

## 数据样例

20260826 当日截面前 3 条（按代码升序；小数位有截断；退市股行情字段为 null）：

| trade_date | symbol | name | open | high | low | close | prev_close | volume | turnover | change_rate | status |
|-----------|--------|------|------|------|-----|-------|-----------|--------|----------|-------------|--------|
| 20260826 | 000001.SZ | 平安银行 | 11.55 | 11.75 | 11.52 | 11.73 | 11.59 | 116728878 | 1363009730 | 0.012079 | Normal |
| 20260826 | 000002.SZ | 万科A | 3.08 | 3.15 | 3.07 | 3.13 | 3.09 | 97689014 | 305325842 | 0.012945 | Normal |
| 20260826 | 000003.SZ | PT金田A(退市) | null | null | null | null | null | 0 | 0 | null | Delisted |
| ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |

> 表中仅展示核心字段，完整记录含 46 字段（见「输出参数」），如 `pe_ttm=5.2378`、`industry_sector=股份制银行Ⅲ`、`concept_sectors=["低市净率","回购","核心资产","银行"]`（平安银行一例）。
