Variable ExecutionContextServiceConst

ExecutionContextService: new () => { context: IExecutionContext } & Omit<
    new (context: IExecutionContext) => { context: IExecutionContext },
    "prototype",
> & di_scoped.IScopedClassRun<[context: IExecutionContext]>

Scoped service for execution context propagation.

Uses di-scoped for implicit context passing without explicit parameters. Context includes symbol, when (timestamp), and backtest flag.

Used by GlobalServices to inject context into operations.

ExecutionContextService.runInContext(
async () => {
// Inside this callback, context is automatically available
return await someOperation();
},
{ symbol: "BTCUSDT", when: new Date(), backtest: true }
);