public void SubscribeOrder(string account, Stock stock) { ExecutionTicker ticker; if (!_executionTicker.TryGetValue(stock, out ticker)) { ticker = new ExecutionTicker(account, Name, stock); ticker.ExecutionUpdate += ExecutionUpdated; ticker.OrderUpdate += OrderUpdated; ticker.Execute(); _executionTicker.Add(stock, ticker); } }
public void SubscribeVenue(string account) { Stock stock = new Stock(); ExecutionTicker executionTicker; if (!_executionTicker.TryGetValue(stock, out executionTicker)) { executionTicker = new ExecutionTicker(account, Name); executionTicker.ExecutionUpdate += ExecutionUpdated; executionTicker.OrderUpdate += OrderUpdated; executionTicker.Execute(); } StockTicker stockTicker; if (!_stockTicker.TryGetValue(stock, out stockTicker)) { stockTicker = new StockTicker(account, Name); stockTicker.QuoteUpdate += QuoteUpdated; stockTicker.Execute(); } }