public TradingPositionService(IRepository <Order> orderRepository, IStockRestConnector stockRestConnector, TradingWorkflowManager tradingWorkflowManager, ConfigurationService configurationService) { _orderRepository = orderRepository; _stockRestConnector = stockRestConnector ?? throw new ArgumentNullException(nameof(stockRestConnector)); _tradingWorkflowManager = tradingWorkflowManager ?? throw new ArgumentNullException(nameof(orderRepository)); _configurationService = configurationService ?? throw new ArgumentNullException(nameof(configurationService)); }
public OrdersService(OrderBookLoadingService orderBookLoadingService, IStockRestConnector stockRestConnector, IStockSocketConnector stockSocketConnector, ConfigurationService configurationService) { _orderBookLoadingService = orderBookLoadingService ?? throw new ArgumentNullException(nameof(orderBookLoadingService)); _stockRestConnector = stockRestConnector ?? throw new ArgumentNullException(nameof(stockRestConnector)); _stockSocketConnector = stockSocketConnector ?? throw new ArgumentNullException(nameof(stockSocketConnector)); _configurationService = configurationService ?? throw new ArgumentNullException(nameof(configurationService)); }
public WebAPITradingController(IStockRestConnector stockRestConnector, IMarketNewPositionAnalysisService marketNewPositionAnalysisService, IMarketPendingPositionAnalysisService marketPendingPositionAnalysisService, IMarketOpenPositionAnalysisService marketOpenPositionAnalysisService, ITradingPositionService tradingPositionService, ConfigurationService configurationService, TradingEventsObserver tradingEventsObserver, ILoggingService loggingService) { _stockRestConnector = stockRestConnector; _marketNewPositionAnalysisService = marketNewPositionAnalysisService; _marketPendingPositionAnalysisService = marketPendingPositionAnalysisService; _marketOpenPositionAnalysisService = marketOpenPositionAnalysisService; _tradingPositionService = tradingPositionService; _configurationService = configurationService; _tradingEventsObserver = tradingEventsObserver; _loggingService = loggingService; }
public SocketTradingController( IRepository <Order> orderRepository, IStockSocketConnector stockSocketConnector, IStockRestConnector stockRestConnector, CandleLoadingService candleLoadingService, IMarketNewPositionAnalysisService marketNewPositionAnalysisService, TradingPositionWorkerFactory tradingPositionWorkerFactory, ITradingPositionService tradingPositionService, ConfigurationService configurationService, TradingEventsObserver tradingEventsObserver, ILoggingService loggingService) { _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository)); _stockSocketConnector = stockSocketConnector ?? throw new ArgumentNullException(nameof(stockSocketConnector)); _stockRestConnector = stockRestConnector ?? throw new ArgumentNullException(nameof(stockRestConnector)); _candleLoadingService = candleLoadingService ?? throw new ArgumentNullException(nameof(candleLoadingService)); _marketNewPositionAnalysisService = marketNewPositionAnalysisService ?? throw new ArgumentNullException(nameof(marketNewPositionAnalysisService)); _tradingPositionWorkerFactory = tradingPositionWorkerFactory ?? throw new ArgumentNullException(nameof(tradingPositionWorkerFactory)); _tradingPositionService = tradingPositionService ?? throw new ArgumentNullException(nameof(tradingPositionService)); _configurationService = configurationService ?? throw new ArgumentNullException(nameof(configurationService)); _tradingEventsObserver = tradingEventsObserver ?? throw new ArgumentNullException(nameof(tradingEventsObserver)); _loggingService = loggingService ?? throw new ArgumentNullException(nameof(loggingService)); }
public TradingReportsService(IStockRestConnector stockRestConnector, IStockSocketConnector tradingDataConnector) { _stockRestConnector = stockRestConnector ?? throw new ArgumentNullException(nameof(stockRestConnector)); _stockSocketConnector = tradingDataConnector ?? throw new ArgumentNullException(nameof(tradingDataConnector)); }
public FormMain( IStockRestConnector stockRestConnector) : this() { _stockRestConnector = stockRestConnector; }
public MainController(IStockRestConnector stockRestConnector) { _stockRestConnector = stockRestConnector; }