# 税收

- 接口：tax_revenue_monthly
- 路径：/api/v1/market/data/economic/china-tax-revenue
- 方法：GET
- 描述：查询全国税收收入月度汇总计算结果。按月份返回税收收入合计当月值、累计值、累计同比，以及计算出的月度环比与月度同比。数据按月聚合，按年份（2000 年起）降序排列。响应为数组直出。无入参。
- 数据范围：宏观经济月度数据
- 单次限量：全量月度序列一次返回，无分页上限
- 提示：
  - `month` 格式化为「YYYY年MM月」。
  - 金额单位为亿元，百分比字段单位为 %；缺失为 null。
  - `mom_growth` / `monthly_yoy_growth` 为计算值，非数据源原始字段；计算口径见字段表。

## 输入参数

无。


## 输出参数

成功响应外层固定为 `code`、`message`、`data`：

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


data 数组：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| month | string | Y | 月份，格式「YYYY年MM月」 |
| monthly_revenue | string | Y | 税收收入合计当月（亿元） |
| cumulative_revenue | string | Y | 税收收入合计累计（亿元） |
| yoy_growth | string | Y | 税收收入合计累计同比（%） |
| mom_growth | string | Y | 月度环比（%，计算值：(当月 - 上月)/上月*100） |
| monthly_yoy_growth | string | Y | 月度同比（%，计算值：(当月 - 去年同月)/去年同月*100） |

## 接口示例

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

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

```python
import ftshare as ft

market = ft.market_api()

# 默认返回 DataFrame（税收收入月度序列，含同比/环比）
df = market.tax_revenue_monthly()
print(df)
#         month monthly_revenue cumulative_revenue yoy_growth mom_growth monthly_yoy_growth
# 0  2026年05月           14520              82617        4.4  -25.8881              6.7647
# 1  2026年04月           19592              68097        3.9   61.7569              8.2072
# ...（191 行）

# 取最近 12 个月
recent = market.tax_revenue_monthly().head(12)

# 返回原始 JSON（列表，未经 DataFrame 抽取）
rows = market.tax_revenue_monthly(raw=True)
# rows[0] == {"month": "2026年05月", "monthly_revenue": "14520.0000", "yoy_growth": "4.4000", ...}
```

## 数据样例

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

| month | monthly_revenue | cumulative_revenue | yoy_growth |
|-------|-----------------|--------------------|------------|
| 2026年04月 | 19592 | 68097 | 3.9 |
| ... | ... | ... | ... |
