Fase 5 — Strategie, portafoglio e rischio #91
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user