Add best agent by pnl

This commit is contained in:
2025-08-15 22:35:29 +07:00
parent e73af1dd3a
commit 137444a045
6 changed files with 200 additions and 4 deletions

View File

@@ -65,4 +65,51 @@ namespace Managing.Api.Models.Responses
/// </summary>
public List<StrategyRoiPerformance> TopStrategiesByRoi { get; set; } = new List<StrategyRoiPerformance>();
}
/// <summary>
/// Represents a high-performing agent with its name and PnL value
/// </summary>
public class AgentPerformance
{
/// <summary>
/// Name of the agent
/// </summary>
public string AgentName { get; set; }
/// <summary>
/// Profit and Loss value of the agent
/// </summary>
public decimal PnL { get; set; }
/// <summary>
/// Total ROI percentage of the agent
/// </summary>
public decimal TotalROI { get; set; }
/// <summary>
/// Total volume traded by the agent
/// </summary>
public decimal TotalVolume { get; set; }
/// <summary>
/// Number of active strategies for this agent
/// </summary>
public int ActiveStrategiesCount { get; set; }
/// <summary>
/// Total balance including USDC and open position values
/// </summary>
public decimal TotalBalance { get; set; }
}
/// <summary>
/// View model containing the top performing agents by PnL
/// </summary>
public class TopAgentsByPnLViewModel
{
/// <summary>
/// List of the top performing agents by PnL
/// </summary>
public List<AgentPerformance> TopAgentsByPnL { get; set; } = new List<AgentPerformance>();
}
}