Fase 5 — Strategie, portafoglio e rischio #91

Merged
Alby96 merged 8 commits from fase-5 into main 2026-11-11 17:30:11 +01:00
Showing only changes of commit dc1ba4e701 - Show all commits
+6
View File
@@ -295,6 +295,12 @@ internal sealed partial class AnubisHost(
overrides?.MarketHttp, overrides?.MarketSockets, logger, settings, (password, code, ct) => access.ReauthenticateAsync(password, code, ct),
Path.Combine(Config.Data.Root, "STOP"))
: null;
if (_trading is not null)
{
// Before "ready": the Strategie page must never show a strategy without its backtest outcome (SPEC 12.3).
await _trading.LoadOutcomesAsync(cancellationToken).ConfigureAwait(false);
}
// The laboratory computes on its own thread and reads only local data; the demo shows appendix F and runs none.
_lab = options.Demo ? null : new Laboratory(_db, clock, Config.Data.Research, logger);
_services = new AppServices(_db, settings, secrets, access, backups, scheduler, _market, _trading, _lab);