成份股

文档 v1.0.67 · 发布快照 1.0.78下载 meoz Skill最新文档

根据服务、资产与周期选择本接口。先核对请求参数,再用响应字段和单位解释结果。

正式接口 · meoz 接口目录

全量分组返回猫爪板块当前成份股,用于一次性获取板块与股票池关系。

返回按板块分组,不重复返回板块名称;板块名称可通过基础信息接口按 theme_symbol 对照。

接口名称 theme_members

请求方法 POST /api

  • https://sz.meoz.cn:6688
  • https://sh.meoz.cn:6688

返回字段

字段 名称 类型 描述 单位
theme_symbol string 板块代码
symbols string[] 该板块下的成份股代码数组

请求

{"content":{"application/json":{"example":{"apikey":"","apiname":"theme_members","params":{"theme_symbol":"881322"}},"schema":{"properties":{"apikey":{"default":"","description":"浏览器中的 Test Request 会在发送时自动注入;其他调用请[前往个人中心获取](/console)。","type":"string"},"apiname":{"default":"theme_members","description":"接口名称","enum":["theme_members"],"type":"string"},"params":{"additionalProperties":false,"default":{"theme_symbol":"881322"},"description":"| 参数 | 类型 | 是否必选 | 示例值 | 描述 |\n| --- | --- | --- | --- | --- |\n| `type` | `string\\|array` | 可选 | `gn,hy` | 板块分类。`gn=概念`、`hy=行业`、`fg=风格/固定专题`、`tj=统计板块`、`yjhy=研究行业`;指定板块代码时可省略,未指定板块代码时默认返回 gn/hy/fg/tj。 |\n| `theme_symbols` | `string\\|array` | 可选 | `881322,880529` | 多个板块代码过滤条件;按代码查询时无需同时传 type。 |\n| `symbols` | `string\\|array` | 可选 | `002236,300308` | 可选股票代码过滤条件。 |\n| `symbol` | `string\\|array` | 可选 | `002236` | 可选股票代码过滤条件。 |\n| `theme_symbol` | `string\\|array` | 可选 | `881322` | 单个或多个板块代码;按代码查询时无需同时传 type。 |","properties":{"symbol":{"description":"可选股票代码过滤条件。","example":"002236","oneOf":[{"description":"单个股票代码","type":"string"},{"description":"多个股票代码数组","items":{"type":"string"},"type":"array"}]},"symbols":{"description":"可选股票代码过滤条件。","example":"002236,300308","oneOf":[{"description":"多个股票代码,逗号分隔","type":"string"},{"description":"多个股票代码数组","items":{"type":"string"},"type":"array"}]},"theme_symbol":{"description":"单个或多个板块代码;按代码查询时无需同时传 type。","example":"881322","oneOf":[{"description":"单个板块代码","type":"string"},{"description":"多个板块代码数组","items":{"type":"string"},"type":"array"}]},"theme_symbols":{"description":"多个板块代码过滤条件;按代码查询时无需同时传 type。","example":"881322,880529","oneOf":[{"description":"多个板块代码,逗号分隔","type":"string"},{"description":"多个板块代码数组","items":{"type":"string"},"type":"array"}]},"type":{"description":"板块分类。`gn=概念`、`hy=行业`、`fg=风格/固定专题`、`tj=统计板块`、`yjhy=研究行业`;指定板块代码时可省略,未指定板块代码时默认返回 gn/hy/fg/tj。","example":"gn,hy","oneOf":[{"description":"单个或逗号分隔的分类值,例如 gn 或 gn,hy","type":"string"},{"description":"分类值数组","items":{"enum":["gn","hy","fg","tj","yjhy"],"type":"string"},"type":"array"}]}},"type":"object"}},"required":["apikey","apiname"],"type":"object"}}},"description":"| 参数 | 类型 | 是否必选 | 固定值 | 描述 |\n| --- | --- | --- | --- | --- |\n| `apiname` | `string` | 必选 | `theme_members` | 接口名称 |\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":["theme_symbol","symbols"],"items":{"type":"string"},"type":"array"},"items":{"description":"二维数组数据,每一行代表一个板块及其成份股股票池","example":[["880904",["002236","300308","603803"]]],"items":{"items":{"oneOf":[{"description":"板块代码","type":"string"},{"description":"该板块下的股票代码数组","items":{"type":"string"},"type":"array"}]},"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"}}}}}