Add volume history to platform summary

This commit is contained in:
2025-08-15 21:27:07 +07:00
parent 4292e9e02f
commit b4f6dc871b
8 changed files with 67 additions and 1 deletions

View File

@@ -39,6 +39,11 @@ public interface IPlatformSummaryGrain : IGrainWithStringKey
/// </summary>
Task<int> GetTotalPositionCountAsync();
/// <summary>
/// Gets the daily volume history for the last 30 days for chart visualization
/// </summary>
Task<List<VolumeHistoryPoint>> GetVolumeHistoryAsync();
// Event handlers for immediate updates
/// <summary>
/// Updates the active strategy count

View File

@@ -130,3 +130,5 @@ public class DailySnapshot
[Id(6)]
public int TotalPositionCount { get; set; }
}