示例#1
0
 public SymbolsDataProvider(SmartComHandlersDatabase handlers, IDataContext symbolsData, ILogger logger)
 {
     this.handlers    = handlers;
     this.symbolsData = symbolsData;
     this.logger      = logger;
     this.handlers.Add <_IStClient_AddSymbolEventHandler>(stServer_AddSymbol);
     this.handlers.Add <_IStClient_UpdateQuoteEventHandler>(stServer_UpdateQuote);
 }
示例#2
0
 public MarketDataProvider(SmartComHandlersDatabase handlers, IDataContext tradingData, OrderBookContext orderBook, ILogger logger)
 {
     this.handlers    = handlers;
     this.tradingData = tradingData;
     this.logger      = logger;
     this.orderBook   = orderBook;
     this.handlers.Add <_IStClient_AddTickEventHandler>(stServer_AddTick);
     this.handlers.Add <_IStClient_UpdateBidAskEventHandler>(stServer_UpdateBidAsk);
     this.handlers.Add <_IStClient_AddBarEventHandler>(stServer_AddBar);
 }
示例#3
0
 public RawTradingDataProvider(SmartComHandlersDatabase handlers, BaseDataContext orderData, ILogger logger)
 {
     this.handlers  = handlers;
     this.orderData = orderData;
     this.logger    = logger;
     this.handlers.Add <_IStClient_OrderFailedEventHandler>(stServer_OrderFailed);
     this.handlers.Add <_IStClient_OrderSucceededEventHandler>(stServer_OrderSucceeded);
     this.handlers.Add <_IStClient_UpdateOrderEventHandler>(stServer_UpdateOrder);
     this.handlers.Add <_IStClient_SetPortfolioEventHandler>(stServer_SetPortfolio);
     this.handlers.Add <_IStClient_AddTradeEventHandler>(stServer_AddTrade);
     this.handlers.Add <_IStClient_AddSymbolEventHandler>(stServer_AddSymbol);
 }