hjhan
a86b496f87
test(margin): 新增 CalcMarginInterest 影子对账——保证金计息消除 orginPv/差分,与旧管线数值一致
- 新增 CalcMarginInterest(SwapDealService):保证金专属计息,复用 SimpleInterestAccrual 纯函数,notional 直接取保证金余额(EOD=昨日终本金/盘中=今日本金),消除融资腿差分公式 accrualBasis=TdInterestPrincipal+posiPrincipal-orginPv 与 orginPv 维度 hack(对保证金 accrualBasis 恒等于 posiPrincipal,差分冗余)
- 保留累计语义(priorAccrued+增量),满足下游 SwapEodPositionService 字段契约
- 新增 MarginInterestShadowTest:5 场景对账(EOD 续接/首日、盘中全平/部分平仓/互换),新旧 InterestAmount/TdInterestAmount 严格一致
- 本提交仅影子对账,生产路径未改(GetInterests 仍走 CalcEodInterest/CalcUnwindInterest);下一步提交2 切换生产 + 删 orginPv hack
零生产风险;编译 0 错误;影子对账 5/5 + 现有保证金/利息回归 60/60 通过。
2026-08-13 09:37:42 +08:00
..
2026-08-12 18:29:51 +08:00
2026-08-13 08:51:21 +08:00
2026-08-13 09:37:42 +08:00
2026-08-11 16:59:22 +08:00
2026-07-17 10:59:18 +08:00
2026-08-12 18:23:51 +08:00
2026-07-23 11:16:11 +08:00
2026-07-27 13:18:32 +08:00
2026-07-23 11:16:11 +08:00
2026-08-12 18:02:36 +08:00
2026-07-23 11:16:11 +08:00
2026-07-23 11:16:11 +08:00
2026-08-12 18:02:36 +08:00
2026-08-07 17:44:04 +08:00
2026-08-09 22:28:40 +08:00
2026-08-09 22:28:40 +08:00
2026-07-23 11:16:11 +08:00
2026-08-09 22:28:40 +08:00
2026-07-17 10:59:18 +08:00
2026-07-20 18:41:16 +08:00
2026-08-12 18:08:47 +08:00
2026-07-02 09:37:18 +08:00
2026-07-21 15:28:15 +08:00
2026-07-21 15:28:15 +08:00
2026-07-17 08:23:50 +08:00
2026-08-12 16:26:12 +08:00
2026-07-03 09:38:05 +08:00
2026-07-03 09:26:13 +08:00
2026-07-02 09:20:41 +08:00
2026-07-23 11:16:11 +08:00
2026-08-10 13:17:12 +08:00
2026-08-08 15:46:54 +08:00
2026-07-03 09:38:05 +08:00
2026-07-01 17:07:55 +08:00
2026-08-09 16:06:09 +08:00
2026-06-26 09:13:37 +08:00
2026-02-13 18:12:00 +08:00
2026-07-17 08:40:19 +08:00
2026-07-21 15:28:13 +08:00
2026-07-21 15:28:14 +08:00
2026-08-06 14:44:30 +08:00
2026-08-08 09:31:43 +08:00
2026-08-11 09:57:20 +08:00
2026-07-01 13:38:24 +08:00
2026-08-09 22:28:40 +08:00
2026-07-21 15:28:17 +08:00
2026-07-21 15:28:13 +08:00
2026-08-08 09:31:43 +08:00
2026-08-13 08:51:21 +08:00
2026-07-16 11:09:47 +08:00
2026-08-11 13:00:52 +08:00
2026-08-12 13:40:47 +08:00
2026-08-07 13:46:24 +08:00
2026-07-21 15:28:13 +08:00
2026-07-03 18:12:52 +08:00
2026-08-12 18:23:51 +08:00
2026-07-03 09:26:13 +08:00
2026-07-03 09:20:59 +08:00