agentsclimarketplace

Stock share chg

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/stock-share-chg

查询 A 股股东增减持明细。当用户需要获取 A 股股东增减持数据(按 stock_code 分页查询全部历史,或以 is_last=true 查全市场最新一期),支持沪深京股票时使用。From its SKILL.md

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill stock-share-chg

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

SKILL.md

5.8 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it

查询 A 股股东增减持

接口说明

项目说明
接口名称查询 A 股股东增减持
外部接口/api/v1/market/data/holder/stock-share-chg
请求方式GET
适用场景指定 stock_code 分页查询该标的全部历史增减持,或 is_last=true 查全市场最新一期

请求参数

参数名类型是否必填描述取值示例备注
stock_codestring否单个股票代码603323.SH不传时需配合 --is_last;支持沪深京 A 股,需 6 位数字+后缀(SH/SZ/BJ),单次仅支持一个代码
is_lastflag否取所有标的最新一期(flag)传字符串 "true";与 stock_code 二选一
pageint否页码1默认 1
page_sizeint否每页记录数50默认 50

执行方式

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

python <RUN_PY> stock-share-chg --stock_code 603323.SH
python <RUN_PY> stock-share-chg --stock_code 603323.SH --page 2 --page_size 20
python <RUN_PY> stock-share-chg --is_last --page 1 --page_size 50

<RUN_PY> 为主 SKILL.md 同级的 run.py 绝对路径。

响应结构

{
    "items": [
        {
            "trade_code": "000001",
            "stock_name": "平安银行",
            "holder_name": "张某某",
            "shareholding_change_info": "增持",
            "change_quantity": "30000",
            "pre_change_quantity": "0",
            "pre_change_total_capital_ratio": null,
            "post_change_quantity": "30000",
            "post_change_total_capital_ratio": null,
            "transfer_method": null,
            "latest_price": "18.45",
            "price_change_rate": "0",
            "transaction_price": null,
            "transaction_amount": null,
            "progress_description": null,
            "change_start_date": "2021-09-06",
            "change_end_date": "2021-09-06",
            "announcement_date": "2021-09-07"
        }
    ],
    "total_pages": 1,
    "total_items": 11036
}

items 元素字段

字段名类型是否可为空说明
trade_codeString否股票交易代码,6 位数字
stock_nameString否上市公司官方简称
holder_nameString否持股变动主体(股东名称)
shareholding_change_infoString否持股变动类型:增持/减持
change_quantitystring否持股变动数量
pre_change_quantitystring否变动前持股数量
pre_change_total_capital_ratioString是变动前持股占总股本比例(暂空)
post_change_quantitystring否变动后持股数量
post_change_total_capital_ratioString是变动后持股占总股本比例(暂空)
transfer_methodString是股份转让方式(暂空)
latest_pricestring否股票最新价
price_change_ratestring否股票涨跌幅
transaction_priceString是股份交易价格(暂空)
transaction_amountString是股份交易金额(暂空)
progress_descriptionString是持股变动进展说明(暂空)
change_start_dateString否变动开始日期 YYYY-MM-DD
change_end_dateString否变动截止日期 YYYY-MM-DD
announcement_dateString否公告发布日期 YYYY-MM-DD

注意事项

  • 必须至少指定 --stock_code 或 --is_last 其一。
  • shareholding_change_info 仅为「增持」「减持」两种取值。
  • pre_change_total_capital_ratio/post_change_total_capital_ratio/transfer_method/transaction_price/transaction_amount/progress_description 当前接口均暂为空值。
  • is_last 在 query string 中传字符串 "true"。

What ships with it: 2 files

4.6 KB alongside SKILL.md, 2 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.