Add Genetic workers

This commit is contained in:
2025-07-10 19:15:57 +07:00
parent c2c181e417
commit 0b4f2173e0
20 changed files with 1752 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
using Discord.Commands;
using Discord.WebSocket;
using FluentValidation;
using Managing.Application;
using Managing.Application.Abstractions;
using Managing.Application.Abstractions.Repositories;
using Managing.Application.Abstractions.Services;
@@ -77,6 +78,7 @@ public static class ApiBootstrap
services.AddSingleton<IUserService, UserService>();
services.AddSingleton<IWorkflowService, WorkflowService>();
services.AddSingleton<IFlowFactory, FlowFactory>();
services.AddSingleton<IGeneticService, GeneticService>();
services.AddTransient<ICommandHandler<OpenPositionRequest, Position>, OpenPositionCommandHandler>();
services.AddTransient<ICommandHandler<ClosePositionCommand, Position>, ClosePositionCommandHandler>();
@@ -128,6 +130,7 @@ public static class ApiBootstrap
services.AddTransient<ICandleRepository, CandleRepository>();
services.AddTransient<IAccountRepository, AccountRepository>();
services.AddTransient<IBacktestRepository, BacktestRepository>();
services.AddTransient<IGeneticRepository, GeneticRepository>();
services.AddTransient<ITradingRepository, TradingRepository>();
services.AddTransient<ISettingsRepository, SettingsRepository>();
services.AddTransient<IUserRepository, UserRepository>();