Add bundle backtest refact + fix whitelist
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user