筛选项字典
/v1/fund-screener-options免费返回全市场筛选器用到的所有合法取值:类型树、基金公司、主题、收益区间档位、评级机构与排序字段。免费端点。
回答的问题:做筛选器之前,先要知道有哪些可选的类型、公司、主题、收益区间。
请求参数
| 参数 | 必填 | 类型 | 默认 | 说明 |
|---|---|---|---|---|
key | — | string | — | API Key(免费端点可不填) |
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
types | array | 大类与细分类型树,types[].children 为子级 |
companies | array | 基金公司清单(id 与中文名) |
subjects | array | 主题清单(code 与名称) |
return_ranges | array | 收益区间档位,键为 w4 / w13 / w26 / w52 / y2 / y3 / y5 / yn |
ratings | object | 评级机构清单 |
sorts | array | 可排序字段(key 与字段名) |
真实响应样例
用 110022 实抓的真实响应。列表类字段已截短以便阅读(原始响应更完整); 其中的 elapsed_ms 是某一次的耗时,首次请求通常 1–3 秒。
{
"ok": true,
"endpoint": "fund-screener-options",
"tier": "institutional",
"elapsed_ms": 823,
"data": {
"types": [
{
"id": "x2001",
"name": "混合型",
"children": [
{
"id": "x3004",
"name": "稳健混合型"
},
{
"id": "x3006",
"name": "激进混合型"
},
{
"id": "x3026",
"name": "平衡混合型"
}
]
},
{
"id": "x2003",
"name": "债券型",
"children": [
{
"id": "x3003",
"name": "稳健债券型"
},
{
"id": "x3005",
"name": "激进债券型"
},
{
"id": "x3012",
"name": "纯债债券型"
}
]
},
{
"id": "x2002",
"name": "股票型",
"children": [
{
"id": "x3008",
"name": "指数型"
},
{
"id": "x3007",
"name": "一般股票型"
},
{
"id": "x3006",
"name": "激进混合型"
}
]
}
],
"companies": [
{
"id": "80163340",
"name": "安信基金",
"pinyin": "axjj"
},
{
"id": "82873649",
"name": "安联基金",
"pinyin": "aljj"
},
{
"id": "80000226",
"name": "博时基金",
"pinyin": "bsjj"
}
],
"subjects": [
{
"code": "S13",
"name": "定期开放"
},
{
"code": "S15",
"name": "货币t+0"
},
{
"code": "S6",
"name": "大盘蓝筹"
}
],
"return_ranges": [
{
"key": "yn",
"name": "今年来",
"buckets": {
"1": "0~10%",
"2": "10%~20%",
"3": "20%~50%",
"4": "50%以上",
"5": "负收益"
}
},
{
"key": "w4",
"name": "近1月",
"buckets": {
"1": "0~10%",
"2": "10%~20%",
"3": "20%~50%",
"4": "50%以上",
"5": "负收益"
}
},
{
"key": "w13",
"name": "近3月",
"buckets": {
"1": "0~10%",
"2": "10%~20%",
"3": "20%~50%",
"4": "50%以上",
"5": "负收益"
}
}
],
"ratings": [
{
"key": "morningstar",
"name": "晨星"
},
{
"key": "haitong",
"name": "海通"
},
{
"key": "jianxin",
"name": "济安金信"
}
],
"sorts": [
{
"key": "1w",
"field": "w1navg"
},
{
"key": "1m",
"field": "w4navg"
},
{
"key": "3m",
"field": "w13navg"
}
],
"method": "types / companies / subjects 是数据源给的原值;return_ranges / ratings / sorts 的 key 是本接口的参数名,buckets 是数据源页面上那五档的原文。",
"note": "同一只基金的 A/C/E 等份额在数据源里是各自独立的一条,本接口不去重,筛出来看到同一只基金多个份额属正常。"
}
}调用示例
curl "https://api.fundapi.cn/v1/fund-screener-options?code=110022" \ -H "Authorization: Bearer 你的API Key" \ -H "User-Agent: your-app"
注意
这是「字典」,先调它再做筛选
`/v1/fund-screener` 的所有 id 型参数(type / sub_type / company / subject)都必须取自这里。直接猜 id 会筛出空结果。
收益区间是「档位」不是数值
`return_ranges` 给的是 1–5 的档位编号(如 1 = 0~10%),传参时传编号而不是百分比。