From 41ff4a213535ea9626aea87795f7c131976ecac8 Mon Sep 17 00:00:00 2001 From: OpenClaw Agent Date: Sun, 15 Mar 2026 13:49:54 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20CurrentPrice=20?= =?UTF-8?q?=E8=B5=8B=E5=80=BC=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PortfolioService.cs: CurrentPrice 应该赋值为当前价格,而非今日盈亏 --- AssetManager.Services/PortfolioService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AssetManager.Services/PortfolioService.cs b/AssetManager.Services/PortfolioService.cs index 5073652..e088c24 100755 --- a/AssetManager.Services/PortfolioService.cs +++ b/AssetManager.Services/PortfolioService.cs @@ -349,7 +349,7 @@ public class PortfolioService : IPortfolioService Symbol = pos.StockCode, Amount = (int)pos.Shares, AveragePrice = (double)pos.AvgPrice, - CurrentPrice = (double)TodayProfit, + CurrentPrice = (double)CurrentPrice, TotalValue = (double)positionValueInTarget, Profit = (double)(positionValueInTarget - costInTarget), ProfitRate = ProfitRate,