Fix agent grain calculation
This commit is contained in:
@@ -24,49 +24,6 @@ namespace Managing.Application.Bots.Models
|
||||
/// </summary>
|
||||
[Id(4)]
|
||||
public CachedBalanceData? CachedBalanceData { get; set; } = null;
|
||||
|
||||
// Event-driven metrics for real-time updates
|
||||
/// <summary>
|
||||
/// Total PnL calculated from position events
|
||||
/// </summary>
|
||||
[Id(5)]
|
||||
public decimal TotalPnL { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Total volume calculated from position events
|
||||
/// </summary>
|
||||
[Id(6)]
|
||||
public decimal TotalVolume { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Total wins count from closed positions
|
||||
/// </summary>
|
||||
[Id(7)]
|
||||
public int Wins { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Total losses count from closed positions
|
||||
/// </summary>
|
||||
[Id(8)]
|
||||
public int Losses { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Total fees paid from position events
|
||||
/// </summary>
|
||||
[Id(9)]
|
||||
public decimal TotalFees { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Active strategies count (updated by bot registration/unregistration)
|
||||
/// </summary>
|
||||
[Id(10)]
|
||||
public int ActiveStrategiesCount { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Last time the summary was updated
|
||||
/// </summary>
|
||||
[Id(11)]
|
||||
public DateTime LastSummaryUpdate { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user