修复最新汇率与多币种账户对账 - #2
Merged
Merged
Conversation
本次变更: - 读取汇率时按 rate_date 与 created_at 选择最新记录 - 同一天更新汇率时保留历史日期记录 - 支持通过配置的基准币推导交叉汇率 - 为混合币种账户提供按目标币种估值 - 对账时转换现金和每个持仓后再比较券商总额 - 增加 FX、历史保留、混合币种估值和 CLI 对账回归测试 验证: - pnpm -r test - pnpm typecheck - pnpm -r build - CI skill-drift check - git diff --check 范围: - 仅处理 FX 与多币种估值/对账 - 不包含个人数据、九坤、内部 endpoint、截图 OCR、release 或安全强化
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.
Summary
rate_dateandcreated_at.Scope
This PR contains only FX and mixed-currency valuation/reconciliation changes. It does not include personal data, 九坤 material, internal endpoints, screenshot/OCR workflows, release metadata, or security hardening.
Verification
pnpm -r testpnpm typecheckpnpm -r buildgit diff --check