Fix active strategy count on plateform surmmary

This commit is contained in:
2025-11-21 20:02:33 +07:00
parent 153e170ca4
commit 476bcebfe9
2 changed files with 37 additions and 70 deletions

View File

@@ -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>