hjhan
82fb5e5916
refactor(margin): SwapDealService 5处保证金判断收敛到 MarginModes
把 5 处 inline 的 InterestModeEnum==5||6 判断改为 MarginModes.Contains:
- :99 前端参考计算分流(MarginLegs vs InterestLegs)
- :680 ResolveInterestLegPositions 持仓对齐
- :716 ResolveInterestLegPositionsAsOf 未来持仓 LINQ Where
- :722 ResolveInterestLegPositionsAsOf if 判断
- :2023 平仓 SwapMarginAmount 汇总
- :2441 UpdateInitalPosition 平仓递减
仅剩 CalcNotionalByMode 的 case 标签(switch case 须常量,无法用 Contains)。
SwapDealService 内 InterestModeEnum.初始预付金/追加预付金 引用: 10处→2处(case标签)。
验证: 编译0错误, 全量489测试7失败(基线一致)。
2026-08-11 10:30:44 +08:00
..
2026-04-21 15:49:44 +08:00
2026-07-30 14:46:07 +08:00
2024-05-09 14:06:26 +08:00
2026-08-05 15:55:01 +08:00
2026-07-31 14:49:52 +08:00
2024-05-09 14:06:26 +08:00
2026-07-31 14:49:52 +08:00
2026-03-24 10:21:33 +08:00
2025-09-09 11:39:12 +08:00
2024-05-22 17:59:07 +08:00
2026-07-31 15:06:16 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-08-11 09:57:20 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-08-05 15:55:01 +08:00
2024-05-09 14:06:26 +08:00
2026-03-25 10:24:48 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-04-29 17:50:15 +08:00
2024-05-09 14:06:26 +08:00
2026-08-03 17:44:25 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-07-17 13:35:23 +08:00
2026-08-06 13:09:27 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-08-05 14:39:01 +08:00
2024-05-09 14:06:26 +08:00
2026-03-11 15:04:10 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-07-31 10:49:18 +08:00
2026-08-11 10:30:44 +08:00
2026-07-16 17:17:21 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-08-06 11:29:54 +08:00
2024-05-09 14:06:26 +08:00
2026-03-03 18:17:37 +08:00
2026-08-05 10:58:29 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00