Exemplo n.º 1
0
 public ReportsController(
     IBalanceIndicatorsReportService balanceIndicatorsReportService,
     IBalanceReportService balanceReportService,
     ISummaryReportService summaryReportService,
     IPositionReportService positionReportService)
 {
     _balanceIndicatorsReportService = balanceIndicatorsReportService;
     _balanceReportService           = balanceReportService;
     _summaryReportService           = summaryReportService;
     _positionReportService          = positionReportService;
 }
 public LykkeTradeSubscriber(
     SubscriberSettings settings,
     ISettingsService settingsService,
     ITradeService tradeService,
     ISummaryReportService summaryReportService,
     IDeduplicator deduplicator,
     ILogFactory logFactory)
 {
     _settings             = settings;
     _settingsService      = settingsService;
     _tradeService         = tradeService;
     _summaryReportService = summaryReportService;
     _deduplicator         = deduplicator;
     _logFactory           = logFactory;
     _log = logFactory.CreateLog(this);
 }
Exemplo n.º 3
0
 public MarketMakerService(
     IInstrumentService instrumentService,
     ILykkeExchangeService lykkeExchangeService,
     IOrderBookService orderBookService,
     IBalanceService balanceService,
     IMarketMakerStateService marketMakerStateService,
     IQuoteService quoteService,
     IB2C2OrderBookService b2C2OrderBookService,
     IQuoteTimeoutSettingsService quoteTimeoutSettingsService,
     ISummaryReportService summaryReportService,
     IPositionService positionService,
     IAssetsServiceWithCache assetsServiceWithCache,
     IMarketMakerSettingsService marketMakerSettingsService,
     ITradeService tradeService,
     IAssetPairLinkService assetPairLinkService,
     IPnLStopLossEngineService pnLStopLossEngineService,
     IFiatEquityStopLossService fiatEquityStopLossService,
     INoFreshQuotesStopLossService noFreshQuotesStopLossService,
     IOrderBooksUpdatesReportPublisher orderBooksUpdatesReportPublisher,
     bool isOrderBooksUpdateReportEnabled,
     ILogFactory logFactory)
 {
     _instrumentService                = instrumentService;
     _lykkeExchangeService             = lykkeExchangeService;
     _orderBookService                 = orderBookService;
     _balanceService                   = balanceService;
     _marketMakerStateService          = marketMakerStateService;
     _quoteService                     = quoteService;
     _b2C2OrderBookService             = b2C2OrderBookService;
     _quoteTimeoutSettingsService      = quoteTimeoutSettingsService;
     _summaryReportService             = summaryReportService;
     _positionService                  = positionService;
     _assetsServiceWithCache           = assetsServiceWithCache;
     _marketMakerSettingsService       = marketMakerSettingsService;
     _tradeService                     = tradeService;
     _assetPairLinkService             = assetPairLinkService;
     _pnLStopLossEngineService         = pnLStopLossEngineService;
     _fiatEquityStopLossService        = fiatEquityStopLossService;
     _noFreshQuotesStopLossService     = noFreshQuotesStopLossService;
     _orderBooksUpdatesReportPublisher = orderBooksUpdatesReportPublisher;
     _isOrderBooksUpdateReportEnabled  = isOrderBooksUpdateReportEnabled;
     _log = logFactory.CreateLog(this);
 }
 public PositionService(
     [KeyFilter("PositionRepositoryAzure")] IPositionRepository positionRepository,
     [KeyFilter("PositionRepositoryPostgres")] IPositionRepository positionRepositoryPostgres,
     IOpenPositionRepository openPositionRepository,
     ISummaryReportService summaryReportService,
     IInstrumentService instrumentService,
     IQuoteService quoteService,
     ITradeService tradeService,
     IClosedPositionHandler[] closedPositionHandlers,
     ILogFactory logFactory)
 {
     _positionRepository         = positionRepository;
     _positionRepositoryPostgres = positionRepositoryPostgres;
     _openPositionRepository     = openPositionRepository;
     _summaryReportService       = summaryReportService;
     _instrumentService          = instrumentService;
     _quoteService           = quoteService;
     _tradeService           = tradeService;
     _closedPositionHandlers = closedPositionHandlers;
     _log = logFactory.CreateLog(this);
 }
Exemplo n.º 5
0
 public ReportsController(ISummaryReportService summaryReportService)
 {
     _summaryReportService = summaryReportService;
 }