Ejemplo n.º 1
0
 public MtController(
     IMarginTradingAccountHistoryRepository accountsHistoryRepository,
     IMarginTradingOrdersHistoryRepository ordersHistoryRepository,
     IMicrographCacheService micrographCacheService,
     IAccountAssetsCacheService accountAssetsCacheService,
     IAssetPairsCache assetPairsCache,
     IMarketMakerMatchingEngine matchingEngine,
     ITradingEngine tradingEngine,
     IAccountsCacheService accountsCacheService,
     IMarginTradingOperationsLogService operationsLogService,
     IConsole consoleWriter,
     OrdersCache ordersCache,
     MarginSettings marginSettings,
     AccountManager accountManager,
     IAssetPairDayOffService assetDayOffService,
     IQuoteCacheService quoteCacheService,
     IIdentityGenerator identityGenerator)
 {
     _accountsHistoryRepository = accountsHistoryRepository;
     _ordersHistoryRepository   = ordersHistoryRepository;
     _micrographCacheService    = micrographCacheService;
     _accountAssetsCacheService = accountAssetsCacheService;
     _assetPairsCache           = assetPairsCache;
     _matchingEngine            = matchingEngine;
     _tradingEngine             = tradingEngine;
     _accountsCacheService      = accountsCacheService;
     _operationsLogService      = operationsLogService;
     _consoleWriter             = consoleWriter;
     _ordersCache        = ordersCache;
     _marginSettings     = marginSettings;
     _accountManager     = accountManager;
     _assetDayOffService = assetDayOffService;
     _quoteCacheService  = quoteCacheService;
     _identityGenerator  = identityGenerator;
 }
Ejemplo n.º 2
0
 public AccountsBalanceController(
     MarginSettings marginSettings,
     IMarginTradingOperationsLogService operationsLogService,
     ILog log,
     IAccountsCacheService accountsCacheService,
     AccountManager accountManager)
 {
     _marginSettings       = marginSettings;
     _operationsLogService = operationsLogService;
     _log = log;
     _accountsCacheService = accountsCacheService;
     _accountManager       = accountManager;
 }
Ejemplo n.º 3
0
 public ClientNotifyService(
     IRabbitMqNotifyService rabbitMqNotifyService,
     IMarginTradingOperationsLogService operationsLogService,
     MarginSettings marginSettings,
     IConsole consoleWriter,
     IAccountsCacheService accountsCacheService)
 {
     _rabbitMqNotifyService = rabbitMqNotifyService;
     _operationsLogService  = operationsLogService;
     _marginSettings        = marginSettings;
     _consoleWriter         = consoleWriter;
     _accountsCacheService  = accountsCacheService;
 }
Ejemplo n.º 4
0
 public MarginCallConsumer(IThreadSwitcher threadSwitcher,
                           IAppNotifications appNotifications,
                           IEmailService emailService,
                           IClientAccountService clientAccountService,
                           IMarginTradingOperationsLogService operationsLogService,
                           IRabbitMqNotifyService rabbitMqNotifyService,
                           IDateService dateService,
                           IAssetsCache assetsCache)
     : base(appNotifications, clientAccountService, assetsCache)
 {
     _threadSwitcher        = threadSwitcher;
     _emailService          = emailService;
     _clientAccountService  = clientAccountService;
     _operationsLogService  = operationsLogService;
     _rabbitMqNotifyService = rabbitMqNotifyService;
     _dateService           = dateService;
 }
Ejemplo n.º 5
0
 public RabbitMqHandler(
     IWampHostedRealm realm,
     IClientAccountService clientNotificationService,
     IMarginTradingOperationsLogService operationsLogService,
     MtFrontendSettings settings,
     IConsole consoleWriter,
     ILog log,
     IMarginTradingSettingsCacheService marginTradingSettingsCacheService)
 {
     _realm = realm;
     _clientNotificationService = clientNotificationService;
     _operationsLog             = operationsLogService;
     _settings      = settings;
     _consoleWriter = consoleWriter;
     _log           = log;
     _marginTradingSettingsCacheService = marginTradingSettingsCacheService;
     _allPairsSubject = realm.Services.GetSubject <BidAskPairRabbitMqContract>(WampConstants.PricesTopicPrefix);
     _tradesSubject   = realm.Services.GetSubject <TradeClientContract>(WampConstants.TradesTopic);
 }