# 基金基础信息

- 接口：get_fund_basicinfo
- 路径：/api/v1/market/data/fund/fund-basicinfo
- 方法：GET
- 描述：按基金代码分页查询基金基本信息（管理人/托管人/运作方式/投资目标/费率要素等静态档案）。不传 `fund_code` 时返回全市场数据的默认分页。
- 数据范围：最新快照（静态档案，无时间序列）
- 单次限量：支持 `page` 和 `page_size`，默认每页 200 条，单页最多 500 条。

## 输入参数

| 名称 | 类型 | 必选 | 描述 |
|------|------|------|------|
| fund_code | string | N | 基金代码；不传时查询全市场数据的默认分页 |
| page | integer | N | 当前页 |
| page_size | integer | N | 每页条数 |

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

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

data 对象：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| items | array | Y | 基金基础信息数组 |
| total_items | integer | Y | 总记录数 |
| total_pages | integer | Y | 总页数 |

items 数组：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| fund_code | string | Y | 基金代码 |
| fund_name | string | Y | 基金名称 |
| fund_company | string | Y | 基金管理人 |
| fund_companyid | string | Y | 基金管理人ID |
| fund_manager | string | Y | 基金经理 |
| fund_custodian | string | Y | 基金托管人 |
| fund_custodianid | string | Y | 基金托管人ID |
| operat_mode | string | Y | 基金运作方式 |
| fund_type | string | Y | 基金类别 |
| brief_fund | string | Y | 基金简介 |
| invest_concept | string | Y | 基金投资理念 |
| invest_directn | string | Y | 基金投资方向 |
| invest_target | string | Y | 基金投资目标 |
| invest_field | string | Y | 基金投资范围 |
| bench_mark | string | Y | 业绩比较基准 |
| riskrtn_charct | string | Y | 风险收益特征 |
| establmt_date | integer | Y | 成立日期 YYYYMMDD |
| establmt_size | string | Y | 基金成立规模（份） |
| listed_date | integer | Y | 上市日期 YYYYMMDD |
| start_date | integer | Y | 存续期起始日 YYYYMMDD |
| end_date | integer | Y | 存续期截止日 YYYYMMDD |
| duration | string | Y | 存续年限（年） |
| lastopn_date | integer | Y | 最后运作日 YYYYMMDD |
| st_date_clr | integer | Y | 清算起始日 YYYYMMDD |
| end_date_clr | integer | Y | 清算截止日 YYYYMMDD |
| profdistrn_rl | string | Y | 收益分配原则 |
| in_profdistrn | string | Y | 场内收益分配方式 |
| off_profdistrn | string | Y | 场外收益分配方式 |
| in_applmkt | string | Y | 场内申购赎回场所 |
| in_applcode | string | Y | 场内申购赎回代码 |
| in_applabbr | string | Y | 场内申购赎回简称 |
| minsubscr_amt_info | string | Y | 最低认购申购金额描述 |
| minsubscr_amt_lw | string | Y | 最低认购金额下限（元） |
| minpurch_amt_lw | string | Y | 最低申购金额下限（元） |
| min_redempshares | string | Y | 最低赎回份额（份） |
| min_redemp_info | string | Y | 最低赎回份额描述 |
| rndapconf_date | string | Y | 申赎确认日 |
| deliv_days | integer | Y | 赎回款到账天数 |
| reg_agency | string | Y | 注册登记机构 |
| if_fof | string | Y | 是否FOF |
| if_initifund | string | Y | 是否发起式基金 |
| if_pensntarget | string | Y | 是否养老目标基金 |

## 接口示例

```bash
curl -sS "https://market.ft.tech/gateway/api/v1/market/data/fund/fund-basicinfo?page=1&page_size=100"
```

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

```python
import ftshare as ft

market = ft.market_api()

# 可按基金代码过滤，也可查询全市场数据的指定分页
df = market.fund_basicinfo(fund_code="110011", page=1, page_size=20)
print(df.shape)  # (1, 15)
print(df[["fund_code", "fund_name", "fund_company", "fund_manager", "fund_type"]].head())
#   fund_code    fund_name fund_company fund_manager fund_type
# 0           110011  易方达优质精选混合(QDII)     易方达基金         张坤      混合型

# 返回原始 JSON 信封（未经 DataFrame 抽取）
payload = market.fund_basicinfo(fund_code="110011", page=1, page_size=20, raw=True)
```

## 数据样例

`fund_code=000001` 过滤基金静态档案：

| fund_code | fund_name | fund_company | fund_manager | fund_custodian | ... |
|------------------|------------------|--------------|--------------|----------------|-----|
| 000001 | 华夏成长混合A | 华夏基金 | 刘睿聪 郑晓辉 | 中国建设银行股份有限公司 | ... |
