Exemplo n.º 1
0
 public Application(
     MarketMakerService marketMakerService,
     ILog logger,
     MarginTradingSettings marginSettings,
     IMaintenanceModeService maintenanceModeService,
     IRabbitMqService rabbitMqService,
     MatchingEngineRoutesManager matchingEngineRoutesManager,
     IMigrationService migrationService,
     IConvertService convertService,
     IFxRateCacheService fxRateCacheService,
     IExternalOrderbookService externalOrderbookService,
     BrokerSettingsChangedHandler brokerSettingsChangedHandler)
 {
     _marketMakerService           = marketMakerService;
     _logger                       = logger;
     _marginSettings               = marginSettings;
     _maintenanceModeService       = maintenanceModeService;
     _rabbitMqService              = rabbitMqService;
     _matchingEngineRoutesManager  = matchingEngineRoutesManager;
     _migrationService             = migrationService;
     _convertService               = convertService;
     _fxRateCacheService           = fxRateCacheService;
     _externalOrderbookService     = externalOrderbookService;
     _brokerSettingsChangedHandler = brokerSettingsChangedHandler;
 }
Exemplo n.º 2
0
 public QuoteCacheService(ILog log,
                          IMarginTradingBlobRepository blobRepository,
                          IExternalOrderbookService externalOrderbookService,
                          MarginTradingSettings marginTradingSettings)
     : base(nameof(QuoteCacheService),
            marginTradingSettings.BlobPersistence.QuotesDumpPeriodMilliseconds,
            log)
 {
     _log                      = log;
     _blobRepository           = blobRepository;
     _externalOrderbookService = externalOrderbookService;
 }
 public FakeExchangeConnectorClient(
     IExternalOrderbookService orderbookService,
     IChaosKitty chaosKitty,
     MarginTradingSettings settings,
     ILog log,
     IDateService dateService,
     ICqrsSender cqrsSender)
 {
     _chaosKitty       = chaosKitty;
     _settings         = settings;
     _log              = log;
     _dateService      = dateService;
     _cqrsSender       = cqrsSender;
     _orderbookService = orderbookService;
 }
Exemplo n.º 4
0
 public Application(
     IRabbitMqNotifyService rabbitMqNotifyService,
     IConsole consoleWriter,
     MarketMakerService marketMakerService,
     ILog logger,
     MarginTradingSettings marginSettings,
     IMaintenanceModeService maintenanceModeService,
     IRabbitMqService rabbitMqService,
     MatchingEngineRoutesManager matchingEngineRoutesManager,
     IMigrationService migrationService,
     IConvertService convertService,
     IFxRateCacheService fxRateCacheService,
     IExternalOrderbookService externalOrderbookService,
     IAssetsManager assetsManager,
     IAssetPairsManager assetPairsManager,
     ITradingInstrumentsManager tradingInstrumentsManager,
     ITradingConditionsManager tradingConditionsManager,
     IScheduleSettingsCacheService scheduleSettingsCacheService,
     IOvernightMarginService overnightMarginService,
     IThreadSwitcher threadSwitcher)
 {
     _rabbitMqNotifyService = rabbitMqNotifyService;
     _consoleWriter         = consoleWriter;
     _marketMakerService    = marketMakerService;
     _logger                       = logger;
     _marginSettings               = marginSettings;
     _maintenanceModeService       = maintenanceModeService;
     _rabbitMqService              = rabbitMqService;
     _matchingEngineRoutesManager  = matchingEngineRoutesManager;
     _migrationService             = migrationService;
     _convertService               = convertService;
     _fxRateCacheService           = fxRateCacheService;
     _externalOrderbookService     = externalOrderbookService;
     _assetsManager                = assetsManager;
     _assetPairsManager            = assetPairsManager;
     _tradingInstrumentsManager    = tradingInstrumentsManager;
     _tradingConditionsManager     = tradingConditionsManager;
     _scheduleSettingsCacheService = scheduleSettingsCacheService;
     _overnightMarginService       = overnightMarginService;
     _threadSwitcher               = threadSwitcher;
 }
Exemplo n.º 5
0
 public StpMatchingEngine(string id,
                          IExternalOrderbookService externalOrderbookService,
                          IExchangeConnectorService exchangeConnectorService,
                          ILog log,
                          IOperationsLogService operationsLogService,
                          IDateService dateService,
                          IRabbitMqNotifyService rabbitMqNotifyService,
                          IAssetPairsCache assetPairsCache,
                          MarginTradingSettings marginTradingSettings,
                          IQuoteCacheService quoteCacheService)
 {
     _externalOrderbookService = externalOrderbookService;
     _exchangeConnectorService = exchangeConnectorService;
     _log = log;
     _operationsLogService  = operationsLogService;
     _dateService           = dateService;
     _rabbitMqNotifyService = rabbitMqNotifyService;
     _assetPairsCache       = assetPairsCache;
     _marginTradingSettings = marginTradingSettings;
     _quoteCacheService     = quoteCacheService;
     Id = id;
 }