Add volume history to platform summary
This commit is contained in:
@@ -119,4 +119,29 @@ public class PlatformSummaryViewModel
|
||||
/// </summary>
|
||||
[Id(17)]
|
||||
public required DateTime Last24HourSnapshot { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Daily volume history for the last 30 days for chart visualization
|
||||
/// </summary>
|
||||
[Id(18)]
|
||||
public required List<VolumeHistoryPoint> VolumeHistory { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Represents a volume data point for historical charting
|
||||
/// </summary>
|
||||
[GenerateSerializer]
|
||||
public class VolumeHistoryPoint
|
||||
{
|
||||
/// <summary>
|
||||
/// Date of the volume measurement
|
||||
/// </summary>
|
||||
[Id(0)]
|
||||
public required DateTime Date { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Total volume for that date in USD
|
||||
/// </summary>
|
||||
[Id(1)]
|
||||
public required decimal Volume { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user