Example #1
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 /// <param name="persistanceRepository"></param>
 /// <param name="ohlcCalculation"></param>
 /// <param name="tickerInfoCalculation"></param>
 /// <param name="balanceValidationService"></param>
 public TradeEventListener(IPersistanceRepository persistanceRepository,
                           OhlcCalculation ohlcCalculation, TickerInfoCalculation tickerInfoCalculation,
                           IBalanceValidationService balanceValidationService)
 {
     _persistanceRepository    = persistanceRepository;
     _ohlcCalculation          = ohlcCalculation;
     _tickerInfoCalculation    = tickerInfoCalculation;
     _balanceValidationService = balanceValidationService;
     TradeEvent.TradeOccured  += OnTradeArrived;
 }
Example #2
0
 private LocalDataPortal(IInventoryRepository inventoryRepository, IPersistanceRepository persistanceRepository)
 {
     InventoryRepository   = inventoryRepository;
     PersistanceRepository = persistanceRepository;
 }
 /// <summary>
 /// Parametrized Constructor
 /// </summary>
 /// <param name="persistanceRepository"></param>
 /// <param name="balanceValidationService"></param>
 public OrderEventListener(IPersistanceRepository persistanceRepository, IBalanceValidationService balanceValidationService)
 {
     _persistanceRepository    = persistanceRepository;
     _balanceValidationService = balanceValidationService;
     OrderEvent.OrderChanged  += OnOrderStatusChanged;
 }
 public TickerInfoCalculation(ITickerInfoRepository tickerInfoRepository, ITradeRepository tradeRepository, IPersistanceRepository persistanceRepository)
 {
     _tickerInfoRepository  = tickerInfoRepository;
     _tradeRepository       = tradeRepository;
     _persistanceRepository = persistanceRepository;
 }
 public OhlcCalculation(IPersistanceRepository persistanceRepository, IOhlcRepository ohlcRepository, ITradeRepository tradeRepository)
 {
     _persistanceRepository = persistanceRepository;
     _ohlcRepository        = ohlcRepository;
     _tradeRepository       = tradeRepository;
 }