public WalletsRebalancerPublisher(ITelegramSender telegramSender,
                                   IWalletsRebalancerProvider walletsRebalancerProvider,
                                   IChatPublisherSettingsRepository repo, ILogFactory logFactory)
 {
     _walletsRebalancerProvider = walletsRebalancerProvider;
     _telegramSender            = telegramSender;
     _repo = repo ?? throw new ArgumentNullException(nameof(repo));
     _log  = logFactory.CreateLog(this);
 }
Exemple #2
0
 public NettingEngineAuditPublisher(ITelegramSender telegramSender,
                                    INettingEngineAuditProvider nettingEngineAuditProvider,
                                    IChatPublisherSettingsRepository repo, ILogFactory logFactory)
 {
     _nettingEngineAuditProvider = nettingEngineAuditProvider;
     _telegramSender             = telegramSender;
     _repo = repo ?? throw new ArgumentNullException(nameof(repo));
     _log  = logFactory.CreateLog(this);
 }
Exemple #3
0
 public NettingEngineStateSubscriber(INettingEngineStateProvider nettingEngineStateProvider,
                                     IMarketMakerReportsClient marketMakerReportsClient, IChatPublisherStateService chatPublisherStateService,
                                     IChatPublisherSettingsRepository repo, ILogFactory logFactory)
     : base(repo, logFactory)
 {
     _nettingEngineStateProvider = nettingEngineStateProvider;
     _marketMakerReportsClient   = marketMakerReportsClient;
     _chatPublisherStateService  = chatPublisherStateService;
 }
        public ChatPublisherService(IChatPublisherSettingsRepository repo,
                                    IBalanceWarningRepository balanceWarningRepository,
                                    IExternalBalanceWarningRepository externalBalanceWarningRepository,
                                    IBalancesClient balancesClient,
                                    INettingEngineInstanceManager nettingEngineInstanceManager,
                                    IMarketMakerReportsClient marketMakerReportsClient,
                                    IMarketMakerArbitrageDetectorClient marketMakerArbitrageDetectorClient,
                                    IMarketMakerArbitragesWarningProvider marketMakerArbitragesWarningProvider,
                                    IChatPublisherStateService chatPublisherStateService,
                                    ILogFactory logFactory,
                                    ITelegramSender telegramSender,
                                    INettingEngineStateProvider neStateProvider,
                                    IBalanceWarningProvider balanceWarningProvider,
                                    IExternalBalanceWarningProvider externalBalanceWarningProvider,
                                    LiquidityEngineUrlSettings liquidityEngineUrlSettings,
                                    CryptoIndexInstancesSettings cryptoIndexInstancesSettings,
                                    IAssetsServiceWithCache assetsServiceWithCache,
                                    IMarketMakerReportsFiatClient marketMakerReportsFiatClient)
        {
            _repo       = repo ?? throw new ArgumentNullException(nameof(repo));
            _log        = logFactory.CreateLog(this);
            _logFactory = logFactory;

            _chatPublisherStateService        = chatPublisherStateService;
            _balanceWarningRepository         = balanceWarningRepository;
            _externalBalanceWarningRepository = externalBalanceWarningRepository;
            _balancesClient = balancesClient;
            _nettingEngineInstanceManager         = nettingEngineInstanceManager;
            _marketMakerReportsClient             = marketMakerReportsClient;
            _marketMakerArbitrageDetectorClient   = marketMakerArbitrageDetectorClient;
            _marketMakerArbitragesWarningProvider = marketMakerArbitragesWarningProvider;
            _neStateProvider                = neStateProvider;
            _balanceWarningProvider         = balanceWarningProvider;
            _externalBalanceWarningProvider = externalBalanceWarningProvider;
            _liquidityEngineUrlSettings     = liquidityEngineUrlSettings;
            _cryptoIndexInstancesSettings   = cryptoIndexInstancesSettings;
            _telegramSender               = telegramSender;
            _assetsServiceWithCache       = assetsServiceWithCache;
            _marketMakerReportsFiatClient = marketMakerReportsFiatClient;
        }
Exemple #5
0
 protected ChatSubscriber(IChatPublisherSettingsRepository repo, ILogFactory logFactory)
 {
     Repo = repo;
     Log  = logFactory.CreateLog(this);
 }