agentsclimarketplace

Major contract summary

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/major-contract-summary

近一年A股个股重大合同汇总排名(market.ft.tech)。用户问重大合同排行榜、哪些公司签合同最多/金额最大、合同总额排名时使用。From its SKILL.md

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill major-contract-summary

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

SKILL.md

2.4 KB, 730 tokens by cl100k_base, as published. Nobody here has run it

重大合同 - 近一年个股汇总

1. 接口描述

项目说明
接口名称近一年个股重大合同汇总
外部接口GET /api/v1/market/data/corporate/contract/summary
请求方式GET
适用场景近一年各股票重大合同数量与金额汇总排名,按合同总额降序,支持分页

2. 请求参数

参数名类型是否必填描述取值示例备注
pageint页码,从 1 开始1默认 1
page_sizeint每页数量50默认 50,最大 200

3. 响应说明

返回 PaginatedApiResponse 包装的 JSON 对象。

{
  "code": 0,
  "message": "success",
  "data": {
    "pageNum": 1,
    "pageSize": 50,
    "total": 35,
    "pages": 1,
    "records": [
      {
        "seq": 0,
        "security_code": "002307",
        "security_short_name": "北新路桥",
        "contract_count": "1",
        "total_amount": "3249000000.0000",
        "prev_year_total": "3249000000.0000",
        "last_year_revenue": null,
        "revenue_ratio": null,
        "latest_revenue": null
      }
    ]
  }
}

data.records 元素结构

字段名类型说明
seqint序号
security_codestring股票代码
security_short_namestring股票简称
contract_countstring重大合同签署数量
total_amountstring合同金额总计(元)
prev_year_totalstring上年度合同金额总计(元)
last_year_revenuestring上年度营业收入(元)
revenue_ratiostring占上年营业收入比例(%)
latest_revenuestring最新财务报表营业收入(元)

4. 用法

通过主目录 run.py 调用:

python <RUN_PY> major-contract-summary
python <RUN_PY> major-contract-summary --page 1 --page_size 50

5. 请求示例

GET /api/v1/market/data/corporate/contract/summary?page=1&page_size=50

6. 注意事项

  • 近一年范围 = dim_rdate >= DATE_SUB(NOW(), INTERVAL 1 YEAR)
  • 按合同总额降序排列。

What ships with it: 1 file

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