# 基金净值收益表现

- 接口：get_fund_net_value_performance
- 路径：/api/v1/market/data/fund/fund-net-value-performance
- 方法：GET
- 描述：按 `fund_code` 查净值口径收益表现。`stat_date` 单日或 `start_date`/`end_date` 区间（互斥）。返回分页结构（items/total_pages/total_items），每个统计日期一条记录，含日收益率及本周/近一周、本月/近一月、近三月/近六月、今年、近一/二/三/五/十年、成立以来收益率与对应年化收益率等 23 个字段。
- 数据范围：按统计日查询
- 单次限量：默认 `page=1`/`page_size=50`；上限 200
- 提示：
  - `fund_code` 必填。
  - `stat_date` 与 `start_date`+`end_date` 互斥。
  - 每个统计日期返回一条多区间收益率记录。

## 输入参数

| 名称 | 类型 | 必选 | 描述 |
|------|------|------|------|
| fund_code | string | Y | 基金代码 |
| stat_date | integer | N | 统计日期 YYYYMMDD（与 start/end 互斥） |
| start_date | integer | N | 统计开始日期（需与 end_date 同传） |
| end_date | integer | N | 统计结束日期 |
| page | integer | N | 页码，默认 1 |
| page_size | integer | N | 每页条数，默认 50，上限 200 |


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

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

data 对象：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| items | array | Y | 净值收益表现列表 |
| total_pages | integer | Y | 总页数 |
| total_items | integer | Y | 总记录数 |

items 数组：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| fund_code | string | Y | 基金代码 |
| fund_name | string | Y | 基金名称 |
| trade_code | string | Y | 交易代码 |
| stat_date | integer | Y | 统计日期 |
| daily_return | string | Y | 日收益率 |
| this_week_return | string | Y | 本周以来收益率 |
| one_week_return | string | Y | 近一周收益率 |
| this_month_return | string | Y | 本月以来收益率 |
| one_month_return | string | Y | 近一月收益率 |
| three_month_return | string | Y | 近三月收益率 |
| six_month_return | string | Y | 近六月收益率 |
| this_year_return | string | Y | 今年以来收益率 |
| one_year_return | string | Y | 近一年收益率 |
| two_year_return | string | Y | 近两年收益率 |
| annualized_two_year_return | string | Y | 近两年年化收益率 |
| three_year_return | string | Y | 近三年收益率 |
| annualized_three_year_return | string | Y | 近三年年化收益率 |
| five_year_return | string | Y | 近五年收益率 |
| annualized_five_year_return | string | Y | 近五年年化收益率 |
| ten_year_return | string | Y | 近十年收益率 |
| annualized_ten_year_return | string | Y | 近十年年化收益率 |
| since_inception_return | string | Y | 成立以来收益率 |
| annualized_since_inception_return | string | Y | 成立以来年化收益率 |

## 接口示例

```bash
curl -sS "https://market.ft.tech/gateway/api/v1/market/data/fund/fund-net-value-performance?fund_code=000001&start_date=20260710&end_date=20260717&page=1&page_size=5"
```

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

```python
import ftshare as ft

market = ft.market_api()

# 查询指定统计日的收益表现
rows = market.fund_net_value_performance(fund_code="000001", stat_date=20260713)
print(rows)

# 查询统计日期区间，限制返回条数
rows = market.fund_net_value_performance(
    fund_code="000001", start_date=20260710, end_date=20260717, limit=5
)

# 返回原始 JSON
payload = market.fund_net_value_performance(
    fund_code="000001", stat_date=20260713, raw=True
)
```

## 数据样例

`fund_code=000001`（stat_date=20260713），节选核心列（annualized_*/five_year/ten_year/since_inception 等 12 个区间列省略）：

| stat_date | daily_return | this_week_return | one_week_return | this_month_return | one_month_return | three_month_return | six_month_return | this_year_return | one_year_return | two_year_return |
|-----------|---------------|------------------|-----------------|-------------------|------------------|---------------------|------------------|------------------|-----------------|------------------|
| 20260713 | -2.3576 | -2.3576 | 1.222 | -8.9187 | 15.9409 | 37.0404 | 28.3133 | 37.6731 | 72.9487 | 96.1739 |
| ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
