agentsclimarketplace

Eastmoney board constituents

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/eastmoney-board-constituents

查询东财板块成分股。当用户需要查询指定东财板块的全部成分股代码和名称,或了解东财板块成分股时使用。From its SKILL.md

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill eastmoney-board-constituents

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • runs commandsInstructs the agent to run 2 commands, including `python <RUN_PY> eastmoney-board-constituents --board_code BK1024` and 1 more.

SKILL.md

2.1 KB, 667 tokens by cl100k_base, as published. Nobody here has run it

查询东财板块成分股

接口说明

项目说明
接口名称查询东财板块成分股
外部接口/api/v1/market/data/eastmoney-board-constituents
请求方式GET
适用场景查询指定东财板块的全部成分股代码和名称

请求参数

参数名类型是否必填描述取值示例备注
board_codestring是板块代码BK1024BK 前缀,可通过 eastmoney-concept-boards 或 eastmoney-board-latest-ohlc 获取

执行方式

通过根目录的 run.py 调用(推荐):

# 查询绿色电力板块成分股
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 的「调用方式」说明。

响应结构

{
    "board_code": "BK1024",
    "board_name": "绿色电力",
    "constituents": [
        {
            "stock_code": "600905",
            "stock_name": "三峡能源"
        },
        {
            "stock_code": "601016",
            "stock_name": "节能风电"
        }
    ]
}

字段说明

字段名类型是否可为空说明
board_codeString否板块代码
board_nameString否板块名称
constituentsArray否成分股列表

constituents 元素字段说明

字段名类型是否可为空说明
stock_codeString否股票代码(不含市场后缀)
stock_nameString否股票名称

注意事项

  • 接口返回指定板块的全量成分股,无分页
  • stock_code 不含市场后缀(如 600905 而非 600905.SH)
  • 板块代码对行业板块和概念板块通用

What ships with it: 1 file

1.6 KB alongside SKILL.md, 1 of them executable

scripts/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.