public PositionsConsumer(OrdersCache ordersCache, IRabbitMqNotifyService rabbitMqNotifyService, IConvertService convertService, IDateService dateService, IAccountsCacheService accountsCacheService, IAccountUpdateService accountUpdateService, IIdentityGenerator identityGenerator, ICqrsSender cqrsSender, IEventChannel <OrderCancelledEventArgs> orderCancelledEventChannel, IEventChannel <OrderChangedEventArgs> orderChangedEventChannel, IEventChannel <OrderActivatedEventArgs> orderActivatedEventChannel, IMatchingEngineRouter meRouter, ILog log) { _ordersCache = ordersCache; _rabbitMqNotifyService = rabbitMqNotifyService; _convertService = convertService; _dateService = dateService; _accountsCacheService = accountsCacheService; _accountUpdateService = accountUpdateService; _identityGenerator = identityGenerator; _cqrsSender = cqrsSender; _orderCancelledEventChannel = orderCancelledEventChannel; _orderChangedEventChannel = orderChangedEventChannel; _orderActivatedEventChannel = orderActivatedEventChannel; _meRouter = meRouter; _log = log; }
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 LiquidationHelper(IMatchingEngineRouter matchingEngineRouter, IDateService dateService, ICqrsSender cqrsSender, OrdersCache ordersCache, IAssetPairDayOffService assetPairDayOffService) { _matchingEngineRouter = matchingEngineRouter; _dateService = dateService; _cqrsSender = cqrsSender; _ordersCache = ordersCache; _assetPairDayOffService = assetPairDayOffService; }
public TradingEngine( IEventChannel <MarginCallEventArgs> marginCallEventChannel, IEventChannel <OrderPlacedEventArgs> orderPlacedEventChannel, IEventChannel <OrderExecutedEventArgs> orderClosedEventChannel, IEventChannel <OrderCancelledEventArgs> orderCancelledEventChannel, IEventChannel <OrderChangedEventArgs> orderChangedEventChannel, IEventChannel <OrderExecutionStartedEventArgs> orderExecutionStartedEventChannel, IEventChannel <OrderActivatedEventArgs> orderActivatedEventChannel, IEventChannel <OrderRejectedEventArgs> orderRejectedEventChannel, IValidateOrderService validateOrderService, IAccountsCacheService accountsCacheService, OrdersCache ordersCache, IMatchingEngineRouter meRouter, IThreadSwitcher threadSwitcher, IAssetPairDayOffService assetPairDayOffService, ILog log, IDateService dateService, ICfdCalculatorService cfdCalculatorService, IIdentityGenerator identityGenerator, IAssetPairsCache assetPairsCache, ICqrsSender cqrsSender, IEventChannel <StopOutEventArgs> stopOutEventChannel, IQuoteCacheService quoteCacheService, MarginTradingSettings marginTradingSettings) { _marginCallEventChannel = marginCallEventChannel; _orderPlacedEventChannel = orderPlacedEventChannel; _orderExecutedEventChannel = orderClosedEventChannel; _orderCancelledEventChannel = orderCancelledEventChannel; _orderActivatedEventChannel = orderActivatedEventChannel; _orderExecutionStartedEvenChannel = orderExecutionStartedEventChannel; _orderChangedEventChannel = orderChangedEventChannel; _orderRejectedEventChannel = orderRejectedEventChannel; _validateOrderService = validateOrderService; _accountsCacheService = accountsCacheService; _ordersCache = ordersCache; _meRouter = meRouter; _threadSwitcher = threadSwitcher; _assetPairDayOffService = assetPairDayOffService; _log = log; _dateService = dateService; _cfdCalculatorService = cfdCalculatorService; _identityGenerator = identityGenerator; _assetPairsCache = assetPairsCache; _cqrsSender = cqrsSender; _stopOutEventChannel = stopOutEventChannel; _quoteCacheService = quoteCacheService; _marginTradingSettings = marginTradingSettings; }
public TradingEngine( IEventChannel <MarginCallEventArgs> marginCallEventChannel, IEventChannel <StopOutEventArgs> stopoutEventChannel, IEventChannel <OrderPlacedEventArgs> orderPlacedEventChannel, IEventChannel <OrderClosedEventArgs> orderClosedEventChannel, IEventChannel <OrderCancelledEventArgs> orderCancelledEventChannel, IEventChannel <OrderLimitsChangedEventArgs> orderLimitsChangesEventChannel, IEventChannel <OrderClosingEventArgs> orderClosingEventChannel, IEventChannel <OrderActivatedEventArgs> orderActivatedEventChannel, IEventChannel <OrderRejectedEventArgs> orderRejectedEventChannel, IValidateOrderService validateOrderService, IQuoteCacheService quoteCashService, IAccountUpdateService accountUpdateService, ICommissionService swapCommissionService, IEquivalentPricesService equivalentPricesService, IAccountsCacheService accountsCacheService, OrdersCache ordersCache, IAccountAssetsCacheService accountAssetsCacheService, IMatchingEngineRouter meRouter, IThreadSwitcher threadSwitcher, IContextFactory contextFactory, IAssetPairDayOffService assetPairDayOffService, ILog log) { _marginCallEventChannel = marginCallEventChannel; _stopoutEventChannel = stopoutEventChannel; _orderPlacedEventChannel = orderPlacedEventChannel; _orderClosedEventChannel = orderClosedEventChannel; _orderCancelledEventChannel = orderCancelledEventChannel; _orderActivatedEventChannel = orderActivatedEventChannel; _orderClosingEventChannel = orderClosingEventChannel; _orderLimitsChangesEventChannel = orderLimitsChangesEventChannel; _orderRejectedEventChannel = orderRejectedEventChannel; _quoteCashService = quoteCashService; _accountUpdateService = accountUpdateService; _swapCommissionService = swapCommissionService; _validateOrderService = validateOrderService; _equivalentPricesService = equivalentPricesService; _accountsCacheService = accountsCacheService; _ordersCache = ordersCache; _accountAssetsCacheService = accountAssetsCacheService; _meRouter = meRouter; _threadSwitcher = threadSwitcher; _contextFactory = contextFactory; _assetPairDayOffService = assetPairDayOffService; _log = log; }