公司利润结构桑基图
SKILL.md
公司利润结构桑基图技能
根据用户输入的公司(股票代码或中文名),获取该公司最新年报的利润结构桑基图数据并呈现。
配置与登录
- 与 company-latest-report 共用
~/.config/godknows/config.json、同一套 login.sh。NOT_LOGIN 时先执行无参scripts/login.sh再重试。
工作流程
- 解析公司:股票代码直接用;中文名执行
bash <SKILL_ROOT>/scripts/companies.sh,从data[].label匹配得 ticker。 - 获取数据:
bash <SKILL_ROOT>/scripts/profit_structure.sh <ticker>。脚本会先调GET /api/filing/latest-cash-flow/{ticker}取fiscalYear、fiscalQuarter,再调GET /api/filing/profit-structure/{ticker}/{fiscalYear}/{fiscalQuarter}返回桑基图数据。 - 呈现:返回的
data含nodes、links(桑基图用)及损益字段(revenue、costOfRevenue、grossProfit、operatingExpenses、operatingIncome、netIncome 等)。以表格或简要说明列出损益结构;若有前端可渲染 nodes/links,可说明数据结构供作图。
API
GET /api/filing/profit-structure/{ticker}/{fiscalYear}/{fiscalQuarter}返回 ProfitStructureVO(nodes、links、营收/成本/毛利/费用/净利润等)。财年与季度由脚本从 latest-cash-flow 自动解析。
Weekly Installs
1
Source
http://whatis.vip:9011First Seen
10 days ago
Installed on
amp1
cline1
openclaw1
opencode1
cursor1
kimi-cli1