Implement A1, A6, A2: Add TraderPosition entity, PositionPnLEngine (Average-Cost-Method), Market-level WinRate, and integrate with TraderAnalyticsWorker

This commit is contained in:
Richard
2026-07-03 11:16:42 +02:00
parent 5fe7ab63ac
commit e994e1ce72
10 changed files with 1227 additions and 78 deletions
@@ -1,5 +1,6 @@
using Predictalytics.Application.Interfaces;
using Predictalytics.Application.Services;
using Predictalytics.Infrastructure.Services;
using Predictalytics.Domain.Interfaces;
using Predictalytics.Infrastructure.Data;
using Predictalytics.Infrastructure.Data.Repositories;
@@ -63,6 +64,7 @@ public static class DependencyInjection
services.AddScoped<IAlertRepository, AlertRepository>();
// Application Services
services.AddScoped<IPositionPnLEngine, PositionPnLEngine>();
services.AddScoped<IScoringService, ScoringService>();
services.AddScoped<IDiscoveryService, DiscoveryService>();
services.AddScoped<IAlertService, AlertService>();