Exemplo n.º 1
0
        public void SubscribeQuote(string account, Stock stock)
        {
            StockTicker ticker;

            if (!_stockTicker.TryGetValue(stock, out ticker))
            {
                ticker              = new StockTicker(account, Name, stock);
                ticker.QuoteUpdate += QuoteUpdated;
                ticker.Execute();
                _stockTicker.Add(stock, ticker);
            }
        }
Exemplo n.º 2
0
        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();
            }
        }