Add bundle backtest refact + fix whitelist

This commit is contained in:
2025-10-12 14:40:20 +07:00
parent 4543246871
commit 5acc77650f
21 changed files with 2961 additions and 628 deletions

View File

@@ -1,11 +1,41 @@
using System.ComponentModel.DataAnnotations;
using Managing.Api.Controllers;
using Managing.Domain.Backtests;
using static Managing.Common.Enums;
namespace Managing.Api.Models.Requests;
/// <summary>
/// Request model for running bundle backtests with variant lists instead of individual requests
/// </summary>
public class RunBundleBacktestRequest
{
[Required] public string Name { get; set; } = string.Empty;
/// <summary>
/// Display name for the bundle backtest
/// </summary>
[Required]
public string Name { get; set; } = string.Empty;
[Required] public List<RunBacktestRequest> Requests { get; set; } = new();
/// <summary>
/// Universal configuration that applies to all backtests in the bundle
/// </summary>
[Required]
public BundleBacktestUniversalConfig UniversalConfig { get; set; } = new();
/// <summary>
/// List of DateTime ranges to test (each range will generate a separate backtest)
/// </summary>
[Required]
public List<DateTimeRange> DateTimeRanges { get; set; } = new();
/// <summary>
/// List of money management configurations to test (each will generate a separate backtest)
/// </summary>
[Required]
public List<MoneyManagementVariant> MoneyManagementVariants { get; set; } = new();
/// <summary>
/// List of tickers to test (each will generate a separate backtest)
/// </summary>
[Required]
public List<Ticker> TickerVariants { get; set; } = new();
}