API REFERENCE

申万行业分类

申万指数基础信息与分类

申万行业分类

POSThttps://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}}}