Update status to match UI

This commit is contained in:
2025-08-14 18:08:31 +07:00
parent e4049045c3
commit 6a2e4e81b1
18 changed files with 111 additions and 62 deletions

View File

@@ -292,7 +292,7 @@ public class DataController : ControllerBase
}
// Get active bots
var activeBots = await _mediator.Send(new GetBotsByStatusCommand(BotStatus.Up));
var activeBots = await _mediator.Send(new GetBotsByStatusCommand(BotStatus.Running));
var currentCount = activeBots.Count();
// Get previous count from cache
@@ -345,7 +345,7 @@ public class DataController : ControllerBase
}
// Get active bots
var activeBots = await _mediator.Send(new GetBotsByStatusCommand(BotStatus.Up));
var activeBots = await _mediator.Send(new GetBotsByStatusCommand(BotStatus.Running));
// Calculate PnL for each bot once and store in a list of tuples
var botsWithPnL = activeBots