refactor: save current workspace state including FinlyticAnalyzer fixes, FinlyticApp trade route alignment, and DTO audit documentation

This commit is contained in:
2026-08-12 18:30:42 +02:00
parent a9553e9fbf
commit 3d8af3940b
163 changed files with 3421 additions and 1751 deletions
@@ -103,6 +103,7 @@ public class ActiveTradeMonitorWorker : BackgroundService
using var scope = _scopeFactory.CreateScope();
var n8nService = scope.ServiceProvider.GetRequiredService<IN8nEvaluationService>();
var vixService = scope.ServiceProvider.GetRequiredService<IVixTrackerService>();
foreach (var trade in trades)
{
@@ -110,7 +111,7 @@ public class ActiveTradeMonitorWorker : BackgroundService
try
{
await ProcessTradeAsync(trade, n8nService, cancellationToken);
await ProcessTradeAsync(trade, n8nService, vixService, cancellationToken);
}
catch (Exception ex)
{
@@ -121,7 +122,7 @@ public class ActiveTradeMonitorWorker : BackgroundService
}
private async Task ProcessTradeAsync(TradeProposalDto trade, IN8nEvaluationService n8nService,
CancellationToken cancellationToken)
IVixTrackerService vixService, CancellationToken cancellationToken)
{
// 1. Get Live Price
var livePriceReq = new IsinRequest(trade.Isin);
@@ -210,8 +211,8 @@ public class ActiveTradeMonitorWorker : BackgroundService
},
MarketContext = new MarketContextInfo
{
Vix = trade.VixValue,
MarketRegime = trade.VixRegime.ToString()
Vix = (double)vixService.CurrentVix,
MarketRegime = vixService.CurrentRegime.ToString()
},
UserPreferences = new UserPreferencesInfo
{