agentsclimarketplace

Stock list all stocks

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/stock-list-all-stocks

获取所有股票代码列表。当用户需要获取所有 A 股股票的代码和名称列表,支持沪深京股票,自动返回最新交易日的数据,或了解所有股票代码列表时使用。From its SKILL.md

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill stock-list-all-stocks

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

SKILL.md

1.5 KB, 439 tokens by cl100k_base, as published. Nobody here has run it

获取所有股票代码列表

接口说明

项目说明
接口名称获取所有股票代码列表
外部接口/api/v1/market/data/stock-list
请求方式GET
适用场景获取所有 A 股股票的代码和名称列表,支持沪深京股票,自动返回最新交易日的数据

请求参数

无需任何参数。

执行方式

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

python <RUN_PY> stock-list-all-stocks

<RUN_PY> 为主 SKILL.md 同级的 run.py 绝对路径,参见主 SKILL.md 的「调用方式」说明。

响应结构

{
    "items": [
        {
            "stock_code": "000001.SZ",
            "stock_name": "平安银行"
        },
        {
            "stock_code": "000002.SZ",
            "stock_name": "万科A"
        }
    ]
}

字段说明

字段名类型是否可为空说明
stock_codeString否股票交易代码,固定携带 .SZ/.SH/.BJ 市场后缀
stock_nameString否股票名称

注意事项

  • 返回全量 A 股,数据量较大(通常 5000 条以上),按需筛选
  • stock_code 固定含市场后缀,不要自行增减
  • 当查询没有数据时,返回空数组 []

What ships with it: 1 file

1.2 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.