예제 #1
0
 public LegacyAssetsService(
     IProductsRepository productsRepository,
     IClientProfileSettingsRepository clientProfileSettingsRepository,
     ICurrenciesRepository currenciesRepository,
     ITickFormulaRepository tickFormulaRepository,
     IMarketSettingsRepository marketSettingsRepository,
     IProductCategoriesRepository productCategoriesRepository,
     IUnderlyingsCache underlyingsCache,
     IAssetTypesRepository assetTypesRepository,
     ILog log,
     IBrokerSettingsApi brokerSettingsApi,
     string brokerId,
     IList <string> assetTypesWithZeroInterestRate)
 {
     _productsRepository = productsRepository;
     _clientProfileSettingsRepository = clientProfileSettingsRepository;
     _currenciesRepository            = currenciesRepository;
     _tickFormulaRepository           = tickFormulaRepository;
     _marketSettingsRepository        = marketSettingsRepository;
     _productCategoriesRepository     = productCategoriesRepository;
     _underlyingsCache     = underlyingsCache;
     _assetTypesRepository = assetTypesRepository;
     _log = log;
     _assetTypesWithZeroInterestRate = assetTypesWithZeroInterestRate;
     _brokerSettingsApi = brokerSettingsApi;
     _brokerId          = brokerId;
 }
예제 #2
0
 public UnderlyingChangedHandler(
     IUnderlyingsCache underlyingsCache,
     ILegacyAssetsCacheUpdater legacyAssetsCacheUpdater,
     IProductsService productsService,
     IConvertService convertService,
     ILog log)
 {
     _underlyingsCache         = underlyingsCache;
     _legacyAssetsCacheUpdater = legacyAssetsCacheUpdater;
     _productsService          = productsService;
     _convertService           = convertService;
     _log = log;
 }
 public RateSettingsService(
     IProductsRepository productsRepository,
     IUnderlyingsCache underlyingsCache,
     ICurrenciesRepository currenciesRepository,
     DefaultRateSettings defaultRateSettings,
     ILog log)
 {
     _productsRepository   = productsRepository;
     _underlyingsCache     = underlyingsCache;
     _currenciesRepository = currenciesRepository;
     _defaultRateSettings  = defaultRateSettings;
     _log = log;
 }
 public TradingInstrumentsService(
     IProductsRepository productsRepository,
     IClientProfilesRepository clientProfilesRepository,
     IClientProfileSettingsRepository clientProfileSettingsRepository,
     IUnderlyingsCache underlyingsCache,
     DefaultTradingInstrumentSettings defaultTradingInstrumentSettings)
 {
     _productsRepository              = productsRepository;
     _clientProfilesRepository        = clientProfilesRepository;
     _clientProfileSettingsRepository = clientProfileSettingsRepository;
     _underlyingsCache = underlyingsCache;
     _defaultTradingInstrumentSettings = defaultTradingInstrumentSettings;
 }
예제 #5
0
 public StartupManager(
     ILog log,
     ICqrsEngine cqrsEngine,
     IUnderlyingsCache underlyingsCache,
     ILegacyAssetsCache legacyAssetsCache,
     IEnumerable <IStartStop> starables)
 {
     _log               = log;
     _cqrsEngine        = cqrsEngine;
     _underlyingsCache  = underlyingsCache;
     _legacyAssetsCache = legacyAssetsCache;
     _starables         = starables;
 }
예제 #6
0
        public ProductAddOrUpdateValidationAndEnrichment(
            IUnderlyingsCache underlyingsCache,
            ICurrenciesService currenciesService,
            IMarketSettingsRepository marketSettingsRepository,
            IProductCategoriesService productCategoriesService,
            ITickFormulaRepository tickFormulaRepository,
            IAssetTypesRepository assetTypesRepository)
        {
            _underlyingsCache         = underlyingsCache;
            _currenciesService        = currenciesService;
            _marketSettingsRepository = marketSettingsRepository;
            _productCategoriesService = productCategoriesService;
            _tickFormulaRepository    = tickFormulaRepository;
            _assetTypesRepository     = assetTypesRepository;

            AddValidation(UnderlyingMustExist);
            AddValidation(CurrencyMustExist);
            AddValidation(MarketSettingsMustExist);
            AddValidation(TickFormulaMustExist);
            AddValidation(AssetTypeMustExist);
            AddValidation(SetCategoryIdAsync);
            AddValidation(SetExistingFields);
        }