hjhan
a26f848287
refactor(return-leg): 抽取 MtmCalc 标的端盯市计算
把 SwapEodPositionService 4处重复的 UnderlyingMarketValue 公式和
4处 PosiMtmPnL 公式抽成 MtmCalc 纯函数:
- MarketValue(price, qty, contractSize, shortRatio): 标的市值
- UnrealizedPnl(price, costGrossPrice, qty, contractSize, shortRatio, ratio): 盯市未实现盈亏
原代码4处副本(1731/1813/1898/2101 + 1741/1814/1899/2102)全部替换。
验证: 编译0错误, 全量503测试7失败(基线一致)。
2026-08-11 10:45:43 +08:00
..
2025-08-29 14:43:24 +08:00
2026-08-10 22:09:09 +08:00
2026-08-11 10:06:27 +08:00
2026-08-11 10:45:43 +08:00
2024-05-09 14:06:26 +08:00
2026-08-10 18:01:37 +08:00
2025-09-11 14:18:51 +08:00
2026-08-08 16:32:16 +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-11 10:30:44 +08:00
2026-07-03 08:22:27 +08:00
2026-08-11 10:45:43 +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
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-08 13:32:22 +08:00
2026-08-05 15:55:01 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-06-04 18:19:49 +08:00