namespace Predictalytics.Domain.Entities;

public class TraderWindowMetrics
{
    public int Id { get; set; }
    public int TraderId { get; set; }
    public Trader? Trader { get; set; }

    public DateTime WindowStart { get; set; }
    public DateTime WindowEnd { get; set; }

    public int ClosedMarkets { get; set; }
    public decimal WinRate { get; set; }
    
    public decimal AvgReturnPct { get; set; }
    public decimal MedianWinReturnPct { get; set; }
    public decimal MedianLossReturnPct { get; set; }
    public decimal? ProfitFactor { get; set; }
    
    public DateTime ComputedAt { get; set; } = DateTime.UtcNow;
}
