From 716311e2a34ccc130256aa7e6a3da7b9f110e56a Mon Sep 17 00:00:00 2001 From: shangzhongyuan Date: Tue, 5 Aug 2025 17:45:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E5=86=B2=E4=BA=A4=E6=98=93=E6=94=B6?= =?UTF-8?q?=E7=9B=98=E6=8C=81=E4=BB=93=E5=90=8D=E4=B9=89=E6=9C=AC=E9=87=91?= =?UTF-8?q?=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpDAL/Modules/CalculationModule/HedgePnlCalc.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YLErpDAL/Modules/CalculationModule/HedgePnlCalc.cs b/YLErpDAL/Modules/CalculationModule/HedgePnlCalc.cs index c09ad06a..34932bb2 100644 --- a/YLErpDAL/Modules/CalculationModule/HedgePnlCalc.cs +++ b/YLErpDAL/Modules/CalculationModule/HedgePnlCalc.cs @@ -264,7 +264,7 @@ namespace YLErp.Modules.CalculationModule newPnl.RealizedPnL += closeProfit; //减去持仓成本 - newPnl.Cost += closeAmount; + newPnl.Cost -= newTrade.TradeAmount* newTrade.TradeSinglePrice; //减去持仓份额 newPnl.Notional -= closeNotional * posSign;