# PMI

- 接口：consumer_pmi_monthly
- 路径：/api/v1/market/data/economic/china-pmi
- 方法：GET
- 描述：查询中国采购经理指数（PMI）月度汇总结果，覆盖制造业与非制造业，按月份返回 PMI 当月值及同比、环比。结果按月份倒序排列，业务数据数组位于响应的 `data.items` 字段中。
- 数据范围：宏观经济月度数据
- 单次限量：默认 `page=1`、`page_size=200`；`page_size` 不设上限，超过总记录数时返回全部
- 提示：
  - `month` 格式化为「YYYY年MM月份」。
  - PMI 当月值为指数点；同比、环比单位为百分比（%）；缺失值返回 `null`。

## 输入参数

| 名称 | 类型 | 必选 | 描述 |
|------|------|------|------|
| page | integer | N | 页码，从 1 开始，默认 1 |
| page_size | integer | N | 每页条数，默认 200 |


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

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

data 对象：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| items | array | Y | 当前页的 PMI 月度记录列表 |
| total_items | integer | Y | 总记录数 |
| total_pages | integer | Y | 总页数 |

items 数组：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| month | string | Y | 月份，格式「YYYY年MM月份」 |
| manufacturing_pmi | string | Y | 制造业 PMI 当月值（PMI 指数点） |
| manufacturing_yoy | string / null | Y | 制造业 PMI 同比（%）；无数据时为 `null` |
| manufacturing_mom | string / null | Y | 制造业 PMI 环比（%）；无数据时为 `null` |
| non_manufacturing_pmi | string / null | Y | 非制造业 PMI 当月值（PMI 指数点）；无数据时为 `null` |
| non_manufacturing_yoy | string / null | Y | 非制造业 PMI 同比（%）；无数据时为 `null` |
| non_manufacturing_mom | string / null | Y | 非制造业 PMI 环比（%）；无数据时为 `null` |

## 接口示例

```bash
curl -sS "https://market.ft.tech/gateway/api/v1/market/data/economic/china-pmi?page=1&page_size=50"
```

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

```python
import ftshare as ft

market = ft.market_api()

# 返回第一页 DataFrame（按时间倒序）
df = market.consumer_pmi_monthly(page=1, page_size=50)
print(df.shape, list(df.columns))

# 只看最近几期
print(df.head(3))

# 返回原始 JSON（未经 DataFrame 抽取）
payload = market.consumer_pmi_monthly(page=1, page_size=50, raw=True)
```


## 数据样例

全量月度序列按月份降序返回，节选最新 5 期：

| month | manufacturing_pmi | manufacturing_yoy | manufacturing_mom | non_manufacturing_pmi | non_manufacturing_yoy | non_manufacturing_mom |
|-------|------------------|-------------------|-------------------|-----------------------|-----------------------|-----------------------|
| 2026年08月份 | 49.8000 | 0.8097 | 1.2195 | 49.0000 | -2.5845 | 0.0000 |
| 2026年07月份 | 49.2000 | -0.2028 | -2.1869 | 49.0000 | -2.1956 | -2.3904 |
| 2026年06月份 | 50.3000 | 1.2072 | 0.6000 | 50.2000 | -0.5941 | 0.1996 |
| 2026年05月份 | 50.0000 | 1.0101 | -0.5964 | 50.1000 | -0.3976 | 1.4170 |
| 2026年04月份 | 50.3000 | 2.6531 | -0.1984 | 49.4000 | -1.9841 | -1.3972 |
| ... | ... | ... | ... | ... | ... | ... |
