Exemple #1
0
 public ProfitRoomFoundedWithEnoughBalancesIntegrationEventHandler(
     ISimpleArbitrageRepository simpleArbitrageRepository, IStopLossSettingRepository stopLossSettingRepository, IOrderRepository orderRepository,
     IExchangeApiRequestFrequenciesControlService exchangeApiRequestFrequenciesControlService)
 {
     this._simpleArbitrageRepository  = simpleArbitrageRepository ?? throw new ArgumentNullException(nameof(simpleArbitrageRepository));
     this._stopLossSettingsRepository = stopLossSettingRepository ?? throw new ArgumentNullException(nameof(stopLossSettingRepository));
     this._orderRepository            = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     this._exchangeApiRequestFrequenciesControlService = exchangeApiRequestFrequenciesControlService ?? throw new ArgumentNullException(nameof(exchangeApiRequestFrequenciesControlService));
 }
 public ProfitRoomFoundedIntegrationEventHandler(ISimpleArbitrageRepository simpleArbitrageRepository, IStopLossSettingRepository stopLossSettingRepository)
 {
     this._simpleArbitrageRepository  = simpleArbitrageRepository ?? throw new ArgumentNullException(nameof(simpleArbitrageRepository));
     this._stopLossSettingsRepository = stopLossSettingRepository ?? throw new ArgumentNullException(nameof(stopLossSettingRepository));
 }
 public AddNewArbitrageTransactionWhenOrderPartiallyFilledDomainEventHandler(ISimpleArbitrageRepository simpleArbitrageRepository, IOrderRepository orderRepository)
 {
     this._simpleArbitrageRepository = simpleArbitrageRepository ?? throw new ArgumentNullException(nameof(simpleArbitrageRepository));
     this._orderRepository           = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
 }
Exemple #4
0
 public OrderCreatedDomainEventHandler(ISimpleArbitrageRepository simpleArbitrageRepository, IOrderRepository orderRepository)
 {
     this._simpleArbitrageRepository = simpleArbitrageRepository ?? throw new ArgumentNullException(nameof(simpleArbitrageRepository));
     this._orderRepository           = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
 }