申万指数基础信息与分类
申万行业分类
POST
https://jinniu.ziyoutang.com/api/sw_index_classify查询申万一级、二级和三级行业目录及上下级关系,需要开通“申万指数基础数据”权限。
请求示例
curl -X POST 'https://jinniu.ziyoutang.com/api/sw_index_classify' \
-H 'Content-Type: application/json' \
-H 'X-Api-Key: YOUR_API_KEY' \
-d '{"level":"L1","src":"SW2021","limit":2}'
请求与返回字段
| 字段 | 必填 | 说明 |
|---|---|---|
| index_code | 否 | 申万行业指数代码,带 .SI 后缀。 |
| level | 否 | L1、L2 或 L3。 |
| src | 否 | 分类版本:SW2021 或 SW2014,默认 SW2021。 |
| limit | 否 | 1 至 2,000,默认 2,000。 |
| industry_name / industry_code | 返回 | 行业名称、行业分类代码。 |
| is_pub / parent_code | 返回 | 是否发布行情、上级行业代码。 |
返回示例
{"success":true,"message":"","data":{"fields":["index_code","industry_name","level","industry_code","is_pub","parent_code","src"],"items":[["801010.SI","农林牧渔","L1","110000","1","0","SW2021"]],"meta":{"returned_count":1,"truncated":false}}}