Add platform grain

This commit is contained in:
2025-08-14 19:44:33 +07:00
parent 345d76e06f
commit 4a45d6c970
13 changed files with 2324 additions and 59 deletions

View File

@@ -71,6 +71,74 @@ namespace Managing.Api.Models.Responses
/// Total volume traded across all agents in the last 24 hours in USD
/// </summary>
public decimal TotalPlatformVolumeLast24h { get; set; }
/// <summary>
/// Total open interest across all positions in USD
/// </summary>
public decimal TotalOpenInterest { get; set; }
/// <summary>
/// Total number of open positions across all strategies
/// </summary>
public int TotalPositionCount { get; set; }
// 24-hour changes
/// <summary>
/// Change in agent count over the last 24 hours
/// </summary>
public int AgentsChange24h { get; set; }
/// <summary>
/// Change in strategy count over the last 24 hours
/// </summary>
public int StrategiesChange24h { get; set; }
/// <summary>
/// Change in PnL over the last 24 hours
/// </summary>
public decimal PnLChange24h { get; set; }
/// <summary>
/// Change in volume over the last 24 hours
/// </summary>
public decimal VolumeChange24h { get; set; }
/// <summary>
/// Change in open interest over the last 24 hours
/// </summary>
public decimal OpenInterestChange24h { get; set; }
/// <summary>
/// Change in position count over the last 24 hours
/// </summary>
public int PositionCountChange24h { get; set; }
// Breakdowns
/// <summary>
/// Volume breakdown by asset/ticker
/// </summary>
public Dictionary<string, decimal> VolumeByAsset { get; set; } = new();
/// <summary>
/// Position count breakdown by asset/ticker
/// </summary>
public Dictionary<string, int> PositionCountByAsset { get; set; } = new();
/// <summary>
/// Position count breakdown by direction (Long/Short)
/// </summary>
public Dictionary<string, int> PositionCountByDirection { get; set; } = new();
// Metadata
/// <summary>
/// When the data was last updated
/// </summary>
public DateTime LastUpdated { get; set; }
/// <summary>
/// When the last 24-hour snapshot was taken
/// </summary>
public DateTime Last24HourSnapshot { get; set; }
}
/// <summary>