public TradeExecutionServiceHost(ITradeExecutionService service, IBroker broker) : base(broker, "execution") { _service = service; RegisterCallResponse("executeTrade", ExecuteTrade); StartHeartBeat(); LogContext.PushProperty("InstanceId", InstanceId); }
public TradingController( ITradeRepository tradeRepository, ITradeExecutionService tradeExecutionService, IMarketDataService marketDataService, IStrategyRepository strategyRepository, IMapper mapper) { _tradeRepository = tradeRepository; _tradeService = tradeExecutionService; _marketDataService = marketDataService; _strategyRepository = strategyRepository; _mapper = mapper; }
public TradeExecutionServiceHost(ITradeExecutionService service, IBroker broker) : base(broker, "execution") { _service = service; RegisterCallResponse("executeTrade", ExecuteTrade); StartHeartBeat(); }