Skip to content

feat: 接入 Massive 财报作为第二数据源 - #315

Merged
helsome merged 2 commits into
helsome:mainfrom
13pgpg:feat/massive-financial-statements
Oct 18, 2026
Merged

helsome merged 2 commits into
helsome:mainfrom
13pgpg:feat/massive-financial-statements

Conversation

@13pgpg

@13pgpg 13pgpg commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

改动说明

为 #26 增加第二条真实的美股财报数据路径。现有 Massive provider 新增 company.financials,从当前正式的 Income Statements、Balance Sheets、Cash Flow Statements API 读取季度或年度报表,并把可直接对应的字段映射到 Folio 的财报模型。保留财期结束日和披露日期;没有直接等价的字段不做猜测映射。

与 #314 配合后,财报可进入双 provider 的字段级核对、Agent 冲突提示与证据面板。两个 PR 已在本地临时合并测试,无冲突。

正确性与限制

测试报告

环境:Bun 1.4.2 / macOS 15.7.7。

本 PR 单独:bun test packages/shared/src/providers/massive/massive.test.ts
→ 22 pass / 0 fail(108 assertions)

与 #314 本地临时合并:4 个关键测试文件
→ 43 pass / 0 fail(176 assertions)

与 #314 本地临时合并:core / i18n / shared / ui / electron typecheck
→ 全部通过

git diff --check → 通过

定向测试覆盖三个 endpoint 的 URL 与过滤参数、字段映射、财期与披露日期、同财期优先最新披露、拒绝混入其他股票、年度口径、币种缺失时不猜测、套餐拒绝及不支持的报告口径。无可见 UI 变化。

协作

Related to #26。该 Issue 当前由其他贡献者认领,请维护者与认领者确认两个 PR 的合并顺序及范围。

@helsome helsome left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

独立审查通过。本轮精确 HEAD focused tests 22 pass / 0 fail、类型检查通过;按当前顺序累计组合完整测试 1817 pass / 7 skip / 0 fail,全 typecheck 与 i18n 通过。生产变更文件高信号 secret 扫描无命中(非完整历史扫描)。本 PR 按明确范围验收,不替代父 Issue 未完成的真实模型/UI/其他范围验收。

@helsome
helsome merged commit 127d729 into helsome:main Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants