场外基金列表 在线试调 →
场外公募基金列表: 代码/名称/市场/数据期数, 支持模糊匹配
接口说明
场外公募基金清单:场外基金 + 货币基金共 3.2 万只,代码/名称/市场/净值期数。
keyword 名称/代码模糊(如 沪深300);money_only=true 只看货币基金
26 只码在两个市场并存,list 给出 market 列供显式区分
快速调用
同一调用的三种等价写法,按接入习惯任选其一,复制即可运行。
指数基金模糊匹配
import top369 as gp
pro = gp.pro_api("sk-xxxxxxxxxxxx") # 安装: pip install top369
df = pro.fund_list(keyword="沪深300")
print(df.head())
货币基金
import top369 as gp
pro = gp.pro_api("sk-xxxxxxxxxxxx") # 安装: pip install top369
df = pro.fund_list(money_only=True, limit=20)
指数基金模糊匹配
import requests
API = "https://api.369.top/api"
KEY = "sk-xxxxxxxxxxxx"
r = requests.get(f"{API}/fund/list",
headers={"X-API-Key": KEY},
params={"keyword": "沪深300"},
timeout=30)
r.raise_for_status()
data = r.json()["data"] # 信封解包, 本接口数据在 data["rows"]
指数基金模糊匹配
curl -H "X-API-Key: sk-xxxxxxxxxxxx" \ "https://api.369.top/api/fund/list?keyword=%E6%B2%AA%E6%B7%B1300"
输入参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| keyword | str | 可选 | 基金名称/代码模糊匹配(如: 沪深300 或 110011) |
| money_only | bool | 可选 | true=只看货币基金, 缺省=全部 |
| limit | int | 可选 | 返回条数上限, 默认500(≤1000) |
返回字段
| 名称 | 类型 | 描述 |
|---|---|---|
| total | int | 命中基金总数 |
| rows[].code | str | 基金代码(6位) |
| rows[].name | str | 基金名称 |
| rows[].market | int | 市场(33=场外基金 34=货币基金) |
| rows[].market_name | str | 市场名称 |
| rows[].has_data | bool | 是否有净值序列 |
| rows[].periods | int | 净值期数(无数据=0) |
返回数据样例
{
"total": 311,
"rows": [
{
"code": "000051",
"name": "华夏沪深300联接A",
"market": 33,
"market_name": "场外基金",
"has_data": true,
"periods": 4221
},
{
"code": "000176",
"name": "嘉实沪深300研究A",
"market": 33,
"market_name": "场外基金",
"has_data": true,
"periods": 2871
},
{
"code": "000311",
"name": "景顺沪深300增强A",
"market": 33,
"market_name": "场外基金",
"has_data": true,
"periods": 3178
}
]
}
样例取自平台数据,rows共 311 条,样例仅展示前 3 条。
最佳实践:先 list 选基金再 nav 取净值序列; money_only=true 只看货币基金。