Fix active strategy count on plateform surmmary
This commit is contained in:
@@ -45,29 +45,6 @@ public class PlatformSummaryGrainState
|
||||
|
||||
// Flag to track if volume has been updated by events (not from bot strategies)
|
||||
[Id(15)] public bool VolumeUpdatedByEvents { get; set; }
|
||||
|
||||
// Historical strategy activation/deactivation events
|
||||
[Id(16)] public List<StrategyEvent> StrategyEvents { get; set; } = new();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Strategy activation/deactivation event
|
||||
/// </summary>
|
||||
[GenerateSerializer]
|
||||
public class StrategyEvent
|
||||
{
|
||||
[Id(0)] public DateTime Timestamp { get; set; }
|
||||
[Id(1)] public StrategyEventType EventType { get; set; }
|
||||
[Id(2)] public int NetChange { get; set; } // +1 for activation, -1 for deactivation
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Type of strategy event
|
||||
/// </summary>
|
||||
public enum StrategyEventType
|
||||
{
|
||||
Activation,
|
||||
Deactivation
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user