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 and actions are valid. Uses memoization for performance.
Key features:
constructor();
loggerService: any
riskValidationService: any
actionValidationService: 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 associated configurations (risk profiles and actions)
list: () => Promise<IStrategySchema[]>
Returns a list of all registered strategy schemas