Add ROI to botPaginated

This commit is contained in:
2025-10-06 23:54:59 +07:00
parent 51fbef6072
commit 85000644a6
10 changed files with 69 additions and 84 deletions

View File

@@ -365,7 +365,7 @@ public class BotController : BaseController
string? name = null,
string? ticker = null,
string? agentName = null,
string sortBy = "CreateDate",
BotSortableColumn sortBy = BotSortableColumn.CreateDate,
string sortDirection = "Desc")
{
try
@@ -456,6 +456,7 @@ public class BotController : BaseController
? item.TradeWins / (item.TradeWins + item.TradeLosses)
: 0,
ProfitAndLoss = item.Pnl,
Roi = item.Roi,
Identifier = item.Identifier.ToString(),
AgentName = item.User.AgentName,
CreateDate = item.CreateDate,