Update ProfitAndLoss calculation in BotController and DataController to use NetPnL

- Changed the ProfitAndLoss property assignment from item.Pnl to item.NetPnL in both BotController and DataController, ensuring consistency in profit and loss reporting across the application.
This commit is contained in:
2026-01-08 07:01:49 +07:00
parent 3f1d102452
commit 8d4be59d10
2 changed files with 2 additions and 2 deletions

View File

@@ -1028,7 +1028,7 @@ public class DataController : ControllerBase
WinRate = (item.TradeWins + item.TradeLosses) != 0
? item.TradeWins / (item.TradeWins + item.TradeLosses)
: 0,
ProfitAndLoss = item.Pnl,
ProfitAndLoss = item.NetPnL,
Roi = item.Roi,
Identifier = item.Identifier.ToString(),
AgentName = item.User.AgentName,