This commit is contained in:
Boki 2025-06-11 10:35:15 -04:00
parent 8955544593
commit 9d38f9a7b6
91 changed files with 2224 additions and 1400 deletions

View file

@ -1,4 +1,3 @@
import { create } from 'domain';
import { DataFrame } from '@stock-bot/data-frame';
import { EventBus } from '@stock-bot/event-bus';
import { getLogger } from '@stock-bot/logger';
@ -198,7 +197,7 @@ export class HybridMode extends ExecutionMode {
private overrideIndicatorCalculations(eventMode: EventMode): void {
// Override the event mode's indicator calculations to use pre-computed values
// This is a simplified approach - in production you'd want a more sophisticated interface
const originalCalculateIndicators = (eventMode as any).calculateIndicators;
const _originalCalculateIndicators = (eventMode as any).calculateIndicators;
(eventMode as any).calculateIndicators = (symbol: string, index: number) => {
const indicators: Record<string, number> = {};

View file

@ -19,7 +19,7 @@ export class LiveMode extends ExecutionMode {
return new Date(); // Real time
}
async getMarketData(symbol: string): Promise<MarketData> {
async getMarketData(_symbol: string): Promise<MarketData> {
// TODO: Get live market data
throw new Error('Live market data fetching not implemented yet');
}