# 固定资产投资

- 接口：consumer_fixed_asset_monthly
- 路径：/api/v1/market/data/economic/china-fixed-asset-investment
- 方法：GET
- 描述：查询中国城镇固定资产投资月度汇总计算结果。按月份返回本月投资（本月累计 - 上月累计）、同比、环比、原始累计值。数据按月聚合，按年份（2000 年起）降序排列。响应为数组直出，含货币单位与币种。无入参。
- 数据范围：宏观经济月度数据
- 单次限量：全量月度序列一次返回，无分页上限
- 提示：
  - `month` 格式化为「YYYY年MM月份」。
  - 金额单位见 `unit`，币种见 `currency`。

## 输入参数

无。


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

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| code | integer | Y | HTTP 状态码；成功固定为 200 |
| message | string | Y | 成功固定为 `success`；失败时为中文错误信息 |
| data | array / null | Y | 成功时为业务数据数组；失败时为 `null`。 |


data 数组：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| month | string | Y | 月份，格式「YYYY年MM月份」 |
| investment | string | Y | 本月投资（本月累计 - 上月累计） |
| yoy | string | Y | 同比增长（%） |
| mom | string | Y | 环比增长（%） |
| cumulative | string | Y | 原始累计值 |
| unit | string | Y | 货币单位 |
| currency | string | Y | 货币种类 |

## 接口示例

```bash
curl -sS "https://market.ft.tech/gateway/api/v1/market/data/economic/china-fixed-asset-investment"
```

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

```python
import ftshare as ft

market = ft.market_api()

# 默认返回 DataFrame（全量月度序列，按时间倒序）
df = market.consumer_fixed_asset_monthly()
print(df.shape, list(df.columns)[:6])
# (290, 7) ['month', 'investment', 'yoy', 'mom', 'cumulative', 'unit']

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

# 返回原始 JSON（未经 DataFrame 抽取）
payload = market.consumer_fixed_asset_monthly(raw=True)
```


## 数据样例

全量月度序列按月份降序返回，节选最新一期（2026年04月份）核心字段：

| month | investment | yoy | cumulative |
|-------|------------|-----|------------|
| 2026年04月份 | 38585 | -12.0068 | 141293 |
| ... | ... | ... | ... |
