public PublicService(
     IAssetsService assetsService,
     IOrderbooksService orderbooksService,
     MarketDataService.MarketDataServiceClient marketDataClient,
     ITradesAdapterClient tradesAdapterClient,
     PricesStreamService priceStreamService,
     TickersStreamService tickerUpdateService,
     OrderbookStreamService orderbookUpdateService,
     PublicTradesStreamService publicTradesStreamService,
     ValidationService validationService,
     IMyNoSqlServerDataReader <TickerEntity> tickersReader,
     IMyNoSqlServerDataReader <PriceEntity> pricesReader,
     IMapper mapper
     )
 {
     _assetsService             = assetsService;
     _orderbooksService         = orderbooksService;
     _marketDataClient          = marketDataClient;
     _tradesAdapterClient       = tradesAdapterClient;
     _priceStreamService        = priceStreamService;
     _tickerUpdateService       = tickerUpdateService;
     _orderbookUpdateService    = orderbookUpdateService;
     _publicTradesStreamService = publicTradesStreamService;
     _validationService         = validationService;
     _tickersReader             = tickersReader;
     _pricesReader = pricesReader;
     _mapper       = mapper;
 }
Beispiel #2
0
 public PublicTradesSubscriber(
     string connectionString,
     string exchangeName,
     PublicTradesStreamService publicTradesStreamService,
     IMapper mapper,
     ILogFactory logFactory)
 {
     _connectionString          = connectionString;
     _exchangeName              = exchangeName;
     _publicTradesStreamService = publicTradesStreamService;
     _mapper     = mapper;
     _logFactory = logFactory;
 }
Beispiel #3
0
 public ApiService(
     ILykkeWalletAPIv1Client walletApiV1Client,
     ILykkeWalletAPIv2Client walletApiV2Client,
     IAssetsService assetsService,
     AssetsHelper assetsHelper,
     IMyNoSqlServerDataReader <PriceEntity> pricesReader,
     PricesStreamService priceStreamService,
     CandlesStreamService candlesStreamService,
     OrderbookStreamService orderbookStreamService,
     PublicTradesStreamService publicTradesStreamService,
     ICandleshistoryservice candlesHistoryService,
     ValidationService validationService,
     OrderbooksService orderbooksService,
     SessionService sessionService,
     IMatchingEngineClient matchingEngineClient,
     IBalancesClient balancesClient,
     IClientAccountClient clientAccountClient,
     IRateCalculatorClient rateCalculatorClient,
     ITradesAdapterClient tradesAdapterClient,
     IRegistrationServiceClient registrationServiceClient,
     IPushNotificationsClient pushNotificationsClient,
     WalletApiConfig walletApiConfig,
     AppConfig config,
     IMapper mapper
     )
 {
     _walletApiV1Client         = walletApiV1Client;
     _walletApiV2Client         = walletApiV2Client;
     _assetsService             = assetsService;
     _assetsHelper              = assetsHelper;
     _pricesReader              = pricesReader;
     _priceStreamService        = priceStreamService;
     _candlesStreamService      = candlesStreamService;
     _orderbookStreamService    = orderbookStreamService;
     _publicTradesStreamService = publicTradesStreamService;
     _candlesHistoryService     = candlesHistoryService;
     _validationService         = validationService;
     _orderbooksService         = orderbooksService;
     _sessionService            = sessionService;
     _matchingEngineClient      = matchingEngineClient;
     _balancesClient            = balancesClient;
     _clientAccountClient       = clientAccountClient;
     _rateCalculatorClient      = rateCalculatorClient;
     _tradesAdapterClient       = tradesAdapterClient;
     _registrationServiceClient = registrationServiceClient;
     _pushNotificationsClient   = pushNotificationsClient;
     _walletApiConfig           = walletApiConfig;
     _config = config;
     _mapper = mapper;
 }