Remove playground because not working anymore and make backtest properties required
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user