Service for managing and validating position sizing configurations.
Maintains a registry of all configured sizing strategies and validates their existence before operations. Uses memoization for performance.
Key features:
constructor();
loggerService: any
_sizingMap: any
addSizing: (sizingName: string, sizingSchema: ISizingSchema) => void
Adds a sizing schema to the validation service
validate: (sizingName: string, source: string, method?: "fixed-percentage" | "kelly-criterion" | "atr-based") => void
Validates the existence of a sizing and optionally its method
list: () => Promise<ISizingSchema[]>
Returns a list of all registered sizing schemas