work on new engine

This commit is contained in:
Boki 2025-07-04 11:24:27 -04:00
parent 44476da13f
commit a1e5a21847
126 changed files with 3425 additions and 6695 deletions

View file

@ -1,9 +1,9 @@
import { EventEmitter } from 'events';
import { IServiceContainer } from '@stock-bot/di';
import { BacktestEngine as RustEngine } from '@stock-bot/core';
import { BacktestConfig, BacktestResult } from '../types';
import { BacktestEngine as RustEngine } from '@stock-bot/engine';
import { EventEmitter } from 'events';
import { StorageService } from '../services/StorageService';
import { StrategyExecutor, SMACrossoverStrategy } from '../strategies/StrategyExecutor';
import { SMACrossoverStrategy, StrategyExecutor } from '../strategies/StrategyExecutor';
import { BacktestConfig, BacktestResult } from '../types';
/**
* Adapter that bridges the orchestrator with the Rust backtest engine
@ -208,7 +208,7 @@ export class RustBacktestAdapter extends EventEmitter {
}
private registerStrategy(strategyName: string, parameters: any): void {
if (!this.currentEngine) return;
if (!this.currentEngine) {return;}
this.container.logger.info('Registering strategy', {
strategyName,