Beispiel #1
0
        public StopOutConsumer(IThreadSwitcher threadSwitcher,
                               IOperationsLogService operationsLogService,
                               IRabbitMqNotifyService rabbitMqNotifyService,
                               IDateService dateService,
                               MarginTradingSettings settings)
        {
            _threadSwitcher        = threadSwitcher;
            _operationsLogService  = operationsLogService;
            _rabbitMqNotifyService = rabbitMqNotifyService;
            _dateService           = dateService;

            _settings = settings;
        }
Beispiel #2
0
 public MarginCallConsumer(IThreadSwitcher threadSwitcher,
                           IEmailService emailService,
                           IClientAccountService clientAccountService,
                           IOperationsLogService operationsLogService,
                           MarginTradingSettings settings,
                           IRabbitMqNotifyService rabbitMqNotifyService,
                           IDateService dateService)
 {
     _threadSwitcher        = threadSwitcher;
     _emailService          = emailService;
     _clientAccountService  = clientAccountService;
     _operationsLogService  = operationsLogService;
     _settings              = settings;
     _rabbitMqNotifyService = rabbitMqNotifyService;
     _dateService           = dateService;
 }
Beispiel #3
0
 public PositionsController(
     ITradingEngine tradingEngine,
     IOperationsLogService operationsLogService,
     ILog log,
     OrdersCache ordersCache,
     IAssetPairDayOffService assetDayOffService,
     IIdentityGenerator identityGenerator,
     ICqrsSender cqrsSender,
     IDateService dateService)
 {
     _tradingEngine        = tradingEngine;
     _operationsLogService = operationsLogService;
     _log                = log;
     _ordersCache        = ordersCache;
     _assetDayOffService = assetDayOffService;
     _identityGenerator  = identityGenerator;
     _cqrsSender         = cqrsSender;
     _dateService        = dateService;
 }
Beispiel #4
0
 public OrdersController(
     ITradingEngine tradingEngine,
     IOperationsLogService operationsLogService,
     ILog log,
     OrdersCache ordersCache,
     IDateService dateService,
     IValidateOrderService validateOrderService,
     IIdentityGenerator identityGenerator,
     ICqrsSender cqrsSender)
 {
     _tradingEngine        = tradingEngine;
     _operationsLogService = operationsLogService;
     _log                  = log;
     _ordersCache          = ordersCache;
     _dateService          = dateService;
     _validateOrderService = validateOrderService;
     _identityGenerator    = identityGenerator;
     _cqrsSender           = cqrsSender;
 }
Beispiel #5
0
 public StpMatchingEngine(string id,
                          IExternalOrderbookService externalOrderbookService,
                          IExchangeConnectorService exchangeConnectorService,
                          ILog log,
                          IOperationsLogService operationsLogService,
                          IDateService dateService,
                          IRabbitMqNotifyService rabbitMqNotifyService,
                          IAssetPairsCache assetPairsCache,
                          MarginTradingSettings marginTradingSettings,
                          IQuoteCacheService quoteCacheService)
 {
     _externalOrderbookService = externalOrderbookService;
     _exchangeConnectorService = exchangeConnectorService;
     _log = log;
     _operationsLogService  = operationsLogService;
     _dateService           = dateService;
     _rabbitMqNotifyService = rabbitMqNotifyService;
     _assetPairsCache       = assetPairsCache;
     _marginTradingSettings = marginTradingSettings;
     _quoteCacheService     = quoteCacheService;
     Id = id;
 }
 public PositionsController(
     ITradingEngine tradingEngine,
     IOperationsLogService operationsLogService,
     ILog log,
     OrdersCache ordersCache,
     IAssetPairDayOffService assetDayOffService,
     IIdentityGenerator identityGenerator,
     ICqrsSender cqrsSender,
     IDateService dateService,
     IAccountHistoryRepository accountHistoryRepository,
     IMarginTradingBlobRepository blobRepository)
 {
     _tradingEngine        = tradingEngine;
     _operationsLogService = operationsLogService;
     _log                      = log;
     _ordersCache              = ordersCache;
     _assetDayOffService       = assetDayOffService;
     _identityGenerator        = identityGenerator;
     _cqrsSender               = cqrsSender;
     _dateService              = dateService;
     _accountHistoryRepository = accountHistoryRepository;
     _blobRepository           = blobRepository;
 }
Beispiel #7
0
 public OrdersController(IAssetPairsCache assetPairsCache,
                         ITradingEngine tradingEngine,
                         IAccountsCacheService accountsCacheService,
                         IOperationsLogService operationsLogService,
                         ILog log,
                         OrdersCache ordersCache,
                         IAssetPairDayOffService assetDayOffService,
                         IDateService dateService,
                         IValidateOrderService validateOrderService,
                         IIdentityGenerator identityGenerator,
                         ICqrsSender cqrsSender)
 {
     _assetPairsCache      = assetPairsCache;
     _tradingEngine        = tradingEngine;
     _accountsCacheService = accountsCacheService;
     _operationsLogService = operationsLogService;
     _log                  = log;
     _ordersCache          = ordersCache;
     _assetDayOffService   = assetDayOffService;
     _dateService          = dateService;
     _validateOrderService = validateOrderService;
     _identityGenerator    = identityGenerator;
     _cqrsSender           = cqrsSender;
 }