eastmoney-board-constituents
Solid查询东财板块成分股。当用户需要查询指定东财板块的全部成分股代码和名称,或了解东财板块成分股时使用。
AI & Automation 63 stars
13 forks Updated today MIT
Install
Quality Score: 81/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# 查询东财板块成分股
## 接口说明
| 项目 | 说明 |
|---|---|
| 接口名称 | 查询东财板块成分股 |
| 外部接口 | `/api/v1/market/data/eastmoney-board-constituents` |
| 请求方式 | GET |
| 适用场景 | 查询指定东财板块的全部成分股代码和名称 |
## 请求参数
| 参数名 | 类型 | 是否必填 | 描述 | 取值示例 | 备注 |
|---|---|---|---|---|---|
| `board_code` | string | 是 | 板块代码 | `BK1024` | BK 前缀,可通过 `eastmoney-concept-boards` 或 `eastmoney-board-latest-ohlc` 获取 |
## 执行方式
通过根目录的 `run.py` 调用(推荐):
```bash
# 查询绿色电力板块成分股
python <RUN_PY> eastmoney-board-constituents --board_code BK1024
# 查询工程建设板块成分股
python <RUN_PY> eastmoney-board-constituents --board_code BK0425
```
> `<RUN_PY>` 为主 `SKILL.md` 同级的 `run.py` 绝对路径,参见主 SKILL.md 的「调用方式」说明。
## 响应结构
```json
{
"board_code": "BK1024",
"board_name": "绿色电力",
"constituents": [
{
"stock_code": "600905",
"stock_name": "三峡能源"
},
{
"stock_code": "601016",
"stock_name": "节能风电"
}
]
}
```
### 字段说明
| 字段名 | 类型 | 是否可为空 | 说明 |
|---|---|---|---|
| `board_code` | String | 否 | 板块代码 |
| `board_name` | String | 否 | 板块名称 |
| `constituents` | Array | 否 | 成分股列表 |
### constituents 元素字段说明
| 字段名 | 类型 | 是否可为空 | 说明 |
|---|---|---|---|
| `stock_code` | String | 否 | 股票代码(不含市场后缀) |
| `stock_name` | String | 否 | 股票名称 |
## 注意事项
- 接口返回指定板块的全量成分股,无分页
- `stock_code` 不含市场后缀(如 `600905` 而非 `600905.SH`)
- 板块代码对行业板块和概念板块通用
Details
- Author
- FTShare-Lab
- Repository
- FTShare-Lab/FTShare-skill
- Created
- 2 months ago
- Last Updated
- today
- Language
- Python
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
eastmoney-concept-boards
查询东财概念板块列表。当用户需要查询东财概念板块基础信息与成分代码列表,返回全量板块,或了解东财概念板块列表时使用。
63 Updated today
FTShare-Lab AI & Automation Solid
eastmoney-board-daily-ohlc
查询东财单板块历史 OHLC。当用户需要查询指定东财板块历史 OHLC 数据,支持日期范围过滤与分页,或了解东财单板块历史 OHLC时使用。
63 Updated today
FTShare-Lab AI & Automation Solid
eastmoney-sector-flow
查询东方财富板块资金流(行业/概念/地域日资金流)。用户问东财板块资金流、板块主力净流入、行业/概念/地域资金流向、BK 板块代码资金流、超大单大单净流入时使用。
63 Updated today
FTShare-Lab