# 财政收入

- 接口：consumer_fiscal_revenue_monthly
- 路径：/api/v1/market/data/economic/china-fiscal-revenue
- 方法：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月份」 |
| revenue_current | string | Y | 当月财政收入合计 |
| yoy | string | Y | 当月同比（%） |
| mom | string | Y | 当月环比（%） |
| cumulative | string | Y | 财政收入累计 |
| cumulative_yoy | string | Y | 累计同比（%） |
| unit | string | Y | 货币单位 |
| currency | string | Y | 货币种类 |

## 接口示例

```bash
curl -sS "https://market.ft.tech/gateway/api/v1/market/data/economic/china-fiscal-revenue"
```

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

```python
import ftshare as ft

market = ft.market_api()

# 默认返回 DataFrame（全量月度财政收入序列）
df = market.consumer_fiscal_revenue_monthly()
print(df[["month", "cumulative", "cumulative_yoy"]].head(3))
#            month cumulative cumulative_yoy
# 0  2026年05月份     100465              4
# ...

# 返回原始 JSON
payload = market.consumer_fiscal_revenue_monthly(raw=True)

```

## 数据样例

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

| month | revenue_current | yoy | cumulative |
|-------|-----------------|-----|------------|
| 2026年04月份 | 21791 | 6.6774 | 83404 |
| ... | ... | ... | ... |
