行业板块
根据服务、资产与周期选择本接口。先核对请求参数,再用响应字段和单位解释结果。
一次性返回猫爪行业板块基础信息,包含普通行业、研究行业的层级和父子关系。
默认返回普通行业和研究行业全量;可用 params.type=hy/yjhy 单独查询。返回名称已去掉来源前缀;父子关系由内部层级编码计算,不对外暴露原始层级字段。
接口名称 theme_industry
请求方法 POST /api
- https://sz.meoz.cn:6688
- https://sh.meoz.cn:6688
返回字段
| 字段 | 名称 | 类型 | 描述 | 单位 |
|---|---|---|---|---|
| type | string | 行业体系:hy=普通行业,yjhy=研究行业 | ||
| symbol | string | 板块代码 | ||
| name | string | 板块名称 | ||
| industry_level | number | 行业层级:1=一级分类,2=二级分类,3=细分/三级分类;编码、顺序号或标记,不适用物理单位;未列出的枚举含义尚未确认。 | ||
| parent_symbol | string|null | 上级行业板块代码,一级分类为空 | ||
| parent_name | string|null | 上级行业板块名称,一级分类为空 |
请求
{"content":{"application/json":{"example":{"apikey":"","apiname":"theme_industry"},"schema":{"properties":{"apikey":{"default":"","description":"浏览器中的 Test Request 会在发送时自动注入;其他调用请[前往个人中心获取](/console)。","type":"string"},"apiname":{"default":"theme_industry","description":"接口名称","enum":["theme_industry"],"type":"string"},"params":{"additionalProperties":false,"description":"| 参数 | 类型 | 是否必选 | 示例值 | 描述 |\n| --- | --- | --- | --- | --- |\n| `type` | `string` | 可选 | `yjhy` | 行业体系:hy=普通行业,yjhy=研究行业。不传返回两套行业全量。 |\n| `symbols` | `string\\|array` | 可选 | `880301,880302` | 多个行业板块代码过滤条件。 |\n| `symbol` | `string\\|array` | 可选 | `880301` | 单个或多个行业板块代码,例如 880301。 |\n| `name` | `string` | 可选 | `煤炭` | 行业板块名称模糊搜索。 |","properties":{"name":{"description":"行业板块名称模糊搜索。","example":"煤炭","type":"string"},"symbol":{"description":"单个或多个行业板块代码,例如 880301。","example":"880301","oneOf":[{"description":"单个行业板块代码","type":"string"},{"description":"多个行业板块代码数组","items":{"type":"string"},"type":"array"}]},"symbols":{"description":"多个行业板块代码过滤条件。","example":"880301,880302","oneOf":[{"description":"多个行业板块代码,逗号分隔","type":"string"},{"description":"多个行业板块代码数组","items":{"type":"string"},"type":"array"}]},"type":{"description":"行业体系:hy=普通行业,yjhy=研究行业。不传返回两套行业全量。","enum":["hy","yjhy"],"example":"yjhy","type":"string"}},"type":"object"}},"required":["apikey","apiname"],"type":"object"}}},"description":"| 参数 | 类型 | 是否必选 | 固定值 | 描述 |\n| --- | --- | --- | --- | --- |\n| `apiname` | `string` | 必选 | `theme_industry` | 接口名称 |\n| `apikey` | `string` | 必选 | [访问个人中心获取](/console) | 访问密钥 |","required":true}
响应
{"200":{"content":{"application/json":{"schema":{"properties":{"code":{"description":"业务状态码,200 表示成功","example":200,"type":"integer"},"data":{"description":"行业板块基础信息返回数据","nullable":true,"properties":{"fields":{"description":"固定返回字段名列表,顺序与 items 中每一列一一对应","example":["type","symbol","name","industry_level","parent_symbol","parent_name"],"items":{"type":"string"},"type":"array"},"items":{"description":"二维数组数据,每一行代表一个行业板块","example":[["hy","880981","能源",1,null,null],["hy","880301","煤炭",2,"880981","能源"],["yjhy","881003","动力煤",3,"881002","煤炭开采"]],"items":{"items":{},"type":"array"},"type":"array"}},"required":["fields","items"],"type":"object"},"message":{"description":"响应消息","example":"success","type":"string"}},"required":["code","message","data"],"type":"object"}}},"description":"Successful Response"},"429":{"content":{"application/json":{"schema":{"properties":{"code":{"example":429,"type":"integer"},"data":{"example":null,"nullable":true},"message":{"example":"请求频率超限:daily_auc_detail 接口的调用上限为 3 次/秒,请降低该接口的调用频率,建议 1 秒后重试。","type":"string"}},"required":["code","message","data"],"type":"object"}}},"description":"账户总调用频率或单个重接口调用频率超过当前套餐限额。","headers":{"Retry-After":{"description":"建议等待后重试的秒数。","schema":{"minimum":1,"type":"integer"}}}}}