refactor(orchestrator): require canonical research contracts (CL14)
This commit is contained in:
parent
bc2b8a89da
commit
21666242f4
37 changed files with 151 additions and 319 deletions
|
|
@ -14,7 +14,7 @@ import type { BacktestConfig } from '../types';
|
|||
import { BacktestMarket } from './BacktestMarket';
|
||||
import { BacktestPlayback, type PlaybackProgress } from './BacktestPlayback';
|
||||
import { BacktestReport } from './BacktestReport';
|
||||
import type { BacktestExecutionEngine } from './execution-engine';
|
||||
import type { LegacyBacktestExecutionEngine } from './execution-engine';
|
||||
import { closedTradesSchema } from './native-result';
|
||||
import { backtestStrategies } from './strategy-plan';
|
||||
import type { BacktestResult } from './typescript-result';
|
||||
|
|
@ -23,7 +23,7 @@ export type { BacktestResult } from './typescript-result';
|
|||
const speeds = { max: null, realtime: 1, '2x': 2, '5x': 5, '10x': 10 } as const;
|
||||
|
||||
/** Composes one run's playback, market projection and report. The runner owns durable lifecycle. */
|
||||
export class BacktestEngine extends EventEmitter implements BacktestExecutionEngine {
|
||||
export class BacktestEngine extends EventEmitter implements LegacyBacktestExecutionEngine {
|
||||
private playback?: BacktestPlayback;
|
||||
private active?: Promise<BacktestResult>;
|
||||
private completedReport?: BacktestReport;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue