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:
@@ -539,7 +539,7 @@ public class BotController : BaseController
|
||||
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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user