コード例 #1
0
ファイル: Application.cs プロジェクト: LykkeBusiness/MT
 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;
 }
コード例 #2
0
ファイル: SnapshotService.cs プロジェクト: LykkeBusiness/MT
 public SnapshotService(
     IScheduleSettingsCacheService scheduleSettingsCacheService,
     IAccountsCacheService accountsCacheService,
     IQuoteCacheService quoteCacheService,
     IFxRateCacheService fxRateCacheService,
     IOrderReader orderReader,
     IDateService dateService,
     ITradingEngineSnapshotsRepository tradingEngineSnapshotsRepository,
     ISnapshotValidationService snapshotValidationService,
     IQueueValidationService queueValidationService,
     IMarginTradingBlobRepository blobRepository,
     ILog log,
     IFinalSnapshotCalculator finalSnapshotCalculator)
 {
     _scheduleSettingsCacheService = scheduleSettingsCacheService;
     _accountsCacheService         = accountsCacheService;
     _quoteCacheService            = quoteCacheService;
     _fxRateCacheService           = fxRateCacheService;
     _orderReader = orderReader;
     _dateService = dateService;
     _tradingEngineSnapshotsRepository = tradingEngineSnapshotsRepository;
     _snapshotValidationService        = snapshotValidationService;
     _queueValidationService           = queueValidationService;
     _blobRepository          = blobRepository;
     _log                     = log;
     _finalSnapshotCalculator = finalSnapshotCalculator;
 }
コード例 #3
0
 public void SetUp()
 {
     RegisterDependencies();
     _quoteCacheService    = Container.Resolve <IQuoteCacheService>();
     _bestPriceConsumer    = Container.Resolve <IEventChannel <BestPriceChangeEventArgs> >();
     _cfdCalculatorService = Container.Resolve <ICfdCalculatorService>();
     _fxRateCacheService   = Container.Resolve <IFxRateCacheService>();
 }
コード例 #4
0
 public PricesController(
     IQuoteCacheService quoteCacheService,
     IFxRateCacheService fxRateCacheService,
     OrdersCache ordersCache)
 {
     _quoteCacheService  = quoteCacheService;
     _fxRateCacheService = fxRateCacheService;
     _ordersCache        = ordersCache;
 }
コード例 #5
0
ファイル: CfdCalculatorService.cs プロジェクト: alpo-8/MT
 public CfdCalculatorService(
     IAssetPairsCache assetPairsCache,
     IFxRateCacheService fxRateCacheService,
     IQuoteCacheService quoteCacheService)
 {
     _assetPairsCache    = assetPairsCache;
     _fxRateCacheService = fxRateCacheService;
     _quoteCacheService  = quoteCacheService;
 }
コード例 #6
0
ファイル: FplServiceTests.cs プロジェクト: alpo-8/MT
 public void SetUp()
 {
     RegisterDependencies();
     _bestPriceConsumer    = Container.Resolve <IEventChannel <BestPriceChangeEventArgs> >();
     _fxRateCacheService   = Container.Resolve <IFxRateCacheService>();
     _accountsCacheService = Container.Resolve <IAccountsCacheService>();
     _ordersCache          = Container.Resolve <OrdersCache>();
     _fplService           = Container.Resolve <IFplService>();
     _dateService          = Container.Resolve <IDateService>();
 }
コード例 #7
0
ファイル: PricesController.cs プロジェクト: LykkeBusiness/MT
 public PricesController(
     IQuoteCacheService quoteCacheService,
     IFxRateCacheService fxRateCacheService,
     ISnapshotService snapshotService,
     ILog log,
     IDraftSnapshotKeeper draftSnapshotKeeper)
 {
     _quoteCacheService  = quoteCacheService;
     _fxRateCacheService = fxRateCacheService;
     _snapshotService    = snapshotService;
     _log = log;
     _draftSnapshotKeeper = draftSnapshotKeeper;
 }
コード例 #8
0
ファイル: SnapshotService.cs プロジェクト: alpo-8/MT
 public SnapshotService(
     IScheduleSettingsCacheService scheduleSettingsCacheService,
     IAccountsCacheService accountsCacheService,
     IQuoteCacheService quoteCacheService,
     IFxRateCacheService fxRateCacheService,
     IOrderReader orderReader,
     IDateService dateService,
     ITradingEngineSnapshotsRepository tradingEngineSnapshotsRepository)
 {
     _scheduleSettingsCacheService = scheduleSettingsCacheService;
     _accountsCacheService         = accountsCacheService;
     _quoteCacheService            = quoteCacheService;
     _fxRateCacheService           = fxRateCacheService;
     _orderReader = orderReader;
     _dateService = dateService;
     _tradingEngineSnapshotsRepository = tradingEngineSnapshotsRepository;
 }
コード例 #9
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;
 }