Add best agent by pnl
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user