
hjhanandClaude Opus 4.7
db447aa584
refactor(swap): 保证金腿在 GetInterests 循环入口提前路由,融资腿分支树去除 MarginModes 依赖
- 保证金腿(5/6)在最外层路由并 continue:本金(InterestPrincipalFix×closePrecent)、
方向翻转、CalcMarginInterest 收口一处;newClosePercent 在保证金腿恒等于
closePrecent,直接传参
- 融资腿(1/2/9)分支树内 3 处 MarginModes.Contains 归零,后续融资腿改动与保证金解耦
- GetFixedRate 前移为两路共用(纯读函数,已验证无副作用)
- 有意跳过 GetFloatRate:CalcMarginInterest 纯固定利率(FundingLegRate.Fixed/
FloatRate 恒 0),浮动取价对保证金无意义;脏数据 FloatRateUnderlyingCode
缺价时不再阻断保证金结算(唯一行为变化,方向更安全)
- 验证:SwapModule 537 用例 A/B(带改/不带改)摘要完全一致(71F/459P/7S),
失败项均为本机无库环境失败;内网全量单测待跑
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-08-16 11:03:11 +08:00
..
2026-08-14 15:31:04 +08:00
2026-08-12 15:24:15 +08:00
2025-08-29 14:43:24 +08:00
2026-08-14 15:14:09 +08:00
2026-08-16 10:47:45 +08:00
2026-08-12 15:03:00 +08:00
2026-08-14 15:31:04 +08:00
2026-08-12 17:31:39 +08:00
2026-08-12 16:46:13 +08:00
2026-08-15 13:44:53 +08:00
2024-05-09 14:06:26 +08:00
2026-08-10 18:01:37 +08:00
2026-08-14 17:30:46 +08:00
2025-09-11 14:18:51 +08:00
2026-08-14 15:31:04 +08:00
2024-05-09 14:06:26 +08:00
2026-07-23 11:06:50 +08:00
2026-08-11 09:23:01 +08:00
2026-08-16 11:03:11 +08:00
2026-07-03 08:22:27 +08:00
2026-08-16 10:47:45 +08:00
2026-08-11 09:40:48 +08:00
2026-08-06 17:45:43 +08:00
2025-04-14 16:31:35 +08:00
2026-07-29 14:42:03 +08:00
2026-07-23 11:06:50 +08:00
2026-08-07 19:44:01 +08:00
2026-07-21 15:28:14 +08:00
2026-07-22 16:51:40 +08:00
2024-05-09 14:06:26 +08:00
2026-08-15 12:48:44 +08:00
2024-05-09 14:06:26 +08:00
2026-01-26 17:35:56 +08:00
2026-07-23 11:06:50 +08:00
2026-08-12 09:45:19 +08:00
2026-08-15 12:48:44 +08:00
2024-05-09 14:06:26 +08:00
2026-08-12 16:26:12 +08:00
2024-05-09 14:06:26 +08:00
2024-06-04 18:19:49 +08:00
2026-08-12 16:26:12 +08:00