Add stats for kaigen
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
29
src/Managing.Api/Models/Responses/TopStrategiesViewModel.cs
Normal file
29
src/Managing.Api/Models/Responses/TopStrategiesViewModel.cs
Normal 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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user