コード例 #1
0
 public MarketMakerManager(
     IIndexPriceService indexPriceService,
     IMarketMakerService marketMakerService,
     IHedgeService hedgeService,
     IInternalTradeService internalTradeService,
     IIndexSettingsService indexSettingsService,
     IAssetHedgeSettingsService assetHedgeSettingsService,
     ITokenService tokenService,
     IMarketMakerStateService marketMakerStateService,
     ISettlementService settlementService,
     IQuoteService quoteService,
     ILogFactory logFactory)
 {
     _indexPriceService         = indexPriceService;
     _marketMakerService        = marketMakerService;
     _hedgeService              = hedgeService;
     _internalTradeService      = internalTradeService;
     _indexSettingsService      = indexSettingsService;
     _assetHedgeSettingsService = assetHedgeSettingsService;
     _tokenService              = tokenService;
     _marketMakerStateService   = marketMakerStateService;
     _settlementService         = settlementService;
     _quoteService              = quoteService;
     _log = logFactory.CreateLog(this);
 }
コード例 #2
0
 public TestsController(ITestingHelperService testingHelperService, IMarketMakerService marketMakerService,
                        IAssetPairSourceTypeService assetPairSourceTypeService)
 {
     _testingHelperService       = testingHelperService;
     _marketMakerService         = marketMakerService;
     _assetPairSourceTypeService = assetPairSourceTypeService;
 }
コード例 #3
0
 public BrokerService(ILog logger, IReloadingManager <MarginTradingMarketMakerSettings> settings, IMarketMakerService marketMakerService,
                      IRabbitMqService rabbitMqService)
 {
     _logger             = logger;
     _settings           = settings;
     _marketMakerService = marketMakerService;
     _rabbitMqService    = rabbitMqService;
 }
コード例 #4
0
 public MarketMakerTimer(
     IMarketMakerService marketMakerService,
     ITimersSettingsService timersSettingsService,
     ILogFactory logFactory)
 {
     _marketMakerService    = marketMakerService;
     _timersSettingsService = timersSettingsService;
     Log = logFactory.CreateLog(this);
 }
コード例 #5
0
 public AvgSpotRatesService(ILog log, ICandleshistoryservice candlesHistoryService, ISystem system,
                            IMarketMakerService marketMakerService)
     : base(Startup.ServiceName + '_' + nameof(AvgSpotRatesService),
            (int)TimeSpan.FromMinutes(1).TotalMilliseconds, log)
 {
     _candlesHistoryService = candlesHistoryService;
     _system             = system;
     _marketMakerService = marketMakerService;
     _log = log;
 }
 public B2C2OrderBooksSubscriber(
     SubscriberSettings settings,
     IB2C2OrderBookService b2C2OrderBookService,
     IMarketMakerService marketMakerService,
     ILogFactory logFactory)
 {
     _settings             = settings;
     _b2C2OrderBookService = b2C2OrderBookService;
     _marketMakerService   = marketMakerService;
     _logFactory           = logFactory;
     _log = logFactory.CreateLog(this);
 }
コード例 #7
0
 public StartupManager(
     LykkeBalancesTimer lykkeBalancesTimer,
     ExternalBalancesTimer externalBalancesTimer,
     MarketMakerTimer marketMakerTimer,
     HedgingTimer hedgingTimer,
     SettlementsTimer settlementsTimer,
     InternalTraderTimer internalTraderTimer,
     PnLStopLossEngineTimer pnLStopLossEngineTimer,
     LykkeTradeSubscriber lykkeTradeSubscriber,
     B2C2QuoteSubscriber b2C2QuoteSubscriber,
     B2C2OrderBooksSubscriber b2C2OrderBooksSubscriber,
     QuoteSubscriber[] quoteSubscribers,
     OrderBooksUpdatesReportSubscriber orderBooksUpdatesReportSubscriber,
     InternalQuotePublisher internalQuotePublisher,
     InternalOrderBookPublisher internalOrderBookPublisher,
     OrderBooksUpdatesReportPublisher orderBooksUpdatesReportPublisher,
     LykkeTradeSubscriberMonitor lykkeTradeSubscriberMonitor,
     StorageMigrationService storageMigrationService,
     ITradeService tradeService,
     IHedgeService hedgeService,
     IMarketMakerService marketMakerService)
 {
     _lykkeBalancesTimer                = lykkeBalancesTimer;
     _externalBalancesTimer             = externalBalancesTimer;
     _marketMakerTimer                  = marketMakerTimer;
     _hedgingTimer                      = hedgingTimer;
     _settlementsTimer                  = settlementsTimer;
     _internalTraderTimer               = internalTraderTimer;
     _pnLStopLossEngineTimer            = pnLStopLossEngineTimer;
     _lykkeTradeSubscriber              = lykkeTradeSubscriber;
     _b2C2QuoteSubscriber               = b2C2QuoteSubscriber;
     _b2C2OrderBooksSubscriber          = b2C2OrderBooksSubscriber;
     _quoteSubscribers                  = quoteSubscribers;
     _orderBooksUpdatesReportSubscriber = orderBooksUpdatesReportSubscriber;
     _internalQuotePublisher            = internalQuotePublisher;
     _internalOrderBookPublisher        = internalOrderBookPublisher;
     _orderBooksUpdatesReportPublisher  = orderBooksUpdatesReportPublisher;
     _lykkeTradeSubscriberMonitor       = lykkeTradeSubscriberMonitor;
     _storageMigrationService           = storageMigrationService;
     _tradeService                      = tradeService;
     _hedgeService                      = hedgeService;
     _marketMakerService                = marketMakerService;
 }