Add stats for kaigen

This commit is contained in:
2025-04-24 20:33:13 +07:00
parent c22c925087
commit 86692b60fa
4 changed files with 157 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
namespace Managing.Api.Models.Responses
{
/// <summary>
/// View model representing statistics about active bots
/// </summary>
public class StrategiesStatisticsViewModel
{
/// <summary>
/// Total number of bots currently running
/// </summary>
public int TotalStrategiesRunning { get; set; }
/// <summary>
/// Change in bot count over the last 24 hours
/// </summary>
public int ChangeInLast24Hours { get; set; }
}
}

View File

@@ -0,0 +1,29 @@
namespace Managing.Api.Models.Responses
{
/// <summary>
/// Represents a high-performing strategy with its name and PnL value
/// </summary>
public class StrategyPerformance
{
/// <summary>
/// Name of the strategy bot
/// </summary>
public string StrategyName { get; set; }
/// <summary>
/// Profit and Loss value of the strategy
/// </summary>
public decimal PnL { get; set; }
}
/// <summary>
/// View model containing the top performing strategies by ROI
/// </summary>
public class TopStrategiesViewModel
{
/// <summary>
/// List of the top performing strategies by ROI
/// </summary>
public List<StrategyPerformance> TopStrategies { get; set; } = new List<StrategyPerformance>();
}
}