Service for managing and validating trading strategy configurations.
Maintains a registry of all configured strategies, validates their existence before operations, and ensures associated risk profiles are valid. Uses memoization for performance.
Key features:
constructor();
loggerService: any
riskValidationService: any
_strategyMap: any
addStrategy: (strategyName: string, strategySchema: IStrategySchema) => void
Adds a strategy schema to the validation service
validate: (strategyName: string, source: string) => void
Validates the existence of a strategy and its risk profile (if configured)
list: () => Promise<IStrategySchema[]>
Returns a list of all registered strategy schemas