refactor(return-leg): QuantityRollforward 改名 QtyRollforward
代码里统一用 Qty 表示数量, 命名更简洁。 文件/类/测试类同步改名: Quantity→Qty。
This commit is contained in:
@@ -1978,7 +1978,7 @@ namespace YLErp.Modules.SwapModule
|
||||
var openFlowEvents = unwindEvents.Where(x => x.EventType == (int)SwapFlowEventTypeEnum.开仓).ToList();
|
||||
decimal unwindQty = unwindFlowEvents.Sum(s => s.Quantity);
|
||||
decimal openQty = openFlowEvents.Sum(s => s.Quantity);
|
||||
curretEod.PosiQuantity = QuantityRollforward.Calc(eod.PosiQuantity, openQty, unwindQty);
|
||||
curretEod.PosiQuantity = QtyRollforward.Calc(eod.PosiQuantity, openQty, unwindQty);
|
||||
if (unwindEvents.Count == 0)
|
||||
{
|
||||
curretEod.PosiNetPrice = position.PosiNetPrice;
|
||||
|
||||
Reference in New Issue
Block a user