コード例 #1
0
 public LightweightExternalOrderbookService(
     IEventChannel <BestPriceChangeEventArgs> bestPriceChangeEventChannel,
     IOrderBookProviderApi orderBookProviderApi,
     IDateService dateService,
     IConvertService convertService,
     IScheduleSettingsCacheService scheduleSettingsCache,
     IAssetPairDayOffService assetPairDayOffService,
     IAssetPairsCache assetPairsCache,
     ICqrsSender cqrsSender,
     IIdentityGenerator identityGenerator,
     ILog log,
     MarginTradingSettings marginTradingSettings)
 {
     _bestPriceChangeEventChannel = bestPriceChangeEventChannel;
     _orderBookProviderApi        = orderBookProviderApi;
     _dateService            = dateService;
     _convertService         = convertService;
     _scheduleSettingsCache  = scheduleSettingsCache;
     _assetPairDayOffService = assetPairDayOffService;
     _assetPairsCache        = assetPairsCache;
     _cqrsSender             = cqrsSender;
     _identityGenerator      = identityGenerator;
     _log = log;
     _defaultExternalExchangeId = string.IsNullOrEmpty(marginTradingSettings.DefaultExternalExchangeId)
         ? "Default"
         : marginTradingSettings.DefaultExternalExchangeId;
     _orderbookValidation = marginTradingSettings.OrderbookValidation;
 }
コード例 #2
0
 public ExternalOrderbookService(
     IEventChannel <BestPriceChangeEventArgs> bestPriceChangeEventChannel,
     IOrderBookProviderApi orderBookProviderApi,
     IDateService dateService,
     IConvertService convertService,
     IAssetPairDayOffService assetPairDayOffService,
     IScheduleSettingsCacheService scheduleSettingsCache,
     IAssetPairsCache assetPairsCache,
     ICqrsSender cqrsSender,
     IIdentityGenerator identityGenerator,
     ILog log,
     MarginTradingSettings marginTradingSettings)
 {
     _bestPriceChangeEventChannel = bestPriceChangeEventChannel;
     _orderBookProviderApi        = orderBookProviderApi;
     _dateService            = dateService;
     _convertService         = convertService;
     _assetPairDayOffService = assetPairDayOffService;
     _scheduleSettingsCache  = scheduleSettingsCache;
     _assetPairsCache        = assetPairsCache;
     _cqrsSender             = cqrsSender;
     _identityGenerator      = identityGenerator;
     _log = log;
     _marginTradingSettings = marginTradingSettings;
 }
コード例 #3
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;
 }
コード例 #4
0
 public MarketSettingsChangedProjection(
     IScheduleSettingsCacheService scheduleSettingsCache,
     IOvernightMarginService overnightMarginService,
     IScheduleControlService scheduleControlService)
 {
     _scheduleSettingsCache  = scheduleSettingsCache;
     _overnightMarginService = overnightMarginService;
     _scheduleControlService = scheduleControlService;
 }
コード例 #5
0
 public TradingScheduleController(
     IDateService dateService,
     IScheduleSettingsCacheService scheduleSettingsCacheService,
     IAssetPairDayOffService assetPairDayOffService,
     IAssetPairsCache assetPairsCache)
 {
     _scheduleSettingsCacheService = scheduleSettingsCacheService;
     _assetPairDayOffService       = assetPairDayOffService;
     _assetPairsCache = assetPairsCache;
 }
コード例 #6
0
 public BrokerSettingsChangedHandler(
     MarginTradingSettings settings,
     IScheduleSettingsCacheService scheduleSettingsCache,
     IOvernightMarginService overnightMarginService,
     IScheduleControlService scheduleControlService)
 {
     _settings = settings;
     _scheduleSettingsCache  = scheduleSettingsCache;
     _overnightMarginService = overnightMarginService;
     _scheduleControlService = scheduleControlService;
 }
コード例 #7
0
 public AssetPairProjection(
     ITradingEngine tradingEngine,
     IAssetPairsCache assetPairsCache,
     IOrderReader orderReader,
     IScheduleSettingsCacheService scheduleSettingsCacheService,
     ILog log)
 {
     _tradingEngine   = tradingEngine;
     _assetPairsCache = assetPairsCache;
     _orderReader     = orderReader;
     _scheduleSettingsCacheService = scheduleSettingsCacheService;
     _log = log;
 }
コード例 #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;
 }
コード例 #10
0
ファイル: OvernightMarginService.cs プロジェクト: alpo-8/MT
 public OvernightMarginService(
     IDateService dateService,
     ITradingEngine tradingEngine,
     IAccountsCacheService accountsCacheService,
     IAccountUpdateService accountUpdateService,
     IScheduleSettingsCacheService scheduleSettingsCacheService,
     IOvernightMarginParameterContainer overnightMarginParameterContainer,
     ILog log,
     IEventChannel <MarginCallEventArgs> marginCallEventChannel,
     OvernightMarginSettings overnightMarginSettings)
 {
     _dateService                       = dateService;
     _tradingEngine                     = tradingEngine;
     _accountsCacheService              = accountsCacheService;
     _accountUpdateService              = accountUpdateService;
     _scheduleSettingsCacheService      = scheduleSettingsCacheService;
     _overnightMarginParameterContainer = overnightMarginParameterContainer;
     _log = log;
     _marginCallEventChannel  = marginCallEventChannel;
     _overnightMarginSettings = overnightMarginSettings;
 }
コード例 #11
0
 public ProductChangedProjection(
     ITradingEngine tradingEngine,
     IAssetPairsCache assetPairsCache,
     IOrderReader orderReader,
     IScheduleSettingsCacheService scheduleSettingsCacheService,
     ITradingInstrumentsManager tradingInstrumentsManager,
     IRfqService rfqService,
     IRfqPauseService rfqPauseService,
     MarginTradingSettings mtSettings,
     ILog log,
     IQuoteCacheService quoteCache)
 {
     _tradingEngine   = tradingEngine;
     _assetPairsCache = assetPairsCache;
     _orderReader     = orderReader;
     _scheduleSettingsCacheService = scheduleSettingsCacheService;
     _tradingInstrumentsManager    = tradingInstrumentsManager;
     _rfqService      = rfqService;
     _rfqPauseService = rfqPauseService;
     _mtSettings      = mtSettings;
     _log             = log;
     _quoteCache      = quoteCache;
 }
コード例 #12
0
ファイル: AssetPairDayOffService.cs プロジェクト: alpo-8/MT
 public AssetPairDayOffService(IDateService dateService, IScheduleSettingsCacheService scheduleSettingsCacheService)
 {
     _dateService = dateService;
     _scheduleSettingsCacheService = scheduleSettingsCacheService;
 }
コード例 #13
0
 public ScheduleSettingsCacheWarmUpJob(
     IScheduleSettingsCacheService scheduleSettingsCacheService)
 {
     _scheduleSettingsCacheService = scheduleSettingsCacheService;
 }
コード例 #14
0
 public AssetPairDayOffService(IScheduleSettingsCacheService scheduleSettingsCacheService)
 {
     _scheduleSettingsCacheService = scheduleSettingsCacheService;
 }
コード例 #15
0
 public ScheduleControlService(IScheduleSettingsCacheService scheduleSettingsCache, ILog log, IDateService dateService)
 {
     _scheduleSettingsCache = scheduleSettingsCache;
     _log         = log;
     _dateService = dateService;
 }