37 lines
1.6 KiB
C#
37 lines
1.6 KiB
C#
using Managing.Infrastructure.Databases.MongoDb.Attributes;
|
|
using Managing.Infrastructure.Databases.MongoDb.Configurations;
|
|
using static Managing.Common.Enums;
|
|
|
|
namespace Managing.Infrastructure.Databases.MongoDb.Collections
|
|
{
|
|
[BsonCollection("GeneticRequests")]
|
|
public class GeneticRequestDto : Document
|
|
{
|
|
public string RequestId { get; set; }
|
|
public UserDto User { get; set; }
|
|
public DateTime? CompletedAt { get; set; }
|
|
public string Status { get; set; }
|
|
public Ticker Ticker { get; set; }
|
|
public Timeframe Timeframe { get; set; }
|
|
public DateTime StartDate { get; set; }
|
|
public DateTime EndDate { get; set; }
|
|
public decimal Balance { get; set; }
|
|
public int PopulationSize { get; set; }
|
|
public int Generations { get; set; }
|
|
public double MutationRate { get; set; }
|
|
public GeneticSelectionMethod SelectionMethod { get; set; }
|
|
public GeneticCrossoverMethod CrossoverMethod { get; set; }
|
|
public GeneticMutationMethod MutationMethod { get; set; }
|
|
public int ElitismPercentage { get; set; }
|
|
public double MaxTakeProfit { get; set; }
|
|
public List<IndicatorType> EligibleIndicators { get; set; } = new();
|
|
public double? BestFitness { get; set; }
|
|
public string? BestIndividual { get; set; }
|
|
public string? ErrorMessage { get; set; }
|
|
public string? ProgressInfo { get; set; }
|
|
public string? BestChromosome { get; set; }
|
|
public double? BestFitnessSoFar { get; set; }
|
|
public int CurrentGeneration { get; set; }
|
|
public DateTime? UpdatedAt { get; set; }
|
|
}
|
|
} |