Esempio n. 1
0
 public SpecialLiquidationSaga(
     IDateService dateService,
     IChaosKitty chaosKitty,
     IOperationExecutionInfoRepository operationExecutionInfoRepository,
     IRfqService specialLiquidationService,
     MarginTradingSettings marginTradingSettings,
     CqrsContextNamesSettings cqrsContextNamesSettings,
     LiquidationHelper liquidationHelper,
     OrdersCache ordersCache,
     IRfqPauseService rfqPauseService,
     ILog log,
     IAssetPairsCache assetPairsCache)
 {
     _dateService = dateService;
     _chaosKitty  = chaosKitty;
     _operationExecutionInfoRepository = operationExecutionInfoRepository;
     _specialLiquidationService        = specialLiquidationService;
     _marginTradingSettings            = marginTradingSettings;
     _cqrsContextNamesSettings         = cqrsContextNamesSettings;
     _liquidationHelper = liquidationHelper;
     _ordersCache       = ordersCache;
     _rfqPauseService   = rfqPauseService;
     _log             = log;
     _assetPairsCache = assetPairsCache;
 }
Esempio n. 2
0
 public LiquidationCommandsHandler(
     ITradingInstrumentsCacheService tradingInstrumentsCacheService,
     IAccountsCacheService accountsCache,
     IDateService dateService,
     IOperationExecutionInfoRepository operationExecutionInfoRepository,
     IChaosKitty chaosKitty,
     IMatchingEngineRouter matchingEngineRouter,
     ITradingEngine tradingEngine,
     OrdersCache ordersCache,
     ILog log,
     IAccountUpdateService accountUpdateService,
     IEventChannel <LiquidationEndEventArgs> liquidationEndEventChannel)
 {
     _tradingInstrumentsCacheService = tradingInstrumentsCacheService;
     _accountsCache = accountsCache;
     _dateService   = dateService;
     _operationExecutionInfoRepository = operationExecutionInfoRepository;
     _chaosKitty           = chaosKitty;
     _matchingEngineRouter = matchingEngineRouter;
     _tradingEngine        = tradingEngine;
     _ordersCache          = ordersCache;
     _log = log;
     _accountUpdateService       = accountUpdateService;
     _liquidationEndEventChannel = liquidationEndEventChannel;
 }
 public DepositSaga(CqrsContextNamesSettings contextNames,
                    IOperationExecutionInfoRepository executionInfoRepository, IChaosKitty chaosKitty)
 {
     _contextNames            = contextNames;
     _executionInfoRepository = executionInfoRepository;
     _chaosKitty = chaosKitty;
 }
Esempio n. 4
0
 public LiquidationCommandsHandler(
     IAccountsCacheService accountsCache,
     IDateService dateService,
     IOperationExecutionInfoRepository operationExecutionInfoRepository,
     IChaosKitty chaosKitty,
     ITradingEngine tradingEngine,
     OrdersCache ordersCache,
     ILog log,
     IAccountUpdateService accountUpdateService,
     IEventChannel <LiquidationEndEventArgs> liquidationEndEventChannel,
     LiquidationHelper liquidationHelper,
     ILiquidationFailureExecutor failureExecutor)
 {
     _accountsCache = accountsCache;
     _dateService   = dateService;
     _operationExecutionInfoRepository = operationExecutionInfoRepository;
     _chaosKitty                 = chaosKitty;
     _tradingEngine              = tradingEngine;
     _ordersCache                = ordersCache;
     _log                        = log;
     _accountUpdateService       = accountUpdateService;
     _liquidationEndEventChannel = liquidationEndEventChannel;
     _liquidationHelper          = liquidationHelper;
     _failureExecutor            = failureExecutor;
 }
Esempio n. 5
0
 public SpecialLiquidationCommandsHandler(
     ITradingEngine tradingEngine,
     IDateService dateService,
     IOrderReader orderReader,
     IChaosKitty chaosKitty,
     IOperationExecutionInfoRepository operationExecutionInfoRepository,
     ILog log,
     MarginTradingSettings marginTradingSettings,
     IAssetPairsCache assetPairsCache,
     IAssetPairDayOffService assetPairDayOffService,
     IExchangeConnectorService exchangeConnectorService,
     IIdentityGenerator identityGenerator,
     IAccountsCacheService accountsCacheService)
 {
     _tradingEngine = tradingEngine;
     _dateService   = dateService;
     _orderReader   = orderReader;
     _chaosKitty    = chaosKitty;
     _operationExecutionInfoRepository = operationExecutionInfoRepository;
     _log = log;
     _marginTradingSettings    = marginTradingSettings;
     _assetPairsCache          = assetPairsCache;
     _assetPairDayOffService   = assetPairDayOffService;
     _exchangeConnectorService = exchangeConnectorService;
     _identityGenerator        = identityGenerator;
     _accountsCacheService     = accountsCacheService;
 }
Esempio n. 6
0
 public RfqExecutionInfoRepositoryDecorator(IOperationExecutionInfoRepository decoratee,
                                            ILog log,
                                            IRabbitMqNotifyService notifyService,
                                            MarginTradingSettings settings)
 {
     _decoratee     = decoratee;
     _log           = log;
     _notifyService = notifyService;
     _brokerId      = settings.BrokerId;
 }
Esempio n. 7
0
 public WithdrawalSaga(CqrsContextNamesSettings contextNames,
                       IOperationExecutionInfoRepository executionInfoRepository,
                       ISystemClock systemClock,
                       IChaosKitty chaosKitty)
 {
     _contextNames            = contextNames;
     _executionInfoRepository = executionInfoRepository;
     _systemClock             = systemClock;
     _chaosKitty = chaosKitty;
 }
 public DeleteAccountsSaga(
     IOperationExecutionInfoRepository executionInfoRepository,
     ISystemClock systemClock,
     IChaosKitty chaosKitty,
     CqrsContextNamesSettings contextNames)
 {
     _executionInfoRepository = executionInfoRepository;
     _systemClock             = systemClock;
     _chaosKitty   = chaosKitty;
     _contextNames = contextNames;
 }
Esempio n. 9
0
 public DepositCommandsHandler(
     ISystemClock systemClock,
     IOperationExecutionInfoRepository executionInfoRepository,
     IAccountsRepository accountsRepository,
     IChaosKitty chaosKitty)
 {
     _systemClock             = systemClock;
     _executionInfoRepository = executionInfoRepository;
     _accountsRepository      = accountsRepository;
     _chaosKitty = chaosKitty;
 }
Esempio n. 10
0
 public RfqPauseService(IOperationExecutionPauseRepository pauseRepository,
                        IOperationExecutionInfoRepository executionInfoRepository,
                        ILog log,
                        IDateService dateService,
                        ICqrsSender cqrsSender)
 {
     _pauseRepository         = pauseRepository;
     _executionInfoRepository = executionInfoRepository;
     _log         = log;
     _dateService = dateService;
     _cqrsSender  = cqrsSender;
 }
Esempio n. 11
0
 public WithdrawalCommandsHandler(
     IDateService dateService,
     IAccountsCacheService accountsCacheService,
     IAccountUpdateService accountUpdateService,
     IChaosKitty chaosKitty,
     IOperationExecutionInfoRepository operationExecutionInfoRepository)
 {
     _dateService                      = dateService;
     _accountsCacheService             = accountsCacheService;
     _accountUpdateService             = accountUpdateService;
     _chaosKitty                       = chaosKitty;
     _operationExecutionInfoRepository = operationExecutionInfoRepository;
 }
 public WithdrawalCommandsHandler(
     ISystemClock systemClock,
     IAccountsRepository accountsRepository,
     IOperationExecutionInfoRepository executionInfoRepository,
     IChaosKitty chaosKitty,
     IAccountManagementService accountManagementService)
 {
     _systemClock             = systemClock;
     _executionInfoRepository = executionInfoRepository;
     _accountsRepository      = accountsRepository;
     _chaosKitty = chaosKitty;
     _accountManagementService = accountManagementService;
 }
Esempio n. 13
0
 public GiveTemporaryCapitalCommandsHandler(
     IAccountsRepository accountsRepository,
     ISystemClock systemClock,
     IOperationExecutionInfoRepository executionInfoRepository,
     IChaosKitty chaosKitty,
     ILog log,
     AccountManagementSettings settings)
 {
     _accountsRepository      = accountsRepository;
     _systemClock             = systemClock;
     _executionInfoRepository = executionInfoRepository;
     _chaosKitty = chaosKitty;
     _log        = log;
     _settings   = settings;
 }
Esempio n. 14
0
 public UpdateBalanceCommandsHandler(IOperationExecutionInfoRepository executionInfoRepository,
     INegativeProtectionService negativeProtectionService,
     IAccountsRepository accountsRepository,
     IChaosKitty chaosKitty, 
     ISystemClock systemClock,
     IConvertService convertService,
     ILog log)
 {
     _negativeProtectionService = negativeProtectionService;
     _accountsRepository = accountsRepository;
     _chaosKitty = chaosKitty;
     _systemClock = systemClock;
     _convertService = convertService;
     _log = log;
     _executionInfoRepository = executionInfoRepository;
 }
Esempio n. 15
0
 public ManualRfqService(
     ICqrsSender cqrsSender,
     IDateService dateService,
     SpecialLiquidationSettings specialLiquidationSettings,
     CqrsContextNamesSettings cqrsContextNamesSettings,
     IQuoteCacheService quoteCacheService,
     IOperationExecutionInfoRepository operationExecutionInfoRepository,
     ILog log)
 {
     _cqrsSender  = cqrsSender;
     _dateService = dateService;
     _specialLiquidationSettings       = specialLiquidationSettings;
     _cqrsContextNamesSettings         = cqrsContextNamesSettings;
     _quoteCacheService                = quoteCacheService;
     _operationExecutionInfoRepository = operationExecutionInfoRepository;
     _log = log;
 }
Esempio n. 16
0
 public DeleteAccountsCommandsHandler(
     IOrderReader orderReader,
     IDateService dateService,
     IAccountsCacheService accountsCacheService,
     ITradingEngine tradingEngine,
     IChaosKitty chaosKitty,
     IOperationExecutionInfoRepository operationExecutionInfoRepository,
     ILog log)
 {
     _orderReader                      = orderReader;
     _dateService                      = dateService;
     _accountsCacheService             = accountsCacheService;
     _tradingEngine                    = tradingEngine;
     _chaosKitty                       = chaosKitty;
     _operationExecutionInfoRepository = operationExecutionInfoRepository;
     _log = log;
 }
Esempio n. 17
0
 public SpecialLiquidationSaga(
     IDateService dateService,
     IChaosKitty chaosKitty,
     IOperationExecutionInfoRepository operationExecutionInfoRepository,
     IOrderReader orderReader,
     ISpecialLiquidationService specialLiquidationService,
     MarginTradingSettings marginTradingSettings,
     CqrsContextNamesSettings cqrsContextNamesSettings)
 {
     _dateService = dateService;
     _chaosKitty  = chaosKitty;
     _operationExecutionInfoRepository = operationExecutionInfoRepository;
     _orderReader = orderReader;
     _specialLiquidationService = specialLiquidationService;
     _marginTradingSettings     = marginTradingSettings;
     _cqrsContextNamesSettings  = cqrsContextNamesSettings;
 }
Esempio n. 18
0
 public LiquidationFailureExecutor(
     IOperationExecutionInfoRepository operationExecutionInfoRepository,
     IAccountsCacheService accountsCache,
     IDateService dateService,
     OrdersCache ordersCache,
     IEventChannel <LiquidationEndEventArgs> liquidationEndEventChannel,
     IAccountUpdateService accountUpdateService,
     ILog log)
 {
     _operationExecutionInfoRepository = operationExecutionInfoRepository;
     _accountsCache = accountsCache;
     _dateService   = dateService;
     _ordersCache   = ordersCache;
     _liquidationEndEventChannel = liquidationEndEventChannel;
     _accountUpdateService       = accountUpdateService;
     _log = log;
 }
Esempio n. 19
0
 public LiquidationSaga(
     IDateService dateService,
     IChaosKitty chaosKitty,
     IOperationExecutionInfoRepository operationExecutionInfoRepository,
     OrdersCache ordersCache,
     CqrsContextNamesSettings cqrsContextNamesSettings,
     ILog log,
     IAccountsCacheService accountsCacheService,
     IAssetPairDayOffService assetPairDayOffService)
 {
     _dateService = dateService;
     _chaosKitty  = chaosKitty;
     _operationExecutionInfoRepository = operationExecutionInfoRepository;
     _ordersCache = ordersCache;
     _cqrsContextNamesSettings = cqrsContextNamesSettings;
     _log = log;
     _accountsCacheService   = accountsCacheService;
     _assetPairDayOffService = assetPairDayOffService;
 }
 public DeleteAccountsCommandsHandler(
     IOperationExecutionInfoRepository executionInfoRepository,
     IAccountsRepository accountsRepository,
     IAccountBalanceChangesRepository accountBalanceChangesRepository,
     ILog log,
     ISystemClock systemClock,
     IChaosKitty chaosKitty,
     IConvertService convertService,
     IEventSender eventSender,
     AccountManagementSettings settings)
 {
     _executionInfoRepository         = executionInfoRepository;
     _accountsRepository              = accountsRepository;
     _accountBalanceChangesRepository = accountBalanceChangesRepository;
     _log            = log;
     _systemClock    = systemClock;
     _chaosKitty     = chaosKitty;
     _convertService = convertService;
     _eventSender    = eventSender;
     _settings       = settings;
 }
Esempio n. 21
0
 public AccountsProjection(
     IAccountsCacheService accountsCacheService,
     IEventChannel <AccountBalanceChangedEventArgs> accountBalanceChangedEventChannel,
     IConvertService convertService,
     IAccountUpdateService accountUpdateService,
     IDateService dateService,
     IOperationExecutionInfoRepository operationExecutionInfoRepository,
     IChaosKitty chaosKitty,
     OrdersCache ordersCache,
     ILog log)
 {
     _accountsCacheService = accountsCacheService;
     _accountBalanceChangedEventChannel = accountBalanceChangedEventChannel;
     _convertService                   = convertService;
     _accountUpdateService             = accountUpdateService;
     _dateService                      = dateService;
     _operationExecutionInfoRepository = operationExecutionInfoRepository;
     _chaosKitty  = chaosKitty;
     _ordersCache = ordersCache;
     _log         = log;
 }