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

SkillDev tools

Ranked summary of major contracts for A-share stocks over the past year (market.ft.tech). Use when the user asks about major contract rankings, which companies signed the most/largest contracts, or total contract value rankings.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the 重大合同 - 近一年个股汇总 skill

What this skill tells your AI

The instructions your AI receives, as published by ftshare-lab/ftshare-skill in ftshare-market-data/sub-skills/major-contract-summary/SKILL.md and read by ahel’s review.

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)
  • 按合同总额降序排列。

Signals

GitHub stars
64
Forks
13
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
major-contract-summary
Source
github.com/ftshare-lab/ftshare-skill