Remove playground because not working anymore and make backtest properties required

This commit is contained in:
2025-07-17 22:54:02 +07:00
parent 03a4e179f7
commit 6d1f0d612b
7 changed files with 67 additions and 146 deletions

View File

@@ -1,20 +1,22 @@
using System.ComponentModel.DataAnnotations;
using Managing.Domain.Bots;
namespace Managing.Api.Models.Requests;
public class LightBacktestResponse
{
public string Id { get; set; } = string.Empty;
public TradingBotConfig Config { get; set; } = new();
public decimal FinalPnl { get; set; }
public int WinRate { get; set; }
public decimal GrowthPercentage { get; set; }
public decimal HodlPercentage { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public decimal? MaxDrawdown { get; set; }
public decimal Fees { get; set; }
public double? SharpeRatio { get; set; }
public double Score { get; set; }
public string ScoreMessage { get; set; } = string.Empty;
}
[Required] public string Id { get; set; } = string.Empty;
[Required] public TradingBotConfig Config { get; set; } = new();
[Required] public decimal FinalPnl { get; set; }
[Required] public int WinRate { get; set; }
[Required] public decimal GrowthPercentage { get; set; }
[Required] public decimal HodlPercentage { get; set; }
[Required] public DateTime StartDate { get; set; }
[Required] public DateTime EndDate { get; set; }
[Required] public decimal? MaxDrawdown { get; set; }
[Required] public decimal Fees { get; set; }
[Required] public double? SharpeRatio { get; set; }
[Required] public double Score { get; set; }
[Required] public string ScoreMessage { get; set; } = string.Empty;
}