中国经济 - 城镇固定资产投资(月度)
1. 接口描述
| 项目 | 说明 |
|---|---|
| 接口名称 | 城镇固定资产投资(月度汇总计算结果) |
| 外部接口 | GET /api/v1/market/data/economic/china-fixed-asset-investment |
| 请求方式 | GET |
| 适用场景 | 获取中国城镇固定资产投资月度数据,含本月投资、同比、环比、累计值等 |
2. 请求参数
说明:该接口无需请求参数。
| 参数名 | 类型 | 是否必填 | 描述 | 取值示例 | 备注 |
|---|---|---|---|---|---|
| - | - | - | 无需参数 | - | - |
3. 用法
直接执行:
python script/handler.py
脚本输出 JSON 数组,按时间倒序,每项含 month(如 2025年03月份)、investment(本月投资)、yoy(同比 %)、mom(环比 %)、cumulative(累计值)、unit(亿元)、currency(CNY),以表格展示给用户。
4. 响应说明
返回值为城镇固定资产投资月度计算结果列表,按时间倒序。
FixedAssetInvestmentComputed 结构
| 字段名 | 类型 | 是否可为空 | 说明 | 单位 |
|---|---|---|---|---|
| month | String | 否 | 月份,格式如 2025年03月份 | - |
| investment | float | 是 | 本月投资(本月累计减上月累计) | 见 unit |
| yoy | float | 是 | 同比增长 | % |
| mom | float | 是 | 环比增长 | % |
| cumulative | float | 是 | 累计值 | 见 unit |
| unit | String | 否 | 货币单位 | - |
| currency | String | 否 | 货币种类 | - |
5. 请求示例
GET /api/v1/market/data/economic/china-fixed-asset-investment
6. 注意事项
- 返回按月份汇总,格式如「2025年03月份」,列表已按时间倒序,最新月份在前。
- 金额单位见
unit(通常为亿元),同比/环比单位为 %,各数值字段可为 null。
调用示例
python <RUN_PY> economic-china-fixed-asset-investment-monthly