允许港股执行账户显式启用分红与PIT估值 - #23
Merged
Merged
Conversation
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.
HKDailyExecution此前固定创建legacy账本,港股应用无法通过公开构造接口使用已实现的三阶段分红和PIT估值。本次增加三个可选参数并交由ExactAccountLedger验证,默认交易、费用与交收行为保持不变。
新增行为测试覆盖显式scenario模式的T+2可用资金、非法模式组合、生产验证器接受/拒绝,以及买入后应收增加NAV但不增加可花HKD、拒绝时整账本回滚。HK应用调度和真实来源准入不在本次变更中。
验证:341项测试通过,总覆盖94.69%,10个核心模块纯分支覆盖均至少90%;Ruff与47文件格式检查通过。默认港股买卖/交收流程的现金、17笔交易和journal哈希与改动前一致,四份既有golden哈希不变。