Service for managing and validating exchange configurations.
Maintains a registry of all configured exchanges and validates their existence before operations. Uses memoization for performance.
Key features:
constructor();
loggerService: any
_exchangeMap: any
addExchange: (exchangeName: string, exchangeSchema: IExchangeSchema) => void
Adds an exchange schema to the validation service
validate: (exchangeName: string, source: string) => void
Validates the existence of an exchange
list: () => Promise<IExchangeSchema[]>
Returns a list of all registered exchange schemas