Repository navigation
Conversation
This was referenced Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动说明
为 #26 增加第二条真实的美股财报数据路径。现有 Massive provider 新增
company.financials,从当前正式的 Income Statements、Balance Sheets、Cash Flow Statements API 读取季度或年度报表,并把可直接对应的字段映射到 Folio 的财报模型。保留财期结束日和披露日期;没有直接等价的字段不做猜测映射。与 #314 配合后,财报可进入双 provider 的字段级核对、Agent 冲突提示与证据面板。两个 PR 已在本地临时合并测试,无冲突。
正确性与限制
/stocks/financials/v1/接口。官方文档:损益表、资产负债表、现金流量表。qf(季度)和af(年度);其他 Longbridge 特有口径返回UNSUPPORTED_CAPABILITY。NOT_AUTHORIZED映射为ACCESS_DENIED。测试报告
环境:Bun 1.4.2 / macOS 15.7.7。
定向测试覆盖三个 endpoint 的 URL 与过滤参数、字段映射、财期与披露日期、同财期优先最新披露、拒绝混入其他股票、年度口径、币种缺失时不猜测、套餐拒绝及不支持的报告口径。无可见 UI 变化。
协作
Related to #26。该 Issue 当前由其他贡献者认领,请维护者与认领者确认两个 PR 的合并顺序及范围。