# 基金新发

- 接口：get_fund_new_found
- 路径：/api/v1/market/data/fund/fund-new-found
- 方法：GET
- 描述：查询新发基金（按成立日范围筛选 + 倒序，分页）。`start_date`/`end_date` 成立日范围（不传默认近 1 年，以 `end_date` 为锚点），`fund_type` 类型过滤。返回分页结构（pageNum/pageSize/total/pages/records），含基金代码/名称/管理人/托管人/运作方式/类型/成立日期/成立规模/发行起止/业绩基准/最低申购认购金额等 13 个字段。
- 数据范围：按成立日查询
- 单次限量：默认 `page=1`/`page_size=50`；上限 200
- 提示：
  - `start_date`/`end_date` 不传默认近 1 年（以 `end_date` 为锚点）。
  - `fund_type` 精确匹配：`混合型`/`债券型`/`股票型`/`货币型`/`其他型`/`保本型`/`REITs`。
  - `established_size`/`min_purchase_amount`/`min_subscription_amount` 可能为空。

## 输入参数

| 名称 | 类型 | 必选 | 描述 |
|------|------|------|------|
| start_date | integer | N | 成立日起始日期 YYYYMMDD（不传默认近 1 年） |
| end_date | integer | N | 成立日截止日期 YYYYMMDD（不传默认今天） |
| fund_type | string | N | 基金类型过滤：混合型/债券型/股票型/货币型/其他型/保本型/REITs |
| 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 对象：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| pageNum | integer | Y | 当前页码 |
| pageSize | integer | Y | 当前每页条数 |
| total | integer | Y | 总记录数 |
| pages | integer | Y | 总页数 |
| records | array | Y | 当前页新发基金列表 |

records 数组：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| fund_code | string | Y | 基金代码（带后缀） |
| fund_name | string | Y | 基金名称 |
| fund_company | string | Y | 基金管理人 |
| custodian | string | Y | 托管人 |
| operation_mode | string | Y | 运作方式 |
| fund_type | string | Y | 基金类型 |
| established_date | integer | Y | 成立日期 YYYYMMDD |
| established_size | string | N | 成立规模（元，可能空） |
| start_date | integer | Y | 发行开始日期 |
| end_date | integer | Y | 到期/封闭期结束日期 |
| benchmark | string | Y | 业绩比较基准 |
| min_purchase_amount | string | N | 最低申购金额 |
| min_subscription_amount | string | N | 最低认购金额 |

## 接口示例

```bash
curl -sS "https://market.ft.tech/gateway/api/v1/market/data/fund/fund-new-found?page=1&page_size=5"
curl -sS "https://market.ft.tech/gateway/api/v1/market/data/fund/fund-new-found?start_date=20260101&end_date=20260717&fund_type=股票型&page=1&page_size=5"
```

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

```python
import ftshare as ft

market = ft.market_api()

# 查询近期新发基金，限制返回条数
rows = market.fund_new_found(limit=10)
print(rows)

# 按成立日期和基金类型查询
rows = market.fund_new_found(
    start_date=20260101, end_date=20260717, fund_type="股票型", limit=10
)

# 返回原始 JSON
payload = market.fund_new_found(start_date=20260101, end_date=20260717, raw=True)
```

## 数据样例

`page=1&page_size=3`（近 1 年），节选核心列（custodian/established_size/start_date/end_date/min_* 列省略）：

| fund_code | fund_name | fund_company | fund_type | established_date | operation_mode | benchmark |
|-----------|-----------|--------------|-----------|-------------------|----------------|-----------|
| 028468.OF | 银华多元动力灵活配置混合C | 银华基金 | 混合型 | 20260717 | 开放式 | 沪深300指数收益率×50%+中债综合指数收益率×50% |
| 028242.OF | 工银中证A500ETF联接D | 工银瑞信基金 | 股票型 | 20260717 | ETF联接基金 | 中证A500指数收益率×95%+银行人民币活期存款利率（税后）×5% |
| 028475.OF | 泰康安泰回报混合C | 泰康基金 | 混合型 | 20260716 | 开放式 | 中债新综合财富（总值）指数收益率*75%+沪深300指数收益率*20%+金融机构人民币活期存款利率（税后）*5% |
| ... | ... | ... | ... | ... | ... | ... |
